starting a new 3d engine
[nexus3d] / src / gl / gfx_gl.c
1 #include "opengl.h"
2 #include "nexus3d_impl.h"
3
4 void nex_clear(void)
5 {
6         glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
7 }
8
9 void nex_viewport(int x, int y, int w, int h)
10 {
11         glViewport(x, y, w, h);
12 }