new Geometry( type )

Description
Creates a Geometry
Parameters
Name Type Description
type String

Members


isInit :boolean

Description
Init status of geometry

isDirty :boolean

Description
Is this geometry in sync with its webgl context buffers

needsResize :boolean

Description
does the buffer need to increase in size?

bufferInfo :BufferInfo

Description
Webgl Buffer description

vertices :Object

Description
Javascript description of vertex buffers

init

Description
Sends vertices to gpu and generates bufferInfo
Parameters
Name Type Description
gl WebglContext

updateGeometry

Description
Updates existing geometry
Parameters
Name Type Description
newGeo: Object new geometry data to update
start: number vertex to start at.

updateBuffers

Description
Updates buffers within webglcontext
Parameters
Name Type Description
gl WebglContext WebglContext

reloadBuffers

Description
deletes and reloads a buffer into webgl context. Useful for resizing buffers
Parameters
Name Type Description
gl: WebglContext WebglContext

deleteBuffers

Description
Deletes buffers in webglContext
Parameters
Name Type Description
gl: WebglContext WebglContext

isReady :boolean

Description
Status of geometry