package kha.html5worker;
import kha.arrays.Float32Array;
import kha.Canvas;
import kha.graphics4.IndexBuffer;
import kha.graphics4.MipMapFilter;
import kha.graphics4.PipelineState;
import kha.graphics4.TextureAddressing;
import kha.graphics4.TextureFilter;
import kha.graphics4.Usage;
import kha.graphics4.VertexBuffer;
import kha.graphics4.VertexStructure;
import kha.math.FastMatrix3;
import kha.math.FastMatrix4;
import kha.math.FastVector2;
import kha.math.FastVector3;
import kha.math.FastVector4;
class Graphics implements kha.graphics4.Graphics {
var renderTarget: Image;
public function new(renderTarget: Canvas = null) {
if (Std.isOfType(renderTarget, Image)) {
this.renderTarget = cast renderTarget;
}
}
public function begin(additionalRenderTargets: Array