Create a geometry object.
The WTCGL Rendering context
A collection of attributes for the geometry. Typically includes vertex positions in 2 or 3d, normals etc.
Optional
transformFeedbacks: TransformFeedbackThe WTCGL attribute collection that describes this geometry.
An object defining the boundary of the geometry
The range of supplied elements to draw.
The WTCGL rendering context.
An object defining all of the rendering state properties.
The unique ID of the Geometry.
The number of instances to draw.
A boolean indicating whether the geometry is an instanced geometry or not.
Any supplied transform feedback objects
An array of vertex array objects that represent the different attributes.
Add an attribute
The key for the attribute
The Geometry attribute, basically the data to be injected
Binds all attributes as derived from the program to attribute objects supplied to the geometry
The program to use to determine attribute locations
Computes the bounding box of the geometry. If no attribute is provided to compue with, try to use the position attribute array by default.
Optional
attr: WTCGLGeometryAttributeThe attribute array to compute the bounding box off
Computes the bounding sphere of the geometry. If no attribute is provided to compue with, try to use the position attribute array by default.
Optional
attr: null | WTCGLGeometryAttributeThe attribute array to compute the bounding box off
Create a new vertex array object bind Attributes to it
The program to use to determine attribute locations
Returns the position atribute array
Class representing some Geometry.