|
@@ -0,0 +1,235 @@
|
|
|
+export const REVISION: string;
|
|
|
+
|
|
|
+// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button
|
|
|
+export enum MOUSE {
|
|
|
+ LEFT,
|
|
|
+ MIDDLE,
|
|
|
+ RIGHT,
|
|
|
+}
|
|
|
+
|
|
|
+// GL STATE CONSTANTS
|
|
|
+export enum CullFace {}
|
|
|
+export const CullFaceNone: CullFace;
|
|
|
+export const CullFaceBack: CullFace;
|
|
|
+export const CullFaceFront: CullFace;
|
|
|
+export const CullFaceFrontBack: CullFace;
|
|
|
+
|
|
|
+export enum FrontFaceDirection {}
|
|
|
+export const FrontFaceDirectionCW: FrontFaceDirection;
|
|
|
+export const FrontFaceDirectionCCW: FrontFaceDirection;
|
|
|
+
|
|
|
+// Shadowing Type
|
|
|
+export enum ShadowMapType {}
|
|
|
+export const BasicShadowMap: ShadowMapType;
|
|
|
+export const PCFShadowMap: ShadowMapType;
|
|
|
+export const PCFSoftShadowMap: ShadowMapType;
|
|
|
+
|
|
|
+// MATERIAL CONSTANTS
|
|
|
+
|
|
|
+// side
|
|
|
+export enum Side {}
|
|
|
+export const FrontSide: Side;
|
|
|
+export const BackSide: Side;
|
|
|
+export const DoubleSide: Side;
|
|
|
+
|
|
|
+// shading
|
|
|
+export enum Shading {}
|
|
|
+export const FlatShading: Shading;
|
|
|
+export const SmoothShading: Shading;
|
|
|
+
|
|
|
+// colors
|
|
|
+export enum Colors {}
|
|
|
+export const NoColors: Colors;
|
|
|
+export const FaceColors: Colors;
|
|
|
+export const VertexColors: Colors;
|
|
|
+
|
|
|
+// blending modes
|
|
|
+export enum Blending {}
|
|
|
+export const NoBlending: Blending;
|
|
|
+export const NormalBlending: Blending;
|
|
|
+export const AdditiveBlending: Blending;
|
|
|
+export const SubtractiveBlending: Blending;
|
|
|
+export const MultiplyBlending: Blending;
|
|
|
+export const CustomBlending: Blending;
|
|
|
+
|
|
|
+// custom blending equations
|
|
|
+// (numbers start from 100 not to clash with other
|
|
|
+// mappings to OpenGL constants defined in Texture.js)
|
|
|
+export enum BlendingEquation {}
|
|
|
+export const AddEquation: BlendingEquation;
|
|
|
+export const SubtractEquation: BlendingEquation;
|
|
|
+export const ReverseSubtractEquation: BlendingEquation;
|
|
|
+export const MinEquation: BlendingEquation;
|
|
|
+export const MaxEquation: BlendingEquation;
|
|
|
+
|
|
|
+// custom blending destination factors
|
|
|
+export enum BlendingDstFactor {}
|
|
|
+export const ZeroFactor: BlendingDstFactor;
|
|
|
+export const OneFactor: BlendingDstFactor;
|
|
|
+export const SrcColorFactor: BlendingDstFactor;
|
|
|
+export const OneMinusSrcColorFactor: BlendingDstFactor;
|
|
|
+export const SrcAlphaFactor: BlendingDstFactor;
|
|
|
+export const OneMinusSrcAlphaFactor: BlendingDstFactor;
|
|
|
+export const DstAlphaFactor: BlendingDstFactor;
|
|
|
+export const OneMinusDstAlphaFactor: BlendingDstFactor;
|
|
|
+export const DstColorFactor: BlendingDstFactor;
|
|
|
+export const OneMinusDstColorFactor: BlendingDstFactor;
|
|
|
+
|
|
|
+// custom blending src factors
|
|
|
+export enum BlendingSrcFactor {}
|
|
|
+export const SrcAlphaSaturateFactor: BlendingSrcFactor;
|
|
|
+
|
|
|
+// depth modes
|
|
|
+export enum DepthModes {}
|
|
|
+export const NeverDepth: DepthModes;
|
|
|
+export const AlwaysDepth: DepthModes;
|
|
|
+export const LessDepth: DepthModes;
|
|
|
+export const LessEqualDepth: DepthModes;
|
|
|
+export const EqualDepth: DepthModes;
|
|
|
+export const GreaterEqualDepth: DepthModes;
|
|
|
+export const GreaterDepth: DepthModes;
|
|
|
+export const NotEqualDepth: DepthModes;
|
|
|
+
|
|
|
+// TEXTURE CONSTANTS
|
|
|
+// Operations
|
|
|
+export enum Combine {}
|
|
|
+export const MultiplyOperation: Combine;
|
|
|
+export const MixOperation: Combine;
|
|
|
+export const AddOperation: Combine;
|
|
|
+
|
|
|
+// Tone Mapping modes
|
|
|
+export enum ToneMapping {}
|
|
|
+export const NoToneMapping: ToneMapping;
|
|
|
+export const LinearToneMapping: ToneMapping;
|
|
|
+export const ReinhardToneMapping: ToneMapping;
|
|
|
+export const Uncharted2ToneMapping: ToneMapping;
|
|
|
+export const CineonToneMapping: ToneMapping;
|
|
|
+
|
|
|
+// Mapping modes
|
|
|
+export enum Mapping {}
|
|
|
+export const UVMapping: Mapping;
|
|
|
+export const CubeReflectionMapping: Mapping;
|
|
|
+export const CubeRefractionMapping: Mapping;
|
|
|
+export const EquirectangularReflectionMapping: Mapping;
|
|
|
+export const EquirectangularRefractionMapping: Mapping;
|
|
|
+export const SphericalReflectionMapping: Mapping;
|
|
|
+export const CubeUVReflectionMapping: Mapping;
|
|
|
+export const CubeUVRefractionMapping: Mapping;
|
|
|
+
|
|
|
+// Wrapping modes
|
|
|
+export enum Wrapping {}
|
|
|
+export const RepeatWrapping: Wrapping;
|
|
|
+export const ClampToEdgeWrapping: Wrapping;
|
|
|
+export const MirroredRepeatWrapping: Wrapping;
|
|
|
+
|
|
|
+// Filters
|
|
|
+export enum TextureFilter {}
|
|
|
+export const NearestFilter: TextureFilter;
|
|
|
+export const NearestMipMapNearestFilter: TextureFilter;
|
|
|
+export const NearestMipMapLinearFilter: TextureFilter;
|
|
|
+export const LinearFilter: TextureFilter;
|
|
|
+export const LinearMipMapNearestFilter: TextureFilter;
|
|
|
+export const LinearMipMapLinearFilter: TextureFilter;
|
|
|
+
|
|
|
+// Data types
|
|
|
+export enum TextureDataType {}
|
|
|
+export const UnsignedByteType: TextureDataType;
|
|
|
+export const ByteType: TextureDataType;
|
|
|
+export const ShortType: TextureDataType;
|
|
|
+export const UnsignedShortType: TextureDataType;
|
|
|
+export const IntType: TextureDataType;
|
|
|
+export const UnsignedIntType: TextureDataType;
|
|
|
+export const FloatType: TextureDataType;
|
|
|
+export const HalfFloatType: TextureDataType;
|
|
|
+
|
|
|
+// Pixel types
|
|
|
+export enum PixelType {}
|
|
|
+export const UnsignedShort4444Type: PixelType;
|
|
|
+export const UnsignedShort5551Type: PixelType;
|
|
|
+export const UnsignedShort565Type: PixelType;
|
|
|
+export const UnsignedInt248Type: PixelType;
|
|
|
+
|
|
|
+// Pixel formats
|
|
|
+export enum PixelFormat {}
|
|
|
+export const AlphaFormat: PixelFormat;
|
|
|
+export const RGBFormat: PixelFormat;
|
|
|
+export const RGBAFormat: PixelFormat;
|
|
|
+export const LuminanceFormat: PixelFormat;
|
|
|
+export const LuminanceAlphaFormat: PixelFormat;
|
|
|
+export const RGBEFormat: PixelFormat;
|
|
|
+export const DepthFormat: PixelFormat;
|
|
|
+export const DepthStencilFormat: PixelFormat;
|
|
|
+export const RedFormat: PixelFormat;
|
|
|
+
|
|
|
+// Compressed texture formats
|
|
|
+// DDS / ST3C Compressed texture formats
|
|
|
+export enum CompressedPixelFormat {}
|
|
|
+export const RGB_S3TC_DXT1_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_S3TC_DXT1_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_S3TC_DXT3_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_S3TC_DXT5_Format: CompressedPixelFormat;
|
|
|
+
|
|
|
+// PVRTC compressed './texture formats
|
|
|
+export const RGB_PVRTC_4BPPV1_Format: CompressedPixelFormat;
|
|
|
+export const RGB_PVRTC_2BPPV1_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_PVRTC_4BPPV1_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_PVRTC_2BPPV1_Format: CompressedPixelFormat;
|
|
|
+
|
|
|
+// ETC compressed texture formats
|
|
|
+export const RGB_ETC1_Format: CompressedPixelFormat;
|
|
|
+
|
|
|
+// ASTC compressed texture formats
|
|
|
+export const RGBA_ASTC_4x4_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_5x4_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_5x5_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_6x5_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_6x6_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_8x5_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_8x6_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_8x8_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_10x5_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_10x6_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_10x8_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_10x10_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_12x10_Format: CompressedPixelFormat;
|
|
|
+export const RGBA_ASTC_12x12_Format: CompressedPixelFormat;
|
|
|
+
|
|
|
+// Loop styles for AnimationAction
|
|
|
+export enum AnimationActionLoopStyles {}
|
|
|
+export const LoopOnce: AnimationActionLoopStyles;
|
|
|
+export const LoopRepeat: AnimationActionLoopStyles;
|
|
|
+export const LoopPingPong: AnimationActionLoopStyles;
|
|
|
+
|
|
|
+// Interpolation
|
|
|
+export enum InterpolationModes {}
|
|
|
+export const InterpolateDiscrete: InterpolationModes;
|
|
|
+export const InterpolateLinear: InterpolationModes;
|
|
|
+export const InterpolateSmooth: InterpolationModes;
|
|
|
+
|
|
|
+// Interpolant ending modes
|
|
|
+export enum InterpolationEndingModes {}
|
|
|
+export const ZeroCurvatureEnding: InterpolationEndingModes;
|
|
|
+export const ZeroSlopeEnding: InterpolationEndingModes;
|
|
|
+export const WrapAroundEnding: InterpolationEndingModes;
|
|
|
+
|
|
|
+// Triangle Draw modes
|
|
|
+export enum TrianglesDrawModes {}
|
|
|
+export const TrianglesDrawMode: TrianglesDrawModes;
|
|
|
+export const TriangleStripDrawMode: TrianglesDrawModes;
|
|
|
+export const TriangleFanDrawMode: TrianglesDrawModes;
|
|
|
+
|
|
|
+// Texture Encodings
|
|
|
+export enum TextureEncoding {}
|
|
|
+export const LinearEncoding: TextureEncoding;
|
|
|
+export const sRGBEncoding: TextureEncoding;
|
|
|
+export const GammaEncoding: TextureEncoding;
|
|
|
+export const RGBEEncoding: TextureEncoding;
|
|
|
+export const LogLuvEncoding: TextureEncoding;
|
|
|
+export const RGBM7Encoding: TextureEncoding;
|
|
|
+export const RGBM16Encoding: TextureEncoding;
|
|
|
+export const RGBDEncoding: TextureEncoding;
|
|
|
+
|
|
|
+// Depth packing strategies
|
|
|
+export enum DepthPackingStrategies {}
|
|
|
+export const BasicDepthPacking: DepthPackingStrategies;
|
|
|
+export const RGBADepthPacking: DepthPackingStrategies;
|