added gitignore and cleared opengl window
This commit is contained in:
parent
a1b4bcd546
commit
3291732dd3
4 changed files with 10 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Ignore Builds
|
||||||
|
build/
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,7 +1,7 @@
|
||||||
# Set default options
|
# Set default options
|
||||||
CC = clang++
|
CC = clang++
|
||||||
|
|
||||||
CFLAGS = -g -Wall -lSDL2 -lSDL2main -lGLEW
|
CFLAGS = -g -Wall -lSDL2 -lSDL2main -lGLEW -lGL
|
||||||
|
|
||||||
TARGET = Game
|
TARGET = Game
|
||||||
SRCDIR = src/
|
SRCDIR = src/
|
||||||
|
|
|
||||||
BIN
build/Game
BIN
build/Game
Binary file not shown.
|
|
@ -54,6 +54,13 @@ int main(int argc, char ** argv){
|
||||||
//TODO: Do something with keys lol
|
//TODO: Do something with keys lol
|
||||||
|
|
||||||
};
|
};
|
||||||
|
//Clear screen ready for next loop
|
||||||
|
glClearColor(0.0f,0.0f,0.0f,0.0f);
|
||||||
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
|
// TODO: Run game here lol
|
||||||
|
|
||||||
|
SDL_GL_SwapWindow(window);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Escaped Game loop
|
// Escaped Game loop
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue