assets

package
v0.0.0-...-2bcbfa6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is a helper for loading assets from an embedded filesystem.

func New

func New(fs embed.FS) *Store

New creates a new asset store.

func (Store) LoadPngImage

func (s Store) LoadPngImage(name string) *rl.Image

LoadPngImage retrieves a png from the store and creates an image from it.

func (Store) LoadPngTexture

func (s Store) LoadPngTexture(name string) rl.Texture2D

LoadPngTexture retrieves a png from the store and creates a texture from it.

func (Store) LoadShader

func (s Store) LoadShader(name string) rl.Shader

LoadShader retrieves a text file from the store and creates a shader from it.

Jump to

Keyboard shortcuts

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