Documentation ¶
Index ¶
- Variables
- func AddTextureToCache(t Texture)
- type ColorFormat
- type Cubemap
- type Texture
- func GetTextureFromCacheID(texID uint32) (Texture, bool)
- func GetTextureFromCachePath(path string) (Texture, bool)
- func LoadTextureInMemPngImg(img image.Image, loadOptions *TextureLoadOptions) (Texture, error)
- func LoadTextureJpeg(file string, loadOptions *TextureLoadOptions) (Texture, error)
- func LoadTexturePNG(file string, loadOptions *TextureLoadOptions) (Texture, error)
- type TextureLoadOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddTextureToCache ¶ added in v0.12.10
func AddTextureToCache(t Texture)
Types ¶
type Cubemap ¶ added in v0.14.0
type Cubemap struct { // These only exists for textures loaded from disk RightPath string LeftPath string TopPath string BotPath string FrontPath string BackPath string TexID uint32 }
func LoadCubemapTextures ¶ added in v0.14.0
type Texture ¶
type Texture struct { //Path only exists for textures loaded from disk Path string TexID uint32 Width int32 Height int32 Pixels []byte }
func GetTextureFromCacheID ¶ added in v0.12.10
func GetTextureFromCachePath ¶ added in v0.12.10
func LoadTextureInMemPngImg ¶ added in v0.14.0
func LoadTextureInMemPngImg(img image.Image, loadOptions *TextureLoadOptions) (Texture, error)
func LoadTextureJpeg ¶ added in v0.14.0
func LoadTextureJpeg(file string, loadOptions *TextureLoadOptions) (Texture, error)
func LoadTexturePNG ¶ added in v0.12.12
func LoadTexturePNG(file string, loadOptions *TextureLoadOptions) (Texture, error)
Click to show internal directories.
Click to hide internal directories.