Просмотр исходного кода

init

engine constants, base ts files.
Pryme8 5 лет назад
Родитель
Сommit
3c9f5a96c2

+ 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";