MCPcopy
hub / github.com/g3n/engine / Sprite

Struct Sprite

graphic/sprite.go:16–19  ·  view source on GitHub ↗

Sprite is a potentially animated image positioned in space that always faces the camera.

Source from the content-addressed store, hash-verified

14
15// Sprite is a potentially animated image positioned in space that always faces the camera.
16type Sprite struct {
17 Graphic // Embedded graphic
18 uniMVPM gls.Uniform // Model view projection matrix uniform location cache
19}
20
21// NewSprite creates and returns a pointer to a sprite with the specified dimensions and material
22func NewSprite(width, height float32, imat material.IMaterial) *Sprite {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected