Documentation ¶
Index ¶
- func Clear()
- type AudioManager
- type FontManager
- type ParticleConfigManager
- type ShaderManager
- type TextureManager
- func (tm *TextureManager) Atlas(file string) (at *gfx.Atlas, ok bool)
- func (tm *TextureManager) Get(file string) gfx.Tex2D
- func (tm *TextureManager) GetRaw(file string) (uint16, *bk.Texture2D)
- func (tm *TextureManager) Load(file string)
- func (tm *TextureManager) LoadAtlas(file, desc string)
- func (tm *TextureManager) LoadAtlasIndexed(file string, width, height float32, row, col int)
- func (tm *TextureManager) Unload(file string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioManager ¶
type AudioManager struct {
// contains filtered or unexported fields
}
var Audio *AudioManager
func NewAudioManager ¶
func NewAudioManager() *AudioManager
func (*AudioManager) Load ¶
func (am *AudioManager) Load(file string, stream bool)
Load loads a single Texture file.
func (*AudioManager) Unload ¶
func (am *AudioManager) Unload(file string)
Unload delete raw Texture and any related SubTextures.
type FontManager ¶
type FontManager struct {
// contains filtered or unexported fields
}
var Font *FontManager
func NewFontManager ¶
func NewFontManager() *FontManager
func (*FontManager) LoadBitmap ¶
func (fm *FontManager) LoadBitmap(name string, img, fc string)
func (*FontManager) LoadTrueType ¶
func (fm *FontManager) LoadTrueType(name string, file string, lc font.TTFConfig)
func (*FontManager) Unload ¶
func (fm *FontManager) Unload(name string)
type ParticleConfigManager ¶
type ParticleConfigManager struct {
// contains filtered or unexported fields
}
粒子系统配置文件管理
var PSConfig *ParticleConfigManager
func NewParticleConfigManager ¶
func NewParticleConfigManager() *ParticleConfigManager
func (*ParticleConfigManager) Get ¶
func (pcm *ParticleConfigManager) Get(file string) (res interface{}, exist bool)
func (*ParticleConfigManager) Load ¶
func (pcm *ParticleConfigManager) Load(file string)
func (*ParticleConfigManager) Unload ¶
func (pcm *ParticleConfigManager) Unload(file string)
type ShaderManager ¶
type ShaderManager struct { }
var Shader *ShaderManager
func (*ShaderManager) GetShaderStr ¶
func (sm *ShaderManager) GetShaderStr(key string) (string, string)
type TextureManager ¶
type TextureManager struct {
// contains filtered or unexported fields
}
var Texture *TextureManager
func NewTextureManager ¶
func NewTextureManager() *TextureManager
func (*TextureManager) Atlas ¶
func (tm *TextureManager) Atlas(file string) (at *gfx.Atlas, ok bool)
Atlas returns the Atlas.
func (*TextureManager) Get ¶
func (tm *TextureManager) Get(file string) gfx.Tex2D
Get returns the low-level Texture.
func (*TextureManager) GetRaw ¶
func (tm *TextureManager) GetRaw(file string) (uint16, *bk.Texture2D)
Get returns the low-level Texture.
func (*TextureManager) Load ¶
func (tm *TextureManager) Load(file string)
Load loads a single Texture file.
func (*TextureManager) LoadAtlas ¶
func (tm *TextureManager) LoadAtlas(file, desc string)
LoadAtlas loads the atlas with a description file. The SubTexture can be found by SubTexture's name.
func (*TextureManager) LoadAtlasIndexed ¶
func (tm *TextureManager) LoadAtlasIndexed(file string, width, height float32, row, col int)
LoadAtlasIndexed loads the atlas with specified with/height/num.
func (*TextureManager) Unload ¶
func (tm *TextureManager) Unload(file string)
Unload delete raw Texture and any related SubTextures.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.