Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
var error: nullable Error = null
# OpenGL handle to this texture
var error: nullable Error = null
# OpenGL handle to this texture
- var gl_texture: Int is noinit
+ fun gl_texture: Int do return root.gl_texture
# Prepare a subtexture from this texture
fun subtexture(left, top, width, height: Numeric): GamnitSubtexture
# Prepare a subtexture from this texture
fun subtexture(left, top, width, height: Numeric): GamnitSubtexture
# Has this texture been loaded yet?
var loaded = false
# Has this texture been loaded yet?
var loaded = false
+ redef var gl_texture = -1
+
init do all_root_textures.add self
private fun load_from_pixels(pixels: Pointer, width, height: Int, format: GLPixelFormat)
init do all_root_textures.add self
private fun load_from_pixels(pixels: Pointer, width, height: Int, format: GLPixelFormat)