summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'render.h')
-rw-r--r--render.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/render.h b/render.h
index 784d0a7..91817d7 100644
--- a/render.h
+++ b/render.h
@@ -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