Documentation ¶
Index ¶
- func Auth(email string, password string) bool
- func CountUser() int
- func DeleteMaterial(hex string) string
- func DeleteObject(hex string) string
- func DeleteScene(hex string) string
- func DeleteSprite(hex string) string
- type Action
- type Animation
- type AnimationFrame
- type Camera
- type Color
- type Image
- type Light
- type Material
- type Object
- type Scene
- type Sprite
- type Text
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMaterial ¶
func DeleteObject ¶
func DeleteScene ¶
func DeleteSprite ¶
Types ¶
type AnimationFrame ¶
type Material ¶
type Material struct { Id bson.ObjectId `bson:"_id"` Name string Color *Color Texture string Alpha string }
func GetMaterialByHex ¶
func GetMaterialList ¶
func GetMaterialList() []Material
func SaveMaterial ¶
type Object ¶
type Object struct { Id bson.ObjectId `bson:"_id"` Name string RefName string Kind string Properties map[string]string Material *Material }
func GetObjectByHex ¶
func GetObjectList ¶
func GetObjectList() []Object
func SaveObject ¶
type Scene ¶
type Scene struct { Id bson.ObjectId `bson:"_id"` Name string RefName string MainCamera string Objects []Object Cameras []Camera Lights []Light Sprites []Sprite Images []Image Texts []Text Animations []Animation RenderScript string Actions map[string]string }
func GetSceneByHex ¶
func GetSceneList ¶
func GetSceneList() []Scene
Click to show internal directories.
Click to hide internal directories.