gameobjects

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicObject

type BasicObject struct {
	Transform *common.Transform
	// contains filtered or unexported fields
}

the common minimal internal implementation of the GameObjectI

func NewBasicObject

func NewBasicObject(_gi *game.GlobalInfo, notDrawable bool) *BasicObject

func (*BasicObject) DrawEnable_sg

func (gb *BasicObject) DrawEnable_sg(_bool ...bool) bool

func (*BasicObject) GI

func (gb *BasicObject) GI() *game.GlobalInfo

func (*BasicObject) GetTransform added in v0.0.4

func (gb *BasicObject) GetTransform() *common.Transform

func (*BasicObject) ID_sg

func (gb *BasicObject) ID_sg(_id ...int) int

func (*BasicObject) Model added in v0.0.4

func (gb *BasicObject) Model() *matmath.MATX

func (*BasicObject) ModelAsset_sg

func (gb *BasicObject) ModelAsset_sg(_as ...*asset_manager.Asset) *asset_manager.Asset

func (*BasicObject) NotDrawable

func (gb *BasicObject) NotDrawable() bool

func (*BasicObject) OnDraw

func (gb *BasicObject) OnDraw()

should update uniform-value to gpu

func (*BasicObject) Projection added in v0.0.4

func (gb *BasicObject) Projection() *matmath.MATX

func (*BasicObject) ReadyForDraw_sg

func (gb *BasicObject) ReadyForDraw_sg(_bool ...bool) bool

func (*BasicObject) ShaderAsset_sg

func (gb *BasicObject) ShaderAsset_sg(_as ...*asset_manager.Asset) *asset_manager.Asset

func (*BasicObject) Start

func (gb *BasicObject) Start()

func (*BasicObject) TextureAsset_sg added in v0.0.3

func (gb *BasicObject) TextureAsset_sg(_as ...*asset_manager.Asset) *asset_manager.Asset

func (*BasicObject) Update

func (gb *BasicObject) Update()

func (*BasicObject) View added in v0.0.4

func (gb *BasicObject) View() *matmath.MATX

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL