Browse Source

Add clear with vector

ShiroSmith 7 years ago
parent
commit
6d14141647
1 changed files with 5 additions and 0 deletions
  1. 5 0
      h3d/Engine.hx

+ 5 - 0
h3d/Engine.hx

@@ -365,6 +365,11 @@ class Engine {
 		needFlushTarget = false;
 	}
 
+	public function clearF( color : h3d.Vector, ?depth : Float, ?stencil : Int ) {
+		flushTarget();
+		driver.clear(color, depth, stencil);
+	}
+
 	public function clear( ?color : Int, ?depth : Float, ?stencil : Int ) {
 		if( color != null )
 			tmpVector.setColor(color);