Fork me on GitHub

API Documentation


Extends GLGE.Mesh.
Used to generate a basic sphere mesh
Defined in: glge_sphere.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Gets the sphere radius
 
setHorizontal(radius)
Sets the sphere horizontal divisions
 
setRadius(radius)
Sets the sphere radius
 
setVertical(radius)
Sets the sphere vertical divisions
Methods borrowed from class GLGE.Mesh:
calcFauxAO, clearBuffers, getBoundingVolume, setFaces, setInvBindMatrix, setJoints, setNormals, setPositions, setTangents, setUV, setUV2, setVertexColors, setVertexJoints, setVertexWeights
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Methods borrowed from class GLGE.Events:
addEventListener, fireEvent, removeEventListener
Events borrowed from class GLGE.Mesh:
shaderupdate
Class Detail
GLGE.Sphere(uid)
Parameters:
uid
Method Detail
getRadius()
Gets the sphere radius
Returns:
the radius

setHorizontal(radius)
Sets the sphere horizontal divisions
Parameters:
{number} radius
the sphere radius

setRadius(radius)
Sets the sphere radius
Parameters:
{number} radius
the sphere radius

setVertical(radius)
Sets the sphere vertical divisions
Parameters:
{number} radius
the sphere radius

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)