Static variables

@:value("LOD")staticlodExportKeyword:String = "LOD"

Constructor

@:value({ lods : null })new(data:Geometry, dataPos:Int, lib:Library, ?lods:Array<Model>)

Methods

getDataBuffers(fmt:BufferFormat, ?defaults:Array<Vector4>, ?material:Int):GeometryBuffer

getLodConfig():Array<Float>

loadSkin(skin:Skin):Void

recomputeNormals(?name:String):Void

Inherited Variables

Defined by Primitive

buffer:Buffer

The primitive vertex buffer, holding its vertexes data.

@:value(-1)forcedLod:Int = -1

Allow user to force a specific lod index. If set to -1, forced lod will be ignored.

indexes:Indexes

The primitive indexes buffer, holding its triangles indices.

@:value(0)read onlyrefCount:Int = 0

Current amount of references to this Primitive. Use incref and decref methods to affect this value. If it reaches 0, it will be atuomatically disposed.

Inherited Methods

Defined by MeshPrimitive

addBuffer(buf:Buffer):Void

resolveBuffer(name:String):Buffer

Defined by Primitive

decref():Void

Decrease reference count of the Primitive. If recount reaches zero, Primitive is automatically disposed when last referencing mesh is removed from scene.

incref():Void

Increase reference count of the Primitive.

toString():Null<String>

Return the primitive type.