View Source Exray.Textures.Texture.Drawing (Exray v0.6.0)
Texture drawing functionality.
Call between Exray.Core.Drawing.begin_mode_2d()
and Exray.Core.Drawing.end_mode_2d()
...
... Which should be called between Exray.Core.Drawing.begin_drawing()
and Exray.Core.Drawing.end_drawing()
Summary
Functions
Draw a Texture2D
Draw a Texture2D with extended parameters
Draws a texture (or part of it) that stretches or shrinks nicely
Draw a part of a texture defined by a rectangle with 'pro' parameters
Draw a part of a texture defined by a rectangle
Draw a Texture2D with position defined as Vector2
Functions
@spec draw_texture( texture :: Exray.Structs.Texture.t(), pos_x :: integer(), pos_y :: integer(), tint :: Exray.Structs.Color.t() ) :: :ok
Draw a Texture2D
@spec draw_texture_ex( texture :: Exray.Structs.Texture.t(), position :: Exray.Structs.Vector2.t(), rotation :: float(), scale :: float(), tint :: Exray.Structs.Color.t() ) :: :ok
Draw a Texture2D with extended parameters
draw_texture_n_patch(texture, n_patch_info, dest, origin, rotation, tint)
View Source@spec draw_texture_n_patch( texture :: Exray.Structs.Texture.t(), n_patch_info :: Exray.Structs.NPatchInfo.t(), dest :: Exray.Structs.Rectangle.t(), origin :: Exray.Structs.Vector2.t(), rotation :: float(), tint :: Exray.Structs.Color.t() ) :: :ok
Draws a texture (or part of it) that stretches or shrinks nicely
@spec draw_texture_pro( texture :: Exray.Structs.Texture.t(), source :: Exray.Structs.Rectangle.t(), dest :: Exray.Structs.Rectangle.t(), origin :: Exray.Structs.Vector2.t(), rotation :: float(), tint :: Exray.Structs.Color.t() ) :: :ok
Draw a part of a texture defined by a rectangle with 'pro' parameters
@spec draw_texture_rec( texture :: Exray.Structs.Texture.t(), source :: Exray.Structs.Rectangle.t(), position :: Exray.Structs.Vector2.t(), tint :: Exray.Structs.Color.t() ) :: :ok
Draw a part of a texture defined by a rectangle
@spec draw_texture_v( texture :: Exray.Structs.Texture.t(), position :: Exray.Structs.Vector2.t(), tint :: Exray.Structs.Color.t() ) :: :ok
Draw a Texture2D with position defined as Vector2