asset

package
v0.0.0-...-e1c21c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2019 License: Zlib Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Types

type AudioManager

type AudioManager struct {
	// contains filtered or unexported fields
}
var Audio *AudioManager

func NewAudioManager

func NewAudioManager() *AudioManager

func (*AudioManager) Get

func (am *AudioManager) Get(file string) (id uint16, ok bool)

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) Get

func (fm *FontManager) Get(name string) (fnt font.Font, ok bool)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL