X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx.h;h=ee9de632b5604c75f8fd403176b7c3084f000c4d;hp=4a3cde58d3a8a980dac16af36c7adff247785941;hb=25669bf7362645d1c0fee9d7cb07f4a6b0b34903;hpb=dce48eb322ddf2a3c3622fc132ece21ba7653da3 diff --git a/src/3dgfx.h b/src/3dgfx.h index 4a3cde5..ee9de63 100644 --- a/src/3dgfx.h +++ b/src/3dgfx.h @@ -22,7 +22,11 @@ enum { G3D_CULL_FACE = 1, G3D_DEPTH_TEST = 2, /* XXX not implemented */ G3D_LIGHTING = 4, - G3D_TEXTURE = 8, + G3D_LIGHT0 = 8, + G3D_LIGHT1 = 16, + G3D_LIGHT2 = 32, + G3D_LIGHT3 = 64, + G3D_TEXTURE = 128, G3D_ALL = 0x7fffffff }; @@ -74,6 +78,15 @@ void g3d_perspective(float vfov, float aspect, float znear, float zfar); const float *g3d_get_matrix(int which, float *m); +void g3d_light_pos(int idx, float x, float y, float z); +void g3d_light_color(int idx, float r, float g, float b); + +void g3d_light_ambient(float r, float g, float b); + +void g3d_mtl_diffuse(float r, float g, float b); +void g3d_mtl_specular(float r, float g, float b); +void g3d_mtl_shininess(float shin); + void g3d_draw(int prim, const struct g3d_vertex *varr, int varr_size); void g3d_draw_indexed(int prim, const struct g3d_vertex *varr, int varr_size, const int16_t *iarr, int iarr_size);