Versions in this module Expand all Collapse all v0 v0.0.4 Oct 15, 2018 v0.0.3 Oct 12, 2018 v0.0.2 Oct 10, 2018 v0.0.1 Oct 10, 2018 Changes in this version + var ErrNameDup = errors.New("ErrNameDup") + var ErrTypeNotSupport = errors.New("ErrTypeNotSupport") + type Asset struct + Data interface{} + ID int + Loaded bool + Name string + Resource Resource + Type AssetType + func NewAsset(name string, Type AssetType, data interface{}) *Asset + func (as *Asset) Load() error + type AssetType string + var AssetTypeModel AssetType = "model" + var AssetTypeShader AssetType = "shaderprogram" + var AssetTypeTexture AssetType = "texture" + type AsssetManager struct + func NewAsssetManager() *AsssetManager + func (am *AsssetManager) FindByName(name string) *Asset + func (am *AsssetManager) Load(as *Asset) + func (am *AsssetManager) PrintAllAsset() + func (am *AsssetManager) Register(name string, as *Asset) error + type ModelDataType struct + FilePath string + type Resource interface + Active func() + Upload func() + type ShaderDataType struct + FPath string + VPath string + type TextureDataType struct + FilePath string + FlipY bool + GenMipMaps bool + Height int32 + RepeatModeU int + RepeatModeV int + Width int32