Dawn/ts/display/Primitive.ts

15 lines
291 B
TypeScript

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);
}
}