mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
All changes made for 10th part of tutorial
voxel_engine.cpp - changed structure, added character controls, physics almost all files are modified (including shaders) + new source directory - physics
This commit is contained in:
parent
e1cdcf01e9
commit
1a00a11917
22 changed files with 587 additions and 149 deletions
|
|
@ -30,6 +30,12 @@ int Window::initialize(int width, int height, const char* title){
|
|||
}
|
||||
glViewport(0,0, width, height);
|
||||
|
||||
glClearColor(0.0f,0.0f,0.0f,1);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glEnable(GL_CULL_FACE);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
Window::width = width;
|
||||
Window::height = height;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue