app :: App :: create_display
self.display
# Create and set `self.display`
fun create_display
do
var display = new GamnitDisplay
display.setup
self.display = display
# Print the current GL configuration, for debugging
print "GL vendor: {glGetString(gl_VENDOR)}"
print "GL renderer: {glGetString(gl_RENDERER)}"
print "GL version: {glGetString(gl_VERSION)}"
print "GLSL version: {glGetString(gl_SHADING_LANGUAGE_VERSION)}"
print "GL extensions: {glGetString(gl_EXTENSIONS)}"
print "GL max texture size: {glGetIntegerv(gl_MAX_TEXTURE_SIZE, 0)}"
end
lib/gamnit/gamnit.nit:46,2--60,4