Mesh

ポリゴンで構成された形状を表すclassです.

Members

Aliases

IndexType
alias IndexType = int
Undocumented in source.
texCoords
alias texCoords = texCoords0
Undocumented in source.

Functions

addIndex
Mesh addIndex(IndexType index)

頂点インデックスを追加します.

addNormal
Mesh addNormal(Vector3f vec)

法線ベクトルを追加します.

addNormal
Mesh addNormal(float x, float y, float z)

法線ベクトルを追加します.

addTexCoord
Mesh addTexCoord(Vector2f vec)

テクスチャ座標を追加します.

addTexCoord
Mesh addTexCoord(float u, float v)

テクスチャ座標を追加します.

addVertex
Mesh addVertex(Vector3f vec)

頂点座標を追加します.

addVertex
Mesh addVertex(float x, float y, float z)

頂点座標を追加します.

calcNormal
Mesh calcNormal()
draw
Mesh draw(PolyRenderMode renderMode)

meshを描画します.

drawFill
Mesh drawFill()

meshの面を塗りつぶして描画します.

drawVertices
Mesh drawVertices()

meshの頂点を点で描画します.

drawWireFrame
Mesh drawWireFrame()

meshをワイヤフレームで描画します.

numIndices
size_t numIndices()

頂点インデックスの数を表します.

numNormals
size_t numNormals()

法線ベクトルの数を表します.

numTexCoords
size_t numTexCoords()

テクスチャ座標の数を表します.

numVertices
size_t numVertices()

頂点座標の数を表します.

opBinary
Mesh opBinary(Mesh rhs)
opOpAssign
void opOpAssign(Mesh rhs)
primitiveMode
PrimitiveMode primitiveMode()

meshの描画モードを返します.

primitiveMode
Mesh primitiveMode(PrimitiveMode mode)

meshの描画モードを指定します.

Variables

colors
armos.types.FloatColor[] colors;
Undocumented in source.
indices
IndexType[] indices;
Undocumented in source.
isFaceDirty
bool isFaceDirty;
Undocumented in source.
isIndicesChanged
bool isIndicesChanged;
Undocumented in source.
isVertsChanged
bool isVertsChanged;
Undocumented in source.
normals
Vector3f[] normals;
Undocumented in source.
tangents
Vector3f[] tangents;
Undocumented in source.
texCoords0
Vector4f[] texCoords0;
Undocumented in source.
texCoords1
Vector4f[] texCoords1;
Undocumented in source.
vertices
Vector4f[] vertices;
Undocumented in source.

Meta