Documentation
¶
Index ¶
- Constants
- Variables
- func AddScene(name string, s scene)
- func ChangeScene(name string) bool
- func Create(w, h int32, wm WinMode, n string)
- func GetScene(name string) (scene, bool)
- func LoadAssets()
- func LoadMusic(name, path string) error
- func LoadSound(name, path string) error
- func LoadTexture(name, path string) error
- func NewPool(c int, create func() object) *objectPool
- func NextScene()
- func Quit()
- func RegisterExtra(e extras)
- func Run() error
- func SetInitScene(name string) bool
- func SetNextScene(name string) bool
- func SetWindowMode(m WinMode) error
- func SetWindowSize(w, h int32)
- func Version() string
- type Color
- type ExtraObject
- type Object
- type Scene
- type WinMode
Constants ¶
View Source
const ( NAME = "eGo Game Engine 2D" MAJORVER = 0 MINORVER = 2 RELEASEVER = 0 )
Variables ¶
View Source
var ( AssetsLoaded bool Textures map[string]texture Music map[string]*mix.Music Sounds map[string]*mix.Chunk )
View Source
var ( Log *logit.Logger Width, Height int32 FullScreen bool Name string Renderer *sdl.Renderer DeltaTime float32 FPS int32 )
View Source
var (
ActiveScene scene
)
View Source
var (
Audio audio
)
Functions ¶
func ChangeScene ¶
func LoadAssets ¶
func LoadAssets()
func RegisterExtra ¶
func RegisterExtra(e extras)
func SetInitScene ¶
func SetNextScene ¶
func SetWindowMode ¶
func SetWindowSize ¶
func SetWindowSize(w, h int32)
Types ¶
type ExtraObject ¶
type ExtraObject struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.