|
@@ -12,7 +12,8 @@ class Texture {
|
|
|
#if debug
|
|
|
var allocPos : h3d.impl.AllocPos;
|
|
|
#end
|
|
|
- public var id(default,null) : Int;
|
|
|
+ public var id(default, null) : Int;
|
|
|
+ public var name(default, null) : String;
|
|
|
public var width(default, null) : Int;
|
|
|
public var height(default, null) : Int;
|
|
|
public var isCubic(default, null) : Bool;
|
|
@@ -45,6 +46,14 @@ class Texture {
|
|
|
this.wrap = Clamp;
|
|
|
bits &= 0x7FFF;
|
|
|
}
|
|
|
+
|
|
|
+ function toString() {
|
|
|
+ return name+" "+width+"x"+height;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setName(n) {
|
|
|
+ name = n;
|
|
|
+ }
|
|
|
|
|
|
function set_mipMap(m:MipMap) {
|
|
|
bits |= 0x80000;
|