fix warning
This commit is contained in:
parent
69a2adf00c
commit
b7b8738f8a
1 changed files with 4 additions and 4 deletions
|
@ -4,10 +4,10 @@ static GLuint _pId = 0;
|
||||||
static GLuint _quadId = 0;
|
static GLuint _quadId = 0;
|
||||||
|
|
||||||
// Initialize
|
// Initialize
|
||||||
static void init();
|
static void init(void);
|
||||||
|
|
||||||
// Draw
|
// Draw
|
||||||
static void draw();
|
static void draw(void);
|
||||||
|
|
||||||
void lights(int state) {
|
void lights(int state) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
@ -24,7 +24,7 @@ void lights(int state) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init() {
|
static void init(void) {
|
||||||
_quadId = gl4dgGenQuadf();
|
_quadId = gl4dgGenQuadf();
|
||||||
_pId = gl4duCreateProgram("<vs>shaders/lights.vs", "<fs>shaders/lights.fs",
|
_pId = gl4duCreateProgram("<vs>shaders/lights.vs", "<fs>shaders/lights.fs",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -36,7 +36,7 @@ static void init() {
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void draw() {
|
static void draw(void) {
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
|
|
Reference in a new issue