twn_rendering -> twn_draw
This commit is contained in:
@ -1,20 +1,21 @@
|
||||
#include "twn_rendering.h"
|
||||
#include "twn_rendering_c.h"
|
||||
#include "twn_draw.h"
|
||||
#include "twn_draw_c.h"
|
||||
#include "twn_engine_context_c.h"
|
||||
#include "twn_textures_c.h"
|
||||
#include "twn_types.h"
|
||||
|
||||
#include <stb_ds.h>
|
||||
|
||||
|
||||
/* TODO: automatic handling of repeating textures */
|
||||
/* for that we could allocate a loner texture */
|
||||
void unfurl_triangle(const char *path,
|
||||
Vec3 v0,
|
||||
Vec3 v1,
|
||||
Vec3 v2,
|
||||
Vec2 uv0,
|
||||
Vec2 uv1,
|
||||
Vec2 uv2)
|
||||
void draw_triangle(const char *path,
|
||||
Vec3 v0,
|
||||
Vec3 v1,
|
||||
Vec3 v2,
|
||||
Vec2 uv0,
|
||||
Vec2 uv1,
|
||||
Vec2 uv2)
|
||||
{
|
||||
const TextureKey texture_key = textures_get_key(&ctx.texture_cache, path);
|
||||
|
||||
|
Reference in New Issue
Block a user