Window.cpp
Go to the documentation of this file.
1 #include "Window.hpp"
2 #include <ivorium_config.hpp>
3 
4 namespace iv
5 {
6 
8 {
9  // blending
10  glEnable( GL_BLEND );
11  glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
12 
13  // culling
14  glDisable( GL_CULL_FACE );
15  //glEnable( GL_CULL_FACE );
16  //glFrontFace( GL_CCW );
17  //glCullFace( GL_BACK );
18 
19  // texture transfer
20  glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
21 
22  // primitive restart
23 #if !IV_WEBGL_USED
24  glEnable( GL_PRIMITIVE_RESTART_FIXED_INDEX );
25 #endif
26 
27  //
28  //ofDisableAntiAliasing();
29  //ofBackground( 255,255,255 );
30 
31  // sRGB
32 #if !IV_GLPLATFORM_GLFM
33  glEnable( GL_FRAMEBUFFER_SRGB );
34 #endif
35 }
36 
37 }