parent
gamnit :: AbsoluteSubtexture :: left=
Left border of this texture relative toparent
gamnit :: AbsoluteSubtexture :: top=
Top border of this texture relative toparent
gamnit $ AbsoluteSubtexture :: SELF
Type of this instance, automatically specialized in every classgamnit $ AbsoluteSubtexture :: offset_bottom
Offset of the bottom border onroot
from 0.0 to 1.0
gamnit $ AbsoluteSubtexture :: offset_left
Offset of the left border onroot
from 0.0 to 1.0
gamnit $ AbsoluteSubtexture :: offset_right
Offset of the right border onroot
from 0.0 to 1.0
gamnit $ AbsoluteSubtexture :: offset_top
Offset of the top border onroot
from 0.0 to 1.0
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gamnit :: Texture :: defaultinit
gamnit :: Subtexture :: defaultinit
core :: Object :: defaultinit
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 :: AbsoluteSubtexture :: left=
Left border of this texture relative toparent
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 :: Subtexture :: parent
Parent texture, from which this texture was createdgamnit :: Subtexture :: parent=
Parent texture, from which this texture was createdgamnit :: Texture :: pixelated=
Should this texture be drawn pixelated when magnified? otherwise it is interpolatedgamnit :: 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
gamnit :: AbsoluteSubtexture :: top=
Top border of this texture relative toparent
gamnit :: Subtexture
Texture derived from another texture, does not own its pixels
# Subtexture created from pixel coordinates within `parent`
class AbsoluteSubtexture
super Subtexture
# Left border of this texture relative to `parent`
var left: Float
# Top border of this texture relative to `parent`
var top: Float
private fun set_wh(width, height: Float)
is autoinit do
self.width = width
self.height = height
end
redef var offset_left = parent.offset_left + left / root.width is lazy
redef var offset_top = parent.offset_top + top / root.height is lazy
redef var offset_right = offset_left + width / root.width is lazy
redef var offset_bottom = offset_top + height / root.height is lazy
end
lib/gamnit/textures.nit:350,1--370,3