nds_test2
diff src/ds3.h @ 1:d625ba001a62
more stuff in ds3
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 29 Jan 2018 03:48:05 +0200 |
parents | abcaf667f2bd |
children | dd8c9847bae9 |
line diff
1.1 --- a/src/ds3.h Sun Jan 28 20:05:26 2018 +0200 1.2 +++ b/src/ds3.h Mon Jan 29 03:48:05 2018 +0200 1.3 @@ -5,15 +5,15 @@ 1.4 1.5 #define RGB15(r, g, b) (((r) & 0x1f) | (((g) & 0x1f) << 5) | (((b) & 0x1f) << 10)) 1.6 1.7 -#define DS3_TEXTURE_2D 0x0001 1.8 -#define DS3_SPECULAR 0x0002 1.9 -#define DS3_ALPHA_TEST 0x0004 1.10 -#define DS3_BLEND 0x0008 1.11 -#define DS3_ANTIALIAS 0x0010 1.12 -#define DS3_EDGE 0x0020 1.13 -#define DS3_FOG_ALPHA 0x0040 1.14 -#define DS3_FOG 0x0080 1.15 -#define DS3_CLEAR_BM 0x4000 1.16 +#define DS3_TEXTURE_2D 0x0001 1.17 +#define DS3_SPECULAR 0x0002 1.18 +#define DS3_ALPHA_TEST 0x0004 1.19 +#define DS3_BLEND 0x0008 1.20 +#define DS3_POLYGON_SMOOTH 0x0010 1.21 +#define DS3_EDGE 0x0020 1.22 +#define DS3_FOG_ALPHA 0x0040 1.23 +#define DS3_FOG 0x0080 1.24 +#define DS3_CLEAR_BM 0x4000 1.25 1.26 #define DS3_TRIANGLES 0 1.27 #define DS3_QUADS 1 1.28 @@ -35,6 +35,10 @@ 1.29 void ds3_matrix_mode(int mmode); 1.30 void ds3_load_identity(void); 1.31 void ds3_load_matrix(int32_t *m); 1.32 +void ds3_load_matrix4x3(int32_t *m); 1.33 +void ds3_mult_matrix(int32_t *m); 1.34 +void ds3_mult_matrix4x3(int32_t *m); 1.35 +void ds3_mult_matrix3x3(int32_t *m); 1.36 void ds3_push_matrix(void); 1.37 void ds3_pop_matrix(void); 1.38 void ds3_translate(int32_t x, int32_t y, int32_t z); 1.39 @@ -46,7 +50,22 @@ 1.40 void ds3_end(void); 1.41 1.42 void ds3_vertex3(int32_t x, int32_t y, int32_t z); 1.43 +void ds3_vertex3f(float x, float y, float z); 1.44 +void ds3_vertex2(int32_t x, int32_t y); 1.45 +void ds3_vertex2f(float x, float y); 1.46 void ds3_color(uint16_t color); 1.47 void ds3_color3b(unsigned char r, unsigned char g, unsigned char b); 1.48 +void ds3_color3f(float r, float g, float b); 1.49 +void ds3_normal(int32_t x, int32_t y, int32_t z); 1.50 +void ds3_normal3f(float x, float y, float z); 1.51 +void ds3_texcoord2(int32_t s, int32_t t); 1.52 +void ds3_texcoord2f(float s, float t); 1.53 + 1.54 +void ds3_ortho(int32_t left, int32_t right, int32_t top, int32_t bottom, int32_t znear, int32_t zfar); 1.55 +void ds3_orthof(float left, float right, float top, float bottom, float znear, float zfar); 1.56 + 1.57 +void ds3_frustum(int32_t left, int32_t right, int32_t top, int32_t bottom, int32_t znear, int32_t zfar); 1.58 + 1.59 +void ds3_perspective(float vfov_deg, float aspect, float znear, float zfar); 1.60 1.61 #endif /* DS3_H_ */