MeshData class

represent the raw data for mesh. Internally this is wrapper around a Vertex Array Object (VAO). MeshData objects can be populated directly but often they will derived from GeometryBuilder objects. The other common way to create a MeshData object is via RenderProgram.MakeMeshData(). Note, MeshData is always associated with a specific RenderProgram but it is possible to assert compatibility with multiple RenderPrograms.

Inheritance

Constructors

MeshData(String name, ChronosGL _cgl, int _drawMode, Map<String, int> _locationMap)

Properties

debug bool
getter/setter pairinherited
drawMode int
no setter
elementArrayBufferType int
no setter
enabled bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Activate() → void
AddAttribute(String canonical, List data, int width) → void
AddFaces(List<int> faces) → void
AddVertices(Float32List data) → void
ChangeAttributeBuffer(String canonical, GlBuffer buffer) → void
ChangeAttributeData(String canonical, List data, int width) → void
ChangeFaces(List<int> faces) → void
ChangeVertexData(Float32List data) → void
clearData() → void
GetAttribute(String canonical) List
GetAttributes() Iterable<String>
GetBuffer(String canonical) GlBuffer
GetNumInstances() int
GetNumItems() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
SupportsAttribute(String canonical) bool
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited