struct Glint::Texture
- Glint::Texture
- Struct
- Value
- Object
Defined in:
glint/texture.crConstructors
-
.new(texture : Raylib::Texture2D)
Creates a texture from a
Raylib::Texture2D
. -
.new(filename : String)
Creates a texture from an external resource.
Class Method Summary
-
.load(filename : String)
Loads an external texture resource.
Instance Method Summary
-
#draw(position, pivot, rotation, tint)
Draw a texture
-
#extents
Returns the
Texture
's extents. -
#to_unsafe : Raylib::Texture2D
Returns the
Texture
in a C-compatible format, i.e.