Made entire pipeline class based.

This commit is contained in:
2021-09-26 01:45:07 -07:00
parent 4a57adf427
commit e8bcce3cc5
8 changed files with 145 additions and 46 deletions

15
ts/display/Primitive.ts Normal file
View 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);
}
}