Variables

read onlyUVData:Vector<Float>

Retrieves the object's uvs as a Number array.

read onlyUVOffset:Int

The offset into UVData vector where the UVs are placed

read onlyUVStride:Int

The distance between two consecutive UV elements

read onlynumTriangles:Int

The amount of triangles that comprise the IRenderable geometry.

read onlynumVertices:Int

The total amount of vertices in the SubGeometry.

read onlyscaleU:Float

read onlyscaleV:Float

read onlysecondaryUVOffset:Int

The offset into SecondaryUVData vector where the UVs are placed

read onlysecondaryUVStride:Int

The distance between two secondary UV elements

read onlyvertexData:Vector<Float>

Retrieves the object's vertices as a Number array.

read onlyvertexNormalData:Vector<Float>

Retrieves the object's normals as a Number array.

read onlyvertexNormalOffset:Int

The offset into vertexNormalData where the normals are placed

read onlyvertexNormalStride:Int

The distance between two consecutive normal elements This always applies to vertices, normals and tangents.

read onlyvertexOffset:Int

The offset into vertexData where the vertices are placed

read onlyvertexPositionData:Vector<Float>

read onlyvertexStride:Int

The distance between two consecutive vertex, normal or tangent elements This always applies to vertices, normals and tangents.

read onlyvertexTangentData:Vector<Float>

Retrieves the object's tangents as a Number array.

read onlyvertexTangentOffset:Int

The offset into vertexTangentData where the tangents are placed

read onlyvertexTangentStride:Int

The distance between two consecutive tangent elements This always applies to vertices, normals and tangents.

Methods

activateSecondaryUVBuffer(index:Int, stage3DProxy:Stage3DProxy):Void

Assigns the attribute stream for a secondary set of UV coordinates

Parameters:

index

The attribute stream index for the vertex shader

stage3DProxy

The Stage3DProxy to assign the stream to

activateUVBuffer(index:Int, stage3DProxy:Stage3DProxy):Void

Assigns the attribute stream for UV coordinates

Parameters:

index

The attribute stream index for the vertex shader

stage3DProxy

The Stage3DProxy to assign the stream to

activateVertexBuffer(index:Int, stage3DProxy:Stage3DProxy):Void

Assigns the attribute stream for vertex positions.

Parameters:

index

The attribute stream index for the vertex shader

stage3DProxy

The Stage3DProxy to assign the stream to

activateVertexNormalBuffer(index:Int, stage3DProxy:Stage3DProxy):Void

Assigns the attribute stream for vertex normals

Parameters:

index

The attribute stream index for the vertex shader

stage3DProxy

The Stage3DProxy to assign the stream to

activateVertexTangentBuffer(index:Int, stage3DProxy:Stage3DProxy):Void

Assigns the attribute stream for vertex tangents

Parameters:

index

The attribute stream index for the vertex shader

stage3DProxy

The Stage3DProxy to assign the stream to

applyTransformation(transform:Matrix3D):Void

dispose():Void

fromVectors(vertices:Vector<Float>, uvs:Vector<Float>, normals:Vector<Float>, tangents:Vector<Float>):Void

getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D

Retrieves the IndexBuffer3D object that contains triangle indices.

Parameters:

context

The Context3D for which we request the buffer

Returns:

The VertexBuffer3D object that contains triangle indices.

scale(scale:Float):Void

@:value({ scaleV : 1, scaleU : 1 })scaleUV(scaleU:Float = 1, scaleV:Float = 1):Void