From 3b21507274aa4f98644382903ae529c1fc2c7bd4 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 20 Aug 2014 01:36:33 +1000 Subject: GL3D GWIN window + demo --- 3rdparty/tinygl-0.4-ugfx/src/specbuf.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 3rdparty/tinygl-0.4-ugfx/src/specbuf.h (limited to '3rdparty/tinygl-0.4-ugfx/src/specbuf.h') diff --git a/3rdparty/tinygl-0.4-ugfx/src/specbuf.h b/3rdparty/tinygl-0.4-ugfx/src/specbuf.h new file mode 100644 index 00000000..ae5da3f8 --- /dev/null +++ b/3rdparty/tinygl-0.4-ugfx/src/specbuf.h @@ -0,0 +1,22 @@ +#ifndef _tgl_specbuf_h_ +#define _tgl_specbuf_h_ + +/* Max # of specular light pow buffers */ +#define MAX_SPECULAR_BUFFERS 8 +/* # of entries in specular buffer */ +#define SPECULAR_BUFFER_SIZE 1024 +/* specular buffer granularity */ +#define SPECULAR_BUFFER_RESOLUTION 1024 + +typedef struct GLSpecBuf { + int shininess_i; + int last_used; + float buf[SPECULAR_BUFFER_SIZE+1]; + struct GLSpecBuf *next; +} GLSpecBuf; + +GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i, + const float shininess); +void specbuf_cleanup(GLContext *c); /* free all memory used */ + +#endif /* _tgl_specbuf_h_ */ \ No newline at end of file -- cgit v1.2.3