Property definitions

gamnit $ CheckerTexture :: defaultinit
# Colorful small texture of 32x32 pixels by default
class CheckerTexture
	super RootTexture

	# Width and height in pixels, defaults to 32
	var size = 32 is optional

	redef fun load(force)
	do
		if gl_texture != -1 then return
		load_checker size
		loaded = true
	end
end
lib/gamnit/textures.nit:115,1--128,3