gamnit :: CheckerTexture :: defaultinit
gamnit :: CheckerTexture :: size=
Width and height in pixels, defaults to 32gamnit $ CheckerTexture :: SELF
Type of this instance, automatically specialized in every classgamnit $ CheckerTexture :: load
Load this texture, force reloading it ifforce
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gamnit :: Texture :: defaultinit
gamnit :: RootTexture :: defaultinit
gamnit :: CheckerTexture :: defaultinit
core :: Object :: defaultinit
gamnit :: RootTexture :: deleted=
Has this resource been deleted?gamnit :: RootTexture :: gl_texture=
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
gamnit :: RootTexture :: loaded=
Has this texture been loaded yet?gamnit :: Texture :: offset_bottom
Offset of the bottom border onroot
from 0.0 to 1.0
gamnit :: Texture :: offset_left
Offset of the left border onroot
from 0.0 to 1.0
gamnit :: Texture :: offset_right
Offset of the right border onroot
from 0.0 to 1.0
gamnit :: Texture :: offset_top
Offset of the top border onroot
from 0.0 to 1.0
core :: Object :: output_class_name
Display class name on stdout (debug only).gamnit :: Texture :: pixelated=
Should this texture be drawn pixelated when magnified? otherwise it is interpolatedgamnit :: RootTexture :: premultiply_alpha
Should the pixels RGB values be premultiplied by their alpha value at loading?gamnit :: RootTexture :: premultiply_alpha=
Should the pixels RGB values be premultiplied by their alpha value at loading?gamnit :: CheckerTexture :: size=
Width and height in pixels, defaults to 32gamnit :: Texture :: subtexture
Prepare a subtexture from this texture, from the given pixel offsetsgamnit :: Texture :: to_animation
Convert to a sprite animation atfps
speed with x
or y
frames
# 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