Interface to the graphics singleton.
| Constants |
| MOAIGfxDevice.EVENT_RESIZE |
|
.
Inherits MOAIGlobalClass< MOAIGfxDevice, MOAIGlobalEventSource >.
List of all members.
Function Documentation
Returns the frame buffer associated with the device.
function getMaxTextureUnits ()
- Returns:
- frameBuffer ( MOAIFrameBuffer )
Returns the total number of texture units available on the device.
function getMaxTextureUnits ()
- Returns:
- maxTextureUnits ( number )
Returns the width and height of the view.
function getViewSize ()
- Returns:
- width ( int ), height ( int )
Returns a boolean indicating whether or not Moai is running under the programmable pipeline.
function isProgrammable ()
- Returns:
- isProgrammable ( boolean )
function setPenColor ( number r, number g, number b [, number a ] )
- Parameters:
-
| r | ( number ) |
| g | ( number ) |
| b | ( number ) |
| a | ( number ) Optional. Default value is 1. |
- Returns:
- nil
function setPenWidth ( number width )
- Parameters:
-
- Returns:
- nil
function setPointSize ( number size )
- Parameters:
-
- Returns:
- nil