|
@@ -61,6 +61,12 @@ class RenderContext {
|
|
currentObj = null;
|
|
currentObj = null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function setTarget( t : h3d.mat.Texture ) {
|
|
|
|
+ flush();
|
|
|
|
+ engine.setTarget(t);
|
|
|
|
+ begin();
|
|
|
|
+ }
|
|
|
|
+
|
|
public function flush() {
|
|
public function flush() {
|
|
if( bufPos == 0 ) return;
|
|
if( bufPos == 0 ) return;
|
|
beforeDraw();
|
|
beforeDraw();
|