Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentFactory ¶
type ComponentFactory struct {
*akara.ComponentFactory
}
ComponentFactory is a wrapper for the generic component factory that returns Font component instances. This can be embedded inside of a system to give them the methods for adding, retrieving, and removing a Font.
func (*ComponentFactory) Add ¶
func (concrete *ComponentFactory) Add(id akara.EID) *Font
Add adds a Font component to the given entity and returns it
func (*ComponentFactory) ExportToLua ¶
type Font ¶
Font is a component that contains a font name as a string, and a font size in pixels.
The font name is used for resolving a font file on the host machine.
func (*Font) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
Click to show internal directories.
Click to hide internal directories.