Documentation
¶
Index ¶
- Variables
- func Advance() (bool, error)
- func FileMountArchive(mountPath, archivePath string) error
- func FileUnmountAll() error
- func FileUnmountArchive(mountPath string) error
- func Initialize() error
- func NewTextureFromRgb(colors []math.Color3b, size math.Vec2i) (graphics.Texture, error)
- func NewTextureFromRgba(colors []math.Color4b, size math.Vec2i) (graphics.Texture, error)
- func Shutdown() error
- func WindowCreate(title string, size math.Vec2i, scene Scene) error
- func WindowDestroy() error
- func WindowDisplaySize() (math.Vec2i, error)
- func WindowIsCreated() bool
- func WindowRenderTexture(texture graphics.Texture, position math.Vec2i) error
- func WindowSetScene(scene Scene) error
- type File
- type Scene
- type SceneAdvancer
- type SceneCreator
- type SceneDestroyer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWindowExists = errors.New("only one window can exist at a time") ErrWindowNotExists = errors.New("no window has been created") )
View Source
var (
ErrPlatformNotInit = errors.New("platform is not initialized")
)
Functions ¶
func FileMountArchive ¶
func FileUnmountAll ¶
func FileUnmountAll() error
func FileUnmountArchive ¶
func Initialize ¶
func Initialize() error
func NewTextureFromRgb ¶
func NewTextureFromRgba ¶
func WindowDestroy ¶
func WindowDestroy() error
func WindowDisplaySize ¶
func WindowIsCreated ¶
func WindowIsCreated() bool
func WindowRenderTexture ¶
func WindowSetScene ¶
Types ¶
type SceneAdvancer ¶
type SceneAdvancer interface {
Advance() error
}
type SceneCreator ¶
type SceneCreator interface {
Create() error
}
type SceneDestroyer ¶
type SceneDestroyer interface {
Destroy() error
}
Click to show internal directories.
Click to hide internal directories.