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 (*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.
Click to show internal directories.
Click to hide internal directories.