Cull back faces

This commit is contained in:
SeanOMik 2021-12-09 16:32:15 -05:00
parent 576d4030b8
commit d7fccea2c6
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ simpleengine::Game::Game(int w, int h, const std::string& window_name, const int
void simpleengine::Game::enable_default_gl_options() const { void simpleengine::Game::enable_default_gl_options() const {
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
} }
void simpleengine::Game::enable_gl_option(GLenum option) const { void simpleengine::Game::enable_gl_option(GLenum option) const {