Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameObjectI ¶
type GameObjectI interface { ID_sg(...int) int ModelAsset_sg(...*asset_manager.Asset) *asset_manager.Asset ShaderAsset_sg(...*asset_manager.Asset) *asset_manager.Asset TextureAsset_sg(...*asset_manager.Asset) *asset_manager.Asset NotDrawable() bool DrawEnable_sg(...bool) bool ReadyForDraw_sg(...bool) bool GetTransform() *common.Transform Start() Update() OnDraw() }
the common gameobject Interface
type GlobalFrameInfo ¶
type GlobalFrameInfo struct { CurFrame int StartMS float64 // the time that the globalinfo successfully starts at LastFrameMS float64 // the time that the last frame begins at NowMS float64 // the time that the current frame begins at ElapsedMS float64 // the ms between now and the StartMS FrameElapsedMS float64 // the ms between now and the last frame FrameRate float64 // the frame per second Debug bool // whether print the frame info }
type GlobalInfo ¶
type GlobalInfo struct { AssetManager *asset_manager.AsssetManager CustomInit func(*GlobalInfo) MainCamera *Camera *GlobalFrameInfo // contains filtered or unexported fields }
func NewGlobalInfo ¶
func NewGlobalInfo(windowWidth, windowHeight int, title string) *GlobalInfo
func (*GlobalInfo) AddGameObject ¶
func (gi *GlobalInfo) AddGameObject(gb GameObjectI)
func (*GlobalInfo) Boot ¶
func (gi *GlobalInfo) Boot()
func (*GlobalInfo) Projection ¶ added in v0.0.4
func (gi *GlobalInfo) Projection() *matmath.MATX
func (*GlobalInfo) StartGame ¶
func (gi *GlobalInfo) StartGame(mode string)
func (*GlobalInfo) View ¶ added in v0.0.4
func (gi *GlobalInfo) View() *matmath.MATX
Click to show internal directories.
Click to hide internal directories.