diff options
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -25,9 +25,19 @@ typedef struct { } Bitmap; typedef struct { + unsigned short p, n, t; +} Mesh_Vert; + +typedef struct Mesh { + int vc, pc, nc, tc; + int* p, * n, * t; + Mesh_Vert* verts; +} Mesh; + +typedef struct { Colour* t; int* d; - int w, h; + int w, h, asp; Rect clip; } Renderer; @@ -63,5 +73,10 @@ void ren_tri( const int* v2, const Bitmap* tex ); +void ren_mesh( + Renderer* r, + const Mesh* mesh, + const Bitmap* tex +); #endif |