fix warning

This commit is contained in:
Mylloon 2023-05-03 17:24:39 +02:00
parent 69a2adf00c
commit b7b8738f8a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);