resources

package
v0.0.0-...-40b9e5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlankTexture

func CreateBlankTexture(r *sdl.Renderer, w, h int32) (*sdl.Texture, error)

func FontsInit

func FontsInit(embeddedFont embed.FS) error

Types

type FontsManager

type FontsManager struct {
	EmbeddedFonts embed.FS
	// contains filtered or unexported fields
}
var Fonts FontsManager

func (*FontsManager) CreateTexture

func (f *FontsManager) CreateTexture(msg string, c sdl.Color, fontKey string, renderer *sdl.Renderer) (*sdl.Texture, error)

func (*FontsManager) GetFont

func (f *FontsManager) GetFont(key string) (*ttf.Font, error)

func (*FontsManager) GetKey

func (f *FontsManager) GetKey(fontname string, size int) string

func (*FontsManager) RegisterFont

func (f *FontsManager) RegisterFont(key, filename string, size int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL