pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
113 lines (112 loc) • 2.8 kB
TypeScript
/**
* Various GL texture/resources formats.
* @category rendering
* @advanced
*/
export declare enum GL_FORMATS {
RGBA = 6408,
RGB = 6407,
RG = 33319,
RED = 6403,
RGBA_INTEGER = 36249,
RGB_INTEGER = 36248,
RG_INTEGER = 33320,
RED_INTEGER = 36244,
ALPHA = 6406,
LUMINANCE = 6409,
LUMINANCE_ALPHA = 6410,
DEPTH_COMPONENT = 6402,
DEPTH_STENCIL = 34041
}
/**
* Various GL target types.
* @category rendering
* @advanced
*/
export declare enum GL_TARGETS {
TEXTURE_2D = 3553,
TEXTURE_CUBE_MAP = 34067,
TEXTURE_2D_ARRAY = 35866,
TEXTURE_CUBE_MAP_POSITIVE_X = 34069,
TEXTURE_CUBE_MAP_NEGATIVE_X = 34070,
TEXTURE_CUBE_MAP_POSITIVE_Y = 34071,
TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072,
TEXTURE_CUBE_MAP_POSITIVE_Z = 34073,
TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074
}
/**
* The wrap modes that are supported by pixi.
*
* The {@link WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
* If the texture is non power of two then clamp will be used regardless as WebGL can
* only use REPEAT if the texture is po2.
*
* This property only affects WebGL.
* @category rendering
* @advanced
*/
export declare enum GL_WRAP_MODES {
/**
* The textures uvs are clamped
* @default 33071
*/
CLAMP = 33071,
/**
* The texture uvs tile and repeat
* @default 10497
*/
REPEAT = 10497,
/**
* The texture uvs tile and repeat with mirroring
* @default 33648
*/
MIRRORED_REPEAT = 33648
}
/** @internal */
export declare enum GL_TYPES {
/**
* 8 bits per channel for gl.RGBA
* @default 5121
*/
UNSIGNED_BYTE = 5121,
/** @default 5123 */
UNSIGNED_SHORT = 5123,
/**
* 5 red bits, 6 green bits, 5 blue bits.
* @default 33635
*/
UNSIGNED_SHORT_5_6_5 = 33635,
/**
* 4 red bits, 4 green bits, 4 blue bits, 4 alpha bits.
* @default 32819
*/
UNSIGNED_SHORT_4_4_4_4 = 32819,
/**
* 5 red bits, 5 green bits, 5 blue bits, 1 alpha bit.
* @default 32820
*/
UNSIGNED_SHORT_5_5_5_1 = 32820,
/** @default 5125 */
UNSIGNED_INT = 5125,
/** @default 35899 */
UNSIGNED_INT_10F_11F_11F_REV = 35899,
/** @default 33640 */
UNSIGNED_INT_2_10_10_10_REV = 33640,
/** @default 34042 */
UNSIGNED_INT_24_8 = 34042,
/** @default 35902 */
UNSIGNED_INT_5_9_9_9_REV = 35902,
/** @default 5120 */
BYTE = 5120,
/** @default 5122 */
SHORT = 5122,
/** @default 5124 */
INT = 5124,
/** @default 5126 */
FLOAT = 5126,
/** @default 36269 */
FLOAT_32_UNSIGNED_INT_24_8_REV = 36269,
/** @default 36193 */
HALF_FLOAT = 36193
}