Mesh

Mesh

Constructors

this
this()
Undocumented in source.
this
this(VertexFormat vertexFormat)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addCubeMesh
void addCubeMesh(vec3 pos, float d, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
addPart
MeshPart addPart(MeshPart meshPart)
Undocumented in source. Be warned that the author may not have intended to support it.
addPart
MeshPart addPart(PrimitiveType type, ushort[] indexes)

add new mesh part or append indexes to existing part (if type matches)

addQuad
void addQuad(vec3 v0, vec3 v1, vec3 v2, vec3 v3, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
addVertex
int addVertex(float[] data)

adds single vertex

addVertexes
int addVertexes(float[] data)

adds one or more vertexes

dumpVertexes
string dumpVertexes(int maxCount)
Undocumented in source. Be warned that the author may not have intended to support it.
hasElement
bool hasElement(VertexElementType type)

returns true if vertex format contains specified element

part
MeshPart part(int index)

returns mesh part by index

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
vertex
const(float[]) vertex(int index)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

indexData
const(ushort[]) indexData [@property getter]

return index data for all parts

indexFragments
IndexFragment[] indexFragments [@property getter]

list of mesh fragments

partCount
int partCount [@property getter]

mesh part count

vertexBuffer
VertexBuffer vertexBuffer [@property getter]

get vertex buffer object

vertexBuffer
VertexBuffer vertexBuffer [@property setter]

set vertex buffer object

vertexCount
int vertexCount [@property getter]

returns vertex count

vertexData
const(float[]) vertexData [@property getter]

returns vertex data array

vertexFormat
VertexFormat vertexFormat [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
vertexFormat
VertexFormat vertexFormat [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
vertexFormatPtr
const(VertexFormat)* vertexFormatPtr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

createCubeMesh
Mesh createCubeMesh(vec3 pos, float d, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_dirtyVertexBuffer
bool _dirtyVertexBuffer;
Undocumented in source.
_parts
MeshPart[] _parts;
Undocumented in source.
_vertexBuffer
VertexBuffer _vertexBuffer;
Undocumented in source.
_vertexCount
int _vertexCount;
Undocumented in source.
_vertexData
float[] _vertexData;
Undocumented in source.
_vertexFormat
VertexFormat _vertexFormat;
Undocumented in source.

Inherited Members

From RefCountedObject

_refCount
int _refCount;

count of references to this object from Ref

refCount
int refCount [@property getter]

returns current value of reference counter

addRef
void addRef()

increments reference counter

releaseRef
void releaseRef()

decrement reference counter, destroy object if no more references left

~this
~this()
Undocumented in source.

Meta