summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'render.h')
-rw-r--r--render.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/render.h b/render.h
index a8d5a4d..784d0a7 100644
--- a/render.h
+++ b/render.h
@@ -17,6 +17,12 @@ Colour make_yellow(void);
Colour make_aliceblue(void);
Colour blend(Colour dst, Colour src);
Colour blend_mod(Colour dst, Colour src, Colour mod);
+Colour col_mul(Colour a, Colour b);
+
+typedef struct {
+ Colour* p;
+ int w, h;
+} Bitmap;
typedef struct {
Colour* t;
@@ -46,19 +52,16 @@ void ren_text(
int y,
const char* t
);
-typedef enum {
- tri_mode_flat,
- tri_mode_textured,
- tri_mode_lit,
- tri_mode_textured_lit
-} Tri_Mode;
+/* Vertex format:
+ * x y z u v r g b
+ * All fixed point values with 9 bits of precision.
+ */
void ren_tri(
Renderer* r,
- Colour c,
const int* v0,
const int* v1,
const int* v2,
- Tri_Mode mode
+ const Bitmap* tex
);
#endif