WINTERMUTE: Implement proper 3d setup function

This commit is contained in:
Gunnar Birke 2020-05-26 13:10:42 +02:00 committed by Paweł Kołodziejski
parent bf43ae1588
commit 1d6a47c8b3
4 changed files with 22 additions and 3 deletions

View file

@ -256,8 +256,20 @@ bool BaseRenderOpenGL3D::setup2D(bool force) {
return true;
}
bool BaseRenderOpenGL3D::setup3D(bool force) {
warning("BaseRenderOpenGL3D::setup3D not yet implemented");
bool BaseRenderOpenGL3D::setup3D(Camera3D* camera, bool force) {
if (!_state3D || force) {
_state3D = true;
glEnable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
glAlphaFunc(GL_GEQUAL, 0x08);
// no culling for the moment
glDisable(GL_CULL_FACE);
setProjection();
}
return true;
}