浏览代码

Add clear with vector

ShiroSmith 7 年之前
父节点
当前提交
6d14141647
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      h3d/Engine.hx

+ 5 - 0
h3d/Engine.hx

@@ -365,6 +365,11 @@ class Engine {
 		needFlushTarget = false;
 		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 ) {
 	public function clear( ?color : Int, ?depth : Float, ?stencil : Int ) {
 		if( color != null )
 		if( color != null )
 			tmpVector.setColor(color);
 			tmpVector.setColor(color);