/
vuvk
/
tinygl2
Обзор
Документация
Войти
/
vuvk
/
tinygl2
Код
Запросы
0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/specbuf.h
22 строки
623 B
AntonVuvk
Initial commit.
17 сен 2017, 09:06
17 сен 2017, 09:06
4877a09
Код
Авторство
О чём код?
#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_ */