Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component = RenderTexture2D // Component is an alias to RenderTexture2D
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) *RenderTexture2D
Add adds a RenderTexture2D component to the given entity and returns it
func (*ComponentFactory) ExportToLua ¶
func (*ComponentFactory) Get ¶
func (concrete *ComponentFactory) Get(id akara.EID) (*RenderTexture2D, bool)
Get returns the RenderTexture2D component for the given entity, and a bool for whether or not it exists
type RenderTexture2D ¶
type RenderTexture2D struct {
*rl.RenderTexture2D
}
RenderTexture2D is a wrapper for a raylib texture
func (*RenderTexture2D) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
func (*RenderTexture2D) New ¶
func (*RenderTexture2D) New() akara.Component
New creates a new raylib texture
Click to show internal directories.
Click to hide internal directories.