|
@@ -19,9 +19,6 @@ import { IInternalTextureTracker, DummyInternalTextureTracker } from "Materials/
|
|
import { IInternalTextureLoader } from "Materials/Textures/internalTextureLoader";
|
|
import { IInternalTextureLoader } from "Materials/Textures/internalTextureLoader";
|
|
import { InternalTexture } from "Materials/Textures/internalTexture";
|
|
import { InternalTexture } from "Materials/Textures/internalTexture";
|
|
import { BaseTexture } from "Materials/Textures/baseTexture";
|
|
import { BaseTexture } from "Materials/Textures/baseTexture";
|
|
-import { Texture } from "Materials/Textures/texture";
|
|
|
|
-import { VideoTexture } from "Materials/Textures/videoTexture";
|
|
|
|
-import { RenderTargetTexture } from "Materials/Textures/renderTargetTexture";
|
|
|
|
import { IMultiRenderTargetOptions } from "Materials/Textures/multiRenderTarget";
|
|
import { IMultiRenderTargetOptions } from "Materials/Textures/multiRenderTarget";
|
|
import { PostProcess } from "PostProcess/postProcess";
|
|
import { PostProcess } from "PostProcess/postProcess";
|
|
import { PassPostProcess } from "PostProcess/passPostProcess";
|
|
import { PassPostProcess } from "PostProcess/passPostProcess";
|
|
@@ -30,6 +27,11 @@ import { IAudioEngine } from "Audio/audioEngine";
|
|
import { IOfflineProvider } from "Offline/IOfflineProvider";
|
|
import { IOfflineProvider } from "Offline/IOfflineProvider";
|
|
import { ILoadingScreen, DefaultLoadingScreen } from "Loading/loadingScreen";
|
|
import { ILoadingScreen, DefaultLoadingScreen } from "Loading/loadingScreen";
|
|
import { _DepthCullingState, _StencilState, _AlphaState } from "States";
|
|
import { _DepthCullingState, _StencilState, _AlphaState } from "States";
|
|
|
|
+import { Constants } from "./constants";
|
|
|
|
+declare type Texture = import("Materials/Textures/texture").Texture;
|
|
|
|
+declare type VideoTexture = import("Materials/Textures/videoTexture").VideoTexture;
|
|
|
|
+declare type RenderTargetTexture = import("Materials/Textures/renderTargetTexture").RenderTargetTexture;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Keeps track of all the buffer info used in engine.
|
|
* Keeps track of all the buffer info used in engine.
|
|
*/
|
|
*/
|
|
@@ -308,205 +310,205 @@ import { _DepthCullingState, _StencilState, _AlphaState } from "States";
|
|
|
|
|
|
// Const statics
|
|
// Const statics
|
|
/** Defines that alpha blending is disabled */
|
|
/** Defines that alpha blending is disabled */
|
|
- public static readonly ALPHA_DISABLE = 0;
|
|
|
|
|
|
+ public static readonly ALPHA_DISABLE = Constants.ALPHA_DISABLE;
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + DEST */
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + DEST */
|
|
- public static readonly ALPHA_ADD = 1;
|
|
|
|
|
|
+ public static readonly ALPHA_ADD = Constants.ALPHA_ADD;
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + (1 - SRC ALPHA) * DEST */
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + (1 - SRC ALPHA) * DEST */
|
|
- public static readonly ALPHA_COMBINE = 2;
|
|
|
|
|
|
+ public static readonly ALPHA_COMBINE = Constants.ALPHA_COMBINE;
|
|
/** Defines that alpha blending to DEST - SRC * DEST */
|
|
/** Defines that alpha blending to DEST - SRC * DEST */
|
|
- public static readonly ALPHA_SUBTRACT = 3;
|
|
|
|
|
|
+ public static readonly ALPHA_SUBTRACT = Constants.ALPHA_SUBTRACT;
|
|
/** Defines that alpha blending to SRC * DEST */
|
|
/** Defines that alpha blending to SRC * DEST */
|
|
- public static readonly ALPHA_MULTIPLY = 4;
|
|
|
|
|
|
+ public static readonly ALPHA_MULTIPLY = Constants.ALPHA_MULTIPLY;
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + (1 - SRC) * DEST */
|
|
/** Defines that alpha blending to SRC ALPHA * SRC + (1 - SRC) * DEST */
|
|
- public static readonly ALPHA_MAXIMIZED = 5;
|
|
|
|
|
|
+ public static readonly ALPHA_MAXIMIZED = Constants.ALPHA_MAXIMIZED;
|
|
/** Defines that alpha blending to SRC + DEST */
|
|
/** Defines that alpha blending to SRC + DEST */
|
|
- public static readonly ALPHA_ONEONE = 6;
|
|
|
|
|
|
+ public static readonly ALPHA_ONEONE = Constants.ALPHA_ONEONE;
|
|
/** Defines that alpha blending to SRC + (1 - SRC ALPHA) * DEST */
|
|
/** Defines that alpha blending to SRC + (1 - SRC ALPHA) * DEST */
|
|
- public static readonly ALPHA_PREMULTIPLIED = 7;
|
|
|
|
|
|
+ public static readonly ALPHA_PREMULTIPLIED = Constants.ALPHA_PREMULTIPLIED;
|
|
/**
|
|
/**
|
|
* Defines that alpha blending to SRC + (1 - SRC ALPHA) * DEST
|
|
* Defines that alpha blending to SRC + (1 - SRC ALPHA) * DEST
|
|
* Alpha will be set to (1 - SRC ALPHA) * DEST ALPHA
|
|
* Alpha will be set to (1 - SRC ALPHA) * DEST ALPHA
|
|
*/
|
|
*/
|
|
- public static readonly ALPHA_PREMULTIPLIED_PORTERDUFF = 8;
|
|
|
|
|
|
+ public static readonly ALPHA_PREMULTIPLIED_PORTERDUFF = Constants.ALPHA_PREMULTIPLIED_PORTERDUFF;
|
|
/** Defines that alpha blending to CST * SRC + (1 - CST) * DEST */
|
|
/** Defines that alpha blending to CST * SRC + (1 - CST) * DEST */
|
|
- public static readonly ALPHA_INTERPOLATE = 9;
|
|
|
|
|
|
+ public static readonly ALPHA_INTERPOLATE = Constants.ALPHA_INTERPOLATE;
|
|
/**
|
|
/**
|
|
* Defines that alpha blending to SRC + (1 - SRC) * DEST
|
|
* Defines that alpha blending to SRC + (1 - SRC) * DEST
|
|
* Alpha will be set to SRC ALPHA + (1 - SRC ALPHA) * DEST ALPHA
|
|
* Alpha will be set to SRC ALPHA + (1 - SRC ALPHA) * DEST ALPHA
|
|
*/
|
|
*/
|
|
- public static readonly ALPHA_SCREENMODE = 10;
|
|
|
|
|
|
+ public static readonly ALPHA_SCREENMODE = Constants.ALPHA_SCREENMODE;
|
|
|
|
|
|
/** Defines that the ressource is not delayed*/
|
|
/** Defines that the ressource is not delayed*/
|
|
- public static readonly DELAYLOADSTATE_NONE = 0;
|
|
|
|
|
|
+ public static readonly DELAYLOADSTATE_NONE = Constants.DELAYLOADSTATE_NONE;
|
|
/** Defines that the ressource was successfully delay loaded */
|
|
/** Defines that the ressource was successfully delay loaded */
|
|
- public static readonly DELAYLOADSTATE_LOADED = 1;
|
|
|
|
|
|
+ public static readonly DELAYLOADSTATE_LOADED = Constants.DELAYLOADSTATE_LOADED;
|
|
/** Defines that the ressource is currently delay loading */
|
|
/** Defines that the ressource is currently delay loading */
|
|
- public static readonly DELAYLOADSTATE_LOADING = 2;
|
|
|
|
|
|
+ public static readonly DELAYLOADSTATE_LOADING = Constants.DELAYLOADSTATE_LOADING;
|
|
/** Defines that the ressource is delayed and has not started loading */
|
|
/** Defines that the ressource is delayed and has not started loading */
|
|
- public static readonly DELAYLOADSTATE_NOTLOADED = 4;
|
|
|
|
|
|
+ public static readonly DELAYLOADSTATE_NOTLOADED = Constants.DELAYLOADSTATE_NOTLOADED;
|
|
|
|
|
|
// Depht or Stencil test Constants.
|
|
// Depht or Stencil test Constants.
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn */
|
|
- public static readonly NEVER = 0x0200;
|
|
|
|
|
|
+ public static readonly NEVER = Constants.NEVER;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */
|
|
- public static readonly ALWAYS = _StencilState.ALWAYS;
|
|
|
|
|
|
+ public static readonly ALWAYS = Constants.ALWAYS;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value */
|
|
- public static readonly LESS = 0x0201;
|
|
|
|
|
|
+ public static readonly LESS = Constants.LESS;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value */
|
|
- public static readonly EQUAL = 0x0202;
|
|
|
|
|
|
+ public static readonly EQUAL = Constants.EQUAL;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value */
|
|
- public static readonly LEQUAL = 0x0203;
|
|
|
|
|
|
+ public static readonly LEQUAL = Constants.LEQUAL;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value */
|
|
- public static readonly GREATER = 0x0204;
|
|
|
|
|
|
+ public static readonly GREATER = Constants.GREATER;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value */
|
|
- public static readonly GEQUAL = 0x0206;
|
|
|
|
|
|
+ public static readonly GEQUAL = Constants.GEQUAL;
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value */
|
|
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value */
|
|
- public static readonly NOTEQUAL = 0x0205;
|
|
|
|
|
|
+ public static readonly NOTEQUAL = Constants.NOTEQUAL;
|
|
|
|
|
|
// Stencil Actions Constants.
|
|
// Stencil Actions Constants.
|
|
/** Passed to stencilOperation to specify that stencil value must be kept */
|
|
/** Passed to stencilOperation to specify that stencil value must be kept */
|
|
- public static readonly KEEP = _StencilState.KEEP;
|
|
|
|
|
|
+ public static readonly KEEP = Constants.KEEP;
|
|
/** Passed to stencilOperation to specify that stencil value must be replaced */
|
|
/** Passed to stencilOperation to specify that stencil value must be replaced */
|
|
- public static readonly REPLACE = _StencilState.REPLACE;
|
|
|
|
|
|
+ public static readonly REPLACE = Constants.REPLACE;
|
|
/** Passed to stencilOperation to specify that stencil value must be incremented */
|
|
/** Passed to stencilOperation to specify that stencil value must be incremented */
|
|
- public static readonly INCR = 0x1E02;
|
|
|
|
|
|
+ public static readonly INCR = Constants.INCR;
|
|
/** Passed to stencilOperation to specify that stencil value must be decremented */
|
|
/** Passed to stencilOperation to specify that stencil value must be decremented */
|
|
- public static readonly DECR = 0x1E03;
|
|
|
|
|
|
+ public static readonly DECR = Constants.DECR;
|
|
/** Passed to stencilOperation to specify that stencil value must be inverted */
|
|
/** Passed to stencilOperation to specify that stencil value must be inverted */
|
|
- public static readonly INVERT = 0x150A;
|
|
|
|
|
|
+ public static readonly INVERT = Constants.INVERT;
|
|
/** Passed to stencilOperation to specify that stencil value must be incremented with wrapping */
|
|
/** Passed to stencilOperation to specify that stencil value must be incremented with wrapping */
|
|
- public static readonly INCR_WRAP = 0x8507;
|
|
|
|
|
|
+ public static readonly INCR_WRAP = Constants.INCR_WRAP;
|
|
/** Passed to stencilOperation to specify that stencil value must be decremented with wrapping */
|
|
/** Passed to stencilOperation to specify that stencil value must be decremented with wrapping */
|
|
- public static readonly DECR_WRAP = 0x8508;
|
|
|
|
|
|
+ public static readonly DECR_WRAP = Constants.DECR_WRAP;
|
|
|
|
|
|
/** Texture is not repeating outside of 0..1 UVs */
|
|
/** Texture is not repeating outside of 0..1 UVs */
|
|
- public static readonly TEXTURE_CLAMP_ADDRESSMODE = 0;
|
|
|
|
|
|
+ public static readonly TEXTURE_CLAMP_ADDRESSMODE = Constants.TEXTURE_CLAMP_ADDRESSMODE;
|
|
/** Texture is repeating outside of 0..1 UVs */
|
|
/** Texture is repeating outside of 0..1 UVs */
|
|
- public static readonly TEXTURE_WRAP_ADDRESSMODE = 1;
|
|
|
|
|
|
+ public static readonly TEXTURE_WRAP_ADDRESSMODE = Constants.TEXTURE_WRAP_ADDRESSMODE;
|
|
/** Texture is repeating and mirrored */
|
|
/** Texture is repeating and mirrored */
|
|
- public static readonly TEXTURE_MIRROR_ADDRESSMODE = 2;
|
|
|
|
|
|
+ public static readonly TEXTURE_MIRROR_ADDRESSMODE = Constants.TEXTURE_MIRROR_ADDRESSMODE;
|
|
|
|
|
|
/** ALPHA */
|
|
/** ALPHA */
|
|
- public static readonly TEXTUREFORMAT_ALPHA = 0;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_ALPHA = Constants.TEXTUREFORMAT_ALPHA;
|
|
/** LUMINANCE */
|
|
/** LUMINANCE */
|
|
- public static readonly TEXTUREFORMAT_LUMINANCE = 1;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_LUMINANCE = Constants.TEXTUREFORMAT_LUMINANCE;
|
|
/** LUMINANCE_ALPHA */
|
|
/** LUMINANCE_ALPHA */
|
|
- public static readonly TEXTUREFORMAT_LUMINANCE_ALPHA = 2;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_LUMINANCE_ALPHA = Constants.TEXTUREFORMAT_LUMINANCE_ALPHA;
|
|
/** RGB */
|
|
/** RGB */
|
|
- public static readonly TEXTUREFORMAT_RGB = 4;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RGB = Constants.TEXTUREFORMAT_RGB;
|
|
/** RGBA */
|
|
/** RGBA */
|
|
- public static readonly TEXTUREFORMAT_RGBA = 5;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RGBA = Constants.TEXTUREFORMAT_RGBA;
|
|
/** RED */
|
|
/** RED */
|
|
- public static readonly TEXTUREFORMAT_RED = 6;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RED = Constants.TEXTUREFORMAT_RED;
|
|
/** RED (2nd reference) */
|
|
/** RED (2nd reference) */
|
|
- public static readonly TEXTUREFORMAT_R = 6;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_R = Constants.TEXTUREFORMAT_R;
|
|
/** RG */
|
|
/** RG */
|
|
- public static readonly TEXTUREFORMAT_RG = 7;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RG = Constants.TEXTUREFORMAT_RG;
|
|
/** RED_INTEGER */
|
|
/** RED_INTEGER */
|
|
- public static readonly TEXTUREFORMAT_RED_INTEGER = 8;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RED_INTEGER = Constants.TEXTUREFORMAT_RED_INTEGER;
|
|
/** RED_INTEGER (2nd reference) */
|
|
/** RED_INTEGER (2nd reference) */
|
|
- public static readonly TEXTUREFORMAT_R_INTEGER = 8;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_R_INTEGER = Constants.TEXTUREFORMAT_R_INTEGER;
|
|
/** RG_INTEGER */
|
|
/** RG_INTEGER */
|
|
- public static readonly TEXTUREFORMAT_RG_INTEGER = 9;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RG_INTEGER = Constants.TEXTUREFORMAT_RG_INTEGER;
|
|
/** RGB_INTEGER */
|
|
/** RGB_INTEGER */
|
|
- public static readonly TEXTUREFORMAT_RGB_INTEGER = 10;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RGB_INTEGER = Constants.TEXTUREFORMAT_RGB_INTEGER;
|
|
/** RGBA_INTEGER */
|
|
/** RGBA_INTEGER */
|
|
- public static readonly TEXTUREFORMAT_RGBA_INTEGER = 11;
|
|
|
|
|
|
+ public static readonly TEXTUREFORMAT_RGBA_INTEGER = Constants.TEXTUREFORMAT_RGBA_INTEGER;
|
|
|
|
|
|
/** UNSIGNED_BYTE */
|
|
/** UNSIGNED_BYTE */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_BYTE = 0;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_BYTE = Constants.TEXTURETYPE_UNSIGNED_BYTE;
|
|
/** UNSIGNED_BYTE (2nd reference) */
|
|
/** UNSIGNED_BYTE (2nd reference) */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INT = 0;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INT = Constants.TEXTURETYPE_UNSIGNED_INT;
|
|
/** FLOAT */
|
|
/** FLOAT */
|
|
- public static readonly TEXTURETYPE_FLOAT = 1;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_FLOAT = Constants.TEXTURETYPE_FLOAT;
|
|
/** HALF_FLOAT */
|
|
/** HALF_FLOAT */
|
|
- public static readonly TEXTURETYPE_HALF_FLOAT = 2;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_HALF_FLOAT = Constants.TEXTURETYPE_HALF_FLOAT;
|
|
/** BYTE */
|
|
/** BYTE */
|
|
- public static readonly TEXTURETYPE_BYTE = 3;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_BYTE = Constants.TEXTURETYPE_BYTE;
|
|
/** SHORT */
|
|
/** SHORT */
|
|
- public static readonly TEXTURETYPE_SHORT = 4;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_SHORT = Constants.TEXTURETYPE_SHORT;
|
|
/** UNSIGNED_SHORT */
|
|
/** UNSIGNED_SHORT */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_SHORT = 5;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_SHORT = Constants.TEXTURETYPE_UNSIGNED_SHORT;
|
|
/** INT */
|
|
/** INT */
|
|
- public static readonly TEXTURETYPE_INT = 6;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_INT = Constants.TEXTURETYPE_INT;
|
|
/** UNSIGNED_INT */
|
|
/** UNSIGNED_INT */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INTEGER = 7;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INTEGER = Constants.TEXTURETYPE_UNSIGNED_INTEGER;
|
|
/** UNSIGNED_SHORT_4_4_4_4 */
|
|
/** UNSIGNED_SHORT_4_4_4_4 */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4 = 8;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4 = Constants.TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4;
|
|
/** UNSIGNED_SHORT_5_5_5_1 */
|
|
/** UNSIGNED_SHORT_5_5_5_1 */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1 = 9;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1 = Constants.TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1;
|
|
/** UNSIGNED_SHORT_5_6_5 */
|
|
/** UNSIGNED_SHORT_5_6_5 */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_SHORT_5_6_5 = 10;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_SHORT_5_6_5 = Constants.TEXTURETYPE_UNSIGNED_SHORT_5_6_5;
|
|
/** UNSIGNED_INT_2_10_10_10_REV */
|
|
/** UNSIGNED_INT_2_10_10_10_REV */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV = 11;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV = Constants.TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV;
|
|
/** UNSIGNED_INT_24_8 */
|
|
/** UNSIGNED_INT_24_8 */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INT_24_8 = 12;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INT_24_8 = Constants.TEXTURETYPE_UNSIGNED_INT_24_8;
|
|
/** UNSIGNED_INT_10F_11F_11F_REV */
|
|
/** UNSIGNED_INT_10F_11F_11F_REV */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV = 13;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV = Constants.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV;
|
|
/** UNSIGNED_INT_5_9_9_9_REV */
|
|
/** UNSIGNED_INT_5_9_9_9_REV */
|
|
- public static readonly TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV = 14;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV = Constants.TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV;
|
|
/** FLOAT_32_UNSIGNED_INT_24_8_REV */
|
|
/** FLOAT_32_UNSIGNED_INT_24_8_REV */
|
|
- public static readonly TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV = 15;
|
|
|
|
|
|
+ public static readonly TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV = Constants.TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV;
|
|
|
|
|
|
/** nearest is mag = nearest and min = nearest and mip = linear */
|
|
/** nearest is mag = nearest and min = nearest and mip = linear */
|
|
- public static readonly TEXTURE_NEAREST_SAMPLINGMODE = 1;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_SAMPLINGMODE = Constants.TEXTURE_NEAREST_SAMPLINGMODE;
|
|
/** Bilinear is mag = linear and min = linear and mip = nearest */
|
|
/** Bilinear is mag = linear and min = linear and mip = nearest */
|
|
- public static readonly TEXTURE_BILINEAR_SAMPLINGMODE = 2;
|
|
|
|
|
|
+ public static readonly TEXTURE_BILINEAR_SAMPLINGMODE = Constants.TEXTURE_BILINEAR_SAMPLINGMODE;
|
|
/** Trilinear is mag = linear and min = linear and mip = linear */
|
|
/** Trilinear is mag = linear and min = linear and mip = linear */
|
|
- public static readonly TEXTURE_TRILINEAR_SAMPLINGMODE = 3;
|
|
|
|
|
|
+ public static readonly TEXTURE_TRILINEAR_SAMPLINGMODE = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE;
|
|
/** nearest is mag = nearest and min = nearest and mip = linear */
|
|
/** nearest is mag = nearest and min = nearest and mip = linear */
|
|
- public static readonly TEXTURE_NEAREST_NEAREST_MIPLINEAR = 1;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_NEAREST_MIPLINEAR = Constants.TEXTURE_NEAREST_NEAREST_MIPLINEAR;
|
|
/** Bilinear is mag = linear and min = linear and mip = nearest */
|
|
/** Bilinear is mag = linear and min = linear and mip = nearest */
|
|
- public static readonly TEXTURE_LINEAR_LINEAR_MIPNEAREST = 2;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_LINEAR_MIPNEAREST = Constants.TEXTURE_LINEAR_LINEAR_MIPNEAREST;
|
|
/** Trilinear is mag = linear and min = linear and mip = linear */
|
|
/** Trilinear is mag = linear and min = linear and mip = linear */
|
|
- public static readonly TEXTURE_LINEAR_LINEAR_MIPLINEAR = 3;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_LINEAR_MIPLINEAR = Constants.TEXTURE_LINEAR_LINEAR_MIPLINEAR;
|
|
/** mag = nearest and min = nearest and mip = nearest */
|
|
/** mag = nearest and min = nearest and mip = nearest */
|
|
- public static readonly TEXTURE_NEAREST_NEAREST_MIPNEAREST = 4;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_NEAREST_MIPNEAREST = Constants.TEXTURE_NEAREST_NEAREST_MIPNEAREST;
|
|
/** mag = nearest and min = linear and mip = nearest */
|
|
/** mag = nearest and min = linear and mip = nearest */
|
|
- public static readonly TEXTURE_NEAREST_LINEAR_MIPNEAREST = 5;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_LINEAR_MIPNEAREST = Constants.TEXTURE_NEAREST_LINEAR_MIPNEAREST;
|
|
/** mag = nearest and min = linear and mip = linear */
|
|
/** mag = nearest and min = linear and mip = linear */
|
|
- public static readonly TEXTURE_NEAREST_LINEAR_MIPLINEAR = 6;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_LINEAR_MIPLINEAR = Constants.TEXTURE_NEAREST_LINEAR_MIPLINEAR;
|
|
/** mag = nearest and min = linear and mip = none */
|
|
/** mag = nearest and min = linear and mip = none */
|
|
- public static readonly TEXTURE_NEAREST_LINEAR = 7;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_LINEAR = Constants.TEXTURE_NEAREST_LINEAR;
|
|
/** mag = nearest and min = nearest and mip = none */
|
|
/** mag = nearest and min = nearest and mip = none */
|
|
- public static readonly TEXTURE_NEAREST_NEAREST = 8;
|
|
|
|
|
|
+ public static readonly TEXTURE_NEAREST_NEAREST = Constants.TEXTURE_NEAREST_NEAREST;
|
|
/** mag = linear and min = nearest and mip = nearest */
|
|
/** mag = linear and min = nearest and mip = nearest */
|
|
- public static readonly TEXTURE_LINEAR_NEAREST_MIPNEAREST = 9;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_NEAREST_MIPNEAREST = Constants.TEXTURE_LINEAR_NEAREST_MIPNEAREST;
|
|
/** mag = linear and min = nearest and mip = linear */
|
|
/** mag = linear and min = nearest and mip = linear */
|
|
- public static readonly TEXTURE_LINEAR_NEAREST_MIPLINEAR = 10;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_NEAREST_MIPLINEAR = Constants.TEXTURE_LINEAR_NEAREST_MIPLINEAR;
|
|
/** mag = linear and min = linear and mip = none */
|
|
/** mag = linear and min = linear and mip = none */
|
|
- public static readonly TEXTURE_LINEAR_LINEAR = 11;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_LINEAR = Constants.TEXTURE_LINEAR_LINEAR;
|
|
/** mag = linear and min = nearest and mip = none */
|
|
/** mag = linear and min = nearest and mip = none */
|
|
- public static readonly TEXTURE_LINEAR_NEAREST = 12;
|
|
|
|
|
|
+ public static readonly TEXTURE_LINEAR_NEAREST = Constants.TEXTURE_LINEAR_NEAREST;
|
|
|
|
|
|
/** Explicit coordinates mode */
|
|
/** Explicit coordinates mode */
|
|
- public static readonly TEXTURE_EXPLICIT_MODE = 0;
|
|
|
|
|
|
+ public static readonly TEXTURE_EXPLICIT_MODE = Constants.TEXTURE_EXPLICIT_MODE;
|
|
/** Spherical coordinates mode */
|
|
/** Spherical coordinates mode */
|
|
- public static readonly TEXTURE_SPHERICAL_MODE = 1;
|
|
|
|
|
|
+ public static readonly TEXTURE_SPHERICAL_MODE = Constants.TEXTURE_SPHERICAL_MODE;
|
|
/** Planar coordinates mode */
|
|
/** Planar coordinates mode */
|
|
- public static readonly TEXTURE_PLANAR_MODE = 2;
|
|
|
|
|
|
+ public static readonly TEXTURE_PLANAR_MODE = Constants.TEXTURE_PLANAR_MODE;
|
|
/** Cubic coordinates mode */
|
|
/** Cubic coordinates mode */
|
|
- public static readonly TEXTURE_CUBIC_MODE = 3;
|
|
|
|
|
|
+ public static readonly TEXTURE_CUBIC_MODE = Constants.TEXTURE_CUBIC_MODE;
|
|
/** Projection coordinates mode */
|
|
/** Projection coordinates mode */
|
|
- public static readonly TEXTURE_PROJECTION_MODE = 4;
|
|
|
|
|
|
+ public static readonly TEXTURE_PROJECTION_MODE = Constants.TEXTURE_PROJECTION_MODE;
|
|
/** Skybox coordinates mode */
|
|
/** Skybox coordinates mode */
|
|
- public static readonly TEXTURE_SKYBOX_MODE = 5;
|
|
|
|
|
|
+ public static readonly TEXTURE_SKYBOX_MODE = Constants.TEXTURE_SKYBOX_MODE;
|
|
/** Inverse Cubic coordinates mode */
|
|
/** Inverse Cubic coordinates mode */
|
|
- public static readonly TEXTURE_INVCUBIC_MODE = 6;
|
|
|
|
|
|
+ public static readonly TEXTURE_INVCUBIC_MODE = Constants.TEXTURE_INVCUBIC_MODE;
|
|
/** Equirectangular coordinates mode */
|
|
/** Equirectangular coordinates mode */
|
|
- public static readonly TEXTURE_EQUIRECTANGULAR_MODE = 7;
|
|
|
|
|
|
+ public static readonly TEXTURE_EQUIRECTANGULAR_MODE = Constants.TEXTURE_EQUIRECTANGULAR_MODE;
|
|
/** Equirectangular Fixed coordinates mode */
|
|
/** Equirectangular Fixed coordinates mode */
|
|
- public static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MODE = 8;
|
|
|
|
|
|
+ public static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MODE = Constants.TEXTURE_FIXED_EQUIRECTANGULAR_MODE;
|
|
/** Equirectangular Fixed Mirrored coordinates mode */
|
|
/** Equirectangular Fixed Mirrored coordinates mode */
|
|
- public static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE = 9;
|
|
|
|
|
|
+ public static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE = Constants.TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE;
|
|
|
|
|
|
// Texture rescaling mode
|
|
// Texture rescaling mode
|
|
/** Defines that texture rescaling will use a floor to find the closer power of 2 size */
|
|
/** Defines that texture rescaling will use a floor to find the closer power of 2 size */
|
|
- public static readonly SCALEMODE_FLOOR = 1;
|
|
|
|
|
|
+ public static readonly SCALEMODE_FLOOR = Constants.SCALEMODE_FLOOR;
|
|
/** Defines that texture rescaling will look for the nearest power of 2 size */
|
|
/** Defines that texture rescaling will look for the nearest power of 2 size */
|
|
- public static readonly SCALEMODE_NEAREST = 2;
|
|
|
|
|
|
+ public static readonly SCALEMODE_NEAREST = Constants.SCALEMODE_NEAREST;
|
|
/** Defines that texture rescaling will use a ceil to find the closer power of 2 size */
|
|
/** Defines that texture rescaling will use a ceil to find the closer power of 2 size */
|
|
- public static readonly SCALEMODE_CEILING = 3;
|
|
|
|
|
|
+ public static readonly SCALEMODE_CEILING = Constants.SCALEMODE_CEILING;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Returns the current version of the framework
|
|
* Returns the current version of the framework
|