浏览代码

init

engine constants, base ts files.
Pryme8 5 年之前
父节点
当前提交
3c9f5a96c2
共有 3 个文件被更改,包括 11 次插入0 次删除
  1. 8 0
      src/Engines/constants.ts
  2. 1 0
      src/Materials/Textures/Packer/index.ts
  3. 2 0
      src/Materials/Textures/Packer/packer.ts

+ 8 - 0
src/Engines/constants.ts

@@ -245,6 +245,14 @@ export class Constants {
     public static readonly SCALEMODE_NEAREST = 2;
     /** Defines that texture rescaling will use a ceil to find the closer power of 2 size */
     public static readonly SCALEMODE_CEILING = 3;
+    
+    // Texture Packer Layouts
+    /** Defines that texture packer will use a strip mode layout. */
+    public static readonly LAYOUT_STRIP = 0;
+    /** Defines that texture packer will use a power of two mode layout. */
+    public static readonly LAYOUT_POWER2 = 1;
+    /** Defines that texture packer will use a custom number of columns . */
+    public static readonly LAYOUT_COLNUM = 2;
 
     /**
      * The dirty texture flag value

+ 1 - 0
src/Materials/Textures/Packer/index.ts

@@ -0,0 +1 @@
+export * from "./packer";

+ 2 - 0
src/Materials/Textures/Packer/packer.ts

@@ -0,0 +1,2 @@
+import { BaseTexture } from "../../Materials/Textures/baseTexture";
+import { Constants } from "../../Engines/constants";