ncannasse 12 سال پیش
والد
کامیت
1fc5e9151c
2فایلهای تغییر یافته به همراه0 افزوده شده و 34 حذف شده
  1. 0 12
      h3d/CustomObject.hx
  2. 0 22
      h3d/Object.hx

+ 0 - 12
h3d/CustomObject.hx

@@ -1,12 +0,0 @@
-package h3d;
-
-class CustomObject<T:Shader> extends Object {
-
-	public var shader : T;
-	
-	public function new(prim, shader:T) {
-		super(prim, new h3d.mat.Material(shader));
-		this.shader = shader;
-	}
-	
-}

+ 0 - 22
h3d/Object.hx

@@ -1,22 +0,0 @@
-package h3d;
-
-class Object {
-	
-	public var material(default, null) : h3d.mat.Material;
-	public var primitive(default, null) : h3d.prim.Primitive;
-	
-	public function new(prim,mat) {
-		this.primitive = prim;
-		this.material = mat;
-	}
-	
-	public function render( engine : Engine ) {
-		engine.selectMaterial(material);
-		primitive.render(engine);
-	}
-	
-	public function dispose() {
-		primitive.dispose();
-	}
-	
-}