Component_Quad Class
A quad component displays rectangle on the screen using the color of the game object.
Methods
dispose
()
Disposes the quad.
onDataBundleRestore.
(
-
Object
-
gs.ObjectCodecContext
Called if this object instance is restored from a data-bundle. It can be used re-assign event-handler, anonymous functions, etc.
Parameters:
-
Object
Objectdata - The data-bundle
-
gs.ObjectCodecContext
Objectcontext - The codec-context.
setup
()
Sets up the quad.
setupEventHandlers
()
Adds event-handlers for mouse/touch events
update
()
Updates the quad and its properties.
Properties
quad
gs.Quad
protected
The native quad-object to display a colored rectangle on screen.