Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5098 clevermous 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
 
11
typedef struct GLSpecBuf {
12
  int shininess_i;
13
  int last_used;
14
  float buf[SPECULAR_BUFFER_SIZE+1];
15
  struct GLSpecBuf *next;
16
} GLSpecBuf;
17
 
18
GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i,
19
                              const float shininess);
20
void specbuf_cleanup(GLContext *c); /* free all memory used */
21
 
22
#endif /* _tgl_specbuf_h_ */