Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2012-11-19 0:05

Namespace SpiderGL.Core

The SpiderGL.Core namespace.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
The SpiderGL.Core namespace.
Field Summary
Field Attributes Field Name and Description
<static> <constant>  
SpiderGL.Core.DEFAULT
Default token.
<static> <constant>  
SpiderGL.Core.DONT_CARE
Don't care token.
<static> <constant>  
SpiderGL.Core.EMPTY_ARRAY
Alias for [ ].
<static> <constant>  
SpiderGL.Core.EMPTY_OBJECT
Alias for { }.
<static> <constant>  
SpiderGL.Core.EMPTY_STRING
Alias for "".

Method Summary

Method Attributes Method Name and Description
<static>  
SpiderGL.Core.EMPTY_FUNCTION()
Alias for function () { }.
<static>  
SpiderGL.Core.generateUID()
Generates a unique id.

Namespace Detail

SpiderGL.Core
The SpiderGL.Core namespace.

Field Detail

<static> <constant> {object} SpiderGL.Core.DEFAULT
Default token. This constant can be used to set a parameter to its default value.
texture.setSampler({
  wrapS : gl.REPEAT,
  wrapT : SpiderGL.Core.DEFAULT // set to the default value gl.CLAMP_TO_EDGE
});
<static> <constant> {object} SpiderGL.Core.DONT_CARE
Don't care token. This constant can be used to avoid setting policy/behavior parameter.
texture.setImage({
  data  : image,
  flipY : SpiderGL.Core.DONT_CARE // overrides the texture automatic flipY policy and keeps current gl setting
});
<static> <constant> {array} SpiderGL.Core.EMPTY_ARRAY
Alias for [ ].
<static> <constant> {object} SpiderGL.Core.EMPTY_OBJECT
Alias for { }.
<static> <constant> {string} SpiderGL.Core.EMPTY_STRING
Alias for "".

Method Detail

  • <static> {function} SpiderGL.Core.EMPTY_FUNCTION()
    Alias for function () { }. It can be used as a function parameter or event handler to avoid checking whether the provided function is not null or undefined.
    // avoid test for null/undefined when invoking an event handler
    someObject.onSomeEvent = SpiderGL.Core.EMPTY_FUNCTION;
  • <static> {number} SpiderGL.Core.generateUID()
    Generates a unique id.
    Returns:
    {number} A unique id.