Documentation ¶
Overview ¶
Package texture provides a texture management system for Kaori
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Draw ¶
func Draw(renderer *sdl.Renderer, id string, x, y, width, height int32, angle float64, flip sdl.RendererFlip)
Draw draws the loaded texture
func DrawFrame ¶
func DrawFrame(renderer *sdl.Renderer, id string, x, y, width, height, currentRow, currentFrame, spacing, margin int32, angle float64, flip sdl.RendererFlip)
DrawFrame draws a part of the loaded texture A Frame is simply a cropped section of the texture by the width and height provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.