Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component = RenderOrder // Component is an alias to RenderOrder
type ComponentFactory ¶
type ComponentFactory struct {
*akara.ComponentFactory
}
ComponentFactory is a wrapper for the generic component factory.
func (*ComponentFactory) Add ¶
func (concrete *ComponentFactory) Add(id akara.EID) *RenderOrder
Add adds a RenderOrder component to the given entity and returns it
func (*ComponentFactory) ExportToLua ¶
func (*ComponentFactory) Get ¶
func (concrete *ComponentFactory) Get(id akara.EID) (*RenderOrder, bool)
Get returns the RenderOrder component for the given entity, and a bool for whether or not it exists
type RenderOrder ¶
type RenderOrder struct {
Value int
}
RenderOrder is a component that contains normalized alpha transparency (0.0 ... 1.0)
func (*RenderOrder) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
func (*RenderOrder) New ¶
func (*RenderOrder) New() akara.Component
New creates a new alpha component instance. The default alpha is opaque with value 1.0
Click to show internal directories.
Click to hide internal directories.