Made entire pipeline class based.
This commit is contained in:
15
ts/display/Primitive.ts
Normal file
15
ts/display/Primitive.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export class Primitive {
|
||||
public _primitive:CPrimitive;
|
||||
|
||||
public constructor() {
|
||||
this._primitive = primitiveCreate();
|
||||
}
|
||||
|
||||
draw(start:number=0, count:number=-1) {
|
||||
primitiveDraw(this._primitive, start, count);
|
||||
}
|
||||
|
||||
public dispose() {
|
||||
primitiveDispose(this._primitive);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user