Documentation
¶
Index ¶
- func DrawText(renderer *sdl.Renderer, text string, position sdl.Point, color sdl.Color, ...)
- func InitFont(fontTtf []byte, font **ttf.Font, size int) error
- func InitSDL() error
- func InitTTF() error
- func LoadFont(rwops *sdl.RWops, size int) (*ttf.Font, error)
- func LoadTexture(renderer *sdl.Renderer, imagePath string) (*sdl.Texture, error)
- func RenderImage(renderer *sdl.Renderer, imagePath string)
- func RenderText(text string, color sdl.Color, font *ttf.Font) (*sdl.Surface, error)
- func RenderTexture(renderer *sdl.Renderer, imagePath string, startQuadrant, endQuadrant string)
- func RenderTextureAdjusted(renderer *sdl.Renderer, imagePath string, rect sdl.Rect)
- func WrapText(text string, font *ttf.Font, maxWidth int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawText ¶
func DrawText(renderer *sdl.Renderer, text string, position sdl.Point, color sdl.Color, font *ttf.Font)
DrawText is a function that draws text on the screen based on the provided position, color, and font.
func RenderImage ¶
func RenderText ¶
RenderText renders text to an SDL surface
func RenderTexture ¶
func RenderTextureAdjusted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.