Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
#
# The implementation varies per platform.
fun feed_events do end
+
+ # Extensions to OpenGL ES 2.0 supported by the current configuration
+ var gl_extensions: Array[String] is lazy do return glGetString(gl_EXTENSIONS).split(' ')
end
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)}"
end
# Core of the frame logic, executed only when the display is visible