gma.renderHelper

Connects rendered object to gamma object

Package

gma/utils/render

Properties

entity

The entity that is attached to this helper (and vice verca)

Type

Gamma object

template

The template object
<strong> must be passed in or set after creation</strong>

Type

gma.baseTemplate

parent

The parent object that the rendered object belongs to

Type

GLGE.Group

Methods

attachTo (obj)

Attaches an object to this helper

Parameters

obj

object

The object which we wish to attach to the helper

addTo (grp)

Attaches the object to the group

Parameters

grp

GLGE.Group

The group that we will add the object to

setLocation ( )

Sets the location of the rendered object using self.entity

getRenderedObj ( ) -> GLGE.Object

Gets the object that we are rendering

remove ( )

Removes the objects from the parent group and sets the parent to undefined

toggleBounding ( )

Toggles from rendering the desired object to rendering a unit cube (this shows the bounding box)