gamnit :: TextureAsset :: defaultinit
# Texture loaded from the assets folder
class TextureAsset
	super RootTexture
	# Path to this texture within the `assets` folder
	var path: String
	redef fun load(force)
	do
		if loaded and force != true then return
		load_from_platform
		# If no pixel data was loaded, load the pixel default texture
		if gl_texture == -1 then load_checker 32
		loaded = true
	end
	# Partially load this texture from platform-specific features
	#
	# This method should fill `width`, `height` and `pixels`.
	private fun load_from_platform is abstract
	redef fun to_s do return "<{class_name} path:{path}>"
end
					lib/gamnit/textures.nit:311,1--336,3