Static methods

Constructor

@:value({ centered : false, z : 1., y : 1., x : 1. })new(x:Float = 1., y:Float = 1., z:Float = 1., centered:Bool = false)

Methods

@:value({ scale : 1. })addUniformUVs(scale:Float = 1.):Void

Inherited Variables

Defined by Polygon

Defined by Primitive

buffer:Buffer

The primitive vertex buffer, holding its vertexes data.

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 Polygon

addNormals():Void

scale(s:Float):Void

translate(dx:Float, dy:Float, dz:Float):Void

unindex():Void

uvScale(su:Float, sv:Float):Void

Defined by MeshPrimitive

hasBuffer(name:String):Bool

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.

selectMaterial(material:Int):Void

Select the specified sub material before drawin. Used for internal usage.

toString():Null<String>

Return the primitive type.