source: trunk/sys/TinyGL/src/specbuf.h @ 428

Last change on this file since 428 was 1, checked in by alain, 8 years ago

First import

File size: 624 bytes
Line 
1#ifndef _tgl_specbuf_h_
2#define _tgl_specbuf_h_
3
4/* Max # of specular light pow buffers */
5#define MAX_SPECULAR_BUFFERS 8
6/* # of entries in specular buffer */
7#define SPECULAR_BUFFER_SIZE 1024
8/* specular buffer granularity */
9#define SPECULAR_BUFFER_RESOLUTION 1024
10
11typedef struct GLSpecBuf {
12  int shininess_i;
13  int last_used;
14  float buf[SPECULAR_BUFFER_SIZE+1];
15  struct GLSpecBuf *next;
16} GLSpecBuf;
17
18GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i, 
19                              const float shininess);
20void specbuf_cleanup(GLContext *c); /* free all memory used */
21
22#endif /* _tgl_specbuf_h_ */
Note: See TracBrowser for help on using the repository browser.