浏览代码

delete old unused class

Nicolas Cannasse 4 年之前
父节点
当前提交
7c92aaf8f9
共有 1 个文件被更改,包括 0 次插入25 次删除
  1. 0 25
      h3d/mat/RenderTarget.hx

+ 0 - 25
h3d/mat/RenderTarget.hx

@@ -1,25 +0,0 @@
-package h3d.mat;
-import h3d.mat.Data;
-
-class RenderTarget extends Texture {
-
-	public var scale(default, set) : Float;
-
-	public function new(scale = 1., ?format : TextureFormat ) {
-		super(0, 0, [NoAlloc, Target], format);
-		this.scale = scale;
-	}
-
-	function set_scale( f : Float ) {
-		dispose();
-		return scale = f;
-	}
-
-	override function alloc() {
-		var engine = h3d.Engine.getCurrent();
-		width = Math.ceil(engine.width * scale);
-		height = Math.ceil(engine.height * scale);
-		super.alloc();
-	}
-
-}