Documentation ¶
Index ¶
- Constants
- type Texture
- func (tex *Texture) EvictFromMainMemory()
- func (tex *Texture) FilePath() string
- func (tex *Texture) Format() uint32
- func (tex *Texture) G3nTexture() *texture.Texture2D
- func (tex *Texture) Height() int
- func (tex *Texture) PixelDataForFrame(frame int) []byte
- func (tex *Texture) Reload() error
- func (tex *Texture) Thumbnail() []byte
- func (tex *Texture) Width() int
- type TextureLoadedEvent
Constants ¶
View Source
const (
// TextureLoaded tells other systems that a texture is loaded
TextureLoaded = "Textures.Loaded"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Texture ¶
type Texture struct { Translucent bool Bump math32.Vector3 BumpScale float32 // contains filtered or unexported fields }
func Load ¶
func Load(path string, fs *filesystem.Filesystem) (*Texture, error)
func (*Texture) EvictFromMainMemory ¶
func (tex *Texture) EvictFromMainMemory()
func (*Texture) G3nTexture ¶
func (*Texture) PixelDataForFrame ¶
PixelDataForFrame get raw colour data for this frame
type TextureLoadedEvent ¶
Click to show internal directories.
Click to hide internal directories.