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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlyphSheet

type GlyphSheet struct {
	Masks []rl.Rectangle // A collection of glyphs taken from the overall sprite sheet.
	// contains filtered or unexported fields
}

GlyphSheet models the loaded sheet and hold dimensions of glyphs.

func NewGlyphSheet

func NewGlyphSheet() *GlyphSheet

NewGlyphSheet creates a new glyph sheet.

func (*GlyphSheet) GlyphHeight

func (g *GlyphSheet) GlyphHeight() int

GlyphHeight returns the height of a glyph.

func (*GlyphSheet) GlyphWidth

func (g *GlyphSheet) GlyphWidth() int

GlyphWidth returns the width of a glyph.

func (*GlyphSheet) MaskHeight

func (g *GlyphSheet) MaskHeight() int

MaskHeight returns the mask height of a glyph.

func (*GlyphSheet) MaskWidth

func (g *GlyphSheet) MaskWidth() int

MaskWidth returns the mask width of a glyph.

func (*GlyphSheet) Texture

func (g *GlyphSheet) Texture() rl.Texture2D

Texture returns the texture.

type ShaderCollection

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

ShaderCollection contains all shaders used in the saver.

func NewShaderCollection

func NewShaderCollection() *ShaderCollection

NewShaderCollection creates a new shader collection.

func (*ShaderCollection) Highlight

func (s *ShaderCollection) Highlight() rl.Shader

Highlight returns the highligh shader.

func (*ShaderCollection) HighlightFading

func (s *ShaderCollection) HighlightFading() rl.Shader

HighlightFading returns the highligh fading shader.

Jump to

Keyboard shortcuts

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