API Docs for:
Show:

Component_Quad Class

Module: gs

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 Object

    data - The data-bundle

  • gs.ObjectCodecContext Object

    context - 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.