Method: GLApp#setup_context

Defined in:
lib/glapp.rb

#setup_contextObject

begin hooks



49
50
51
52
53
54
# File 'lib/glapp.rb', line 49

def setup_context
  glEnable(GL_DEPTH_TEST)
  glEnable(GL_BLEND)
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
  glutIgnoreKeyRepeat(1)
end