API Docs for: 0.5.5
Show:

kick.core.Constants Class

Module: kick.core

This class contains references to WebGL constants.
Constants will be replace with actual values to increase performance when the file is compile by the postprocessor.
Note that I have intentionally named the WebGL constants with a prefix 'GL_'. This allows use of normal WebGL constants that will not be replaced by the preprocessor.

Item Index

Properties

Properties

_ASSERT_EDITOR

Boolean final static

Allows usage of assertions in the code. The assertions will be set to false in the "compiled" code (this will remove dead code in the minify-stage).
Example usage:

Example:

var constants = kick.core.Constants;
if (constants._ASSERT){
    if (!Number.isNumber(x)){
        kick.core.Util.fail("x should be a number");
    }
}

_DEBUG

Boolean final static

Allows usage of debugging in the script code. The flag can be set to false in the "compiled" code (this will remove dead code in the minify-stage).
Example usage:

Example:

var constants = kick.core.Constants;
if (constants._DEBUG){
    console.log("X is now "+x);
}

_DEGREE_TO_RADIAN

Number final static

Value 0.01745329251994

_EPSILON

Number final static

Value 0.00001

_RADIAN_TO_DEGREE

Number final static

Value 57.2957795130824

_VERSION

String final static

The current version of the library

GL_ACTIVE_ATTRIBUTES

Number final static

Value 35721

GL_ACTIVE_TEXTURE

Number final static

Value 34016

GL_ACTIVE_UNIFORMS

Number final static

Value 35718

GL_ALIASED_LINE_WIDTH_RANGE

Number final static

Value 33902

GL_ALIASED_POINT_SIZE_RANGE

Number final static

Value 33901

GL_ALPHA

Number final static

Value 6406

GL_ALPHA_BITS

Number final static

Value 3413

GL_ALWAYS

Number final static

Value 519

GL_ARRAY_BUFFER

Number final static

Value 34962

GL_ARRAY_BUFFER_BINDING

Number final static

Value 34964

GL_ATTACHED_SHADERS

Number final static

Value 35717

GL_BACK

Number final static

Value 1029

GL_BLEND

Number final static

Value 3042

GL_BLEND_COLOR

Number final static

Value 32773

GL_BLEND_DST_ALPHA

Number final static

Value 32970

GL_BLEND_DST_RGB

Number final static

Value 32968

GL_BLEND_EQUATION

Number final static

Value 32777

GL_BLEND_EQUATION_ALPHA

Number final static

Value 34877

GL_BLEND_EQUATION_RGB

Number final static

Value 32777

GL_BLEND_SRC_ALPHA

Number final static

Value 32971

GL_BLEND_SRC_RGB

Number final static

Value 32969

GL_BLUE_BITS

Number final static

Value 3412

GL_BOOL

Number final static

Value 35670

GL_BOOL_VEC2

Number final static

Value 35671

GL_BOOL_VEC3

Number final static

Value 35672

GL_BOOL_VEC4

Number final static

Value 35673

GL_BROWSER_DEFAULT_WEBGL

Number final static

Value 37444

GL_BUFFER_SIZE

Number final static

Value 34660

GL_BUFFER_USAGE

Number final static

Value 34661

GL_BYTE

Number final static

Value 5120

GL_CCW

Number final static

Value 2305

GL_CLAMP_TO_EDGE

Number final static

Value 33071

GL_COLOR_ATTACHMENT0

Number final static

Value 36064

GL_COLOR_ATTACHMENT1

Number final static

Value 36065

GL_COLOR_ATTACHMENT10

Number final static

Value 36074

GL_COLOR_ATTACHMENT11

Number final static

Value 36075

GL_COLOR_ATTACHMENT12

Number final static

Value 36076

GL_COLOR_ATTACHMENT13

Number final static

Value 36077

GL_COLOR_ATTACHMENT14

Number final static

Value 36078

GL_COLOR_ATTACHMENT15

Number final static

Value 36079

GL_COLOR_ATTACHMENT2

Number final static

Value 36066

GL_COLOR_ATTACHMENT3

Number final static

Value 36067

GL_COLOR_ATTACHMENT4

Number final static

Value 36068

GL_COLOR_ATTACHMENT5

Number final static

Value 36069

GL_COLOR_ATTACHMENT6

Number final static

Value 36070

GL_COLOR_ATTACHMENT7

Number final static

Value 36071

GL_COLOR_ATTACHMENT8

Number final static

Value 36072

GL_COLOR_ATTACHMENT9

Number final static

Value 36073

GL_COLOR_BUFFER_BIT

Number final static

Value 16384

GL_COLOR_CLEAR_VALUE

Number final static

Value 3106

GL_COLOR_WRITEMASK

Number final static

Value 3107

GL_COMPILE_STATUS

Number final static

Value 35713

GL_COMPRESSED_TEXTURE_FORMATS

Number final static

Value 34467

GL_CONSTANT_ALPHA

Number final static

Value 32771

GL_CONSTANT_COLOR

Number final static

Value 32769

GL_CONTEXT_LOST_WEBGL

Number final static

Value 37442

GL_CULL_FACE

Number final static

Value 2884

GL_CULL_FACE_MODE

Number final static

Value 2885

GL_CURRENT_PROGRAM

Number final static

Value 35725

GL_CURRENT_VERTEX_ATTRIB

Number final static

Value 34342

GL_CW

Number final static

Value 2304

GL_DECR

Number final static

Value 7683

GL_DECR_WRAP

Number final static

Value 34056

GL_DELETE_STATUS

Number final static

Value 35712

GL_DEPTH_ATTACHMENT

Number final static

Value 36096

GL_DEPTH_BITS

Number final static

Value 3414

GL_DEPTH_BUFFER_BIT

Number final static

Value 256

GL_DEPTH_CLEAR_VALUE

Number final static

Value 2931

GL_DEPTH_COMPONENT

Number final static

Value 6402

GL_DEPTH_COMPONENT16

Number final static

Value 33189

GL_DEPTH_FUNC

Number final static

Value 2932

GL_DEPTH_RANGE

Number final static

Value 2928

GL_DEPTH_STENCIL

Number final static

Value 34041

GL_DEPTH_STENCIL_ATTACHMENT

Number final static

Value 33306

GL_DEPTH_TEST

Number final static

Value 2929

GL_DEPTH_WRITEMASK

Number final static

Value 2930

GL_DITHER

Number final static

Value 3024

GL_DONT_CARE

Number final static

Value 4352

GL_DRAW_BUFFER0

Number final static

Value 34853

GL_DRAW_BUFFER1

Number final static

Value 34854

GL_DRAW_BUFFER10

Number final static

Value 34863

GL_DRAW_BUFFER11

Number final static

Value 34864

GL_DRAW_BUFFER12

Number final static

Value 34865

GL_DRAW_BUFFER13

Number final static

Value 34866

GL_DRAW_BUFFER14

Number final static

Value 34867

GL_DRAW_BUFFER15

Number final static

Value 34868

GL_DRAW_BUFFER2

Number final static

Value 34855

GL_DRAW_BUFFER3

Number final static

Value 34856

GL_DRAW_BUFFER4

Number final static

Value 34857

GL_DRAW_BUFFER5

Number final static

Value 34858

GL_DRAW_BUFFER6

Number final static

Value 34859

GL_DRAW_BUFFER7

Number final static

Value 34860

GL_DRAW_BUFFER8

Number final static

Value 34861

GL_DRAW_BUFFER9

Number final static

Value 34862

GL_DST_ALPHA

Number final static

Value 772

GL_DST_COLOR

Number final static

Value 774

GL_DYNAMIC_DRAW

Number final static

Value 35048

GL_ELEMENT_ARRAY_BUFFER

Number final static

Value 34963

GL_ELEMENT_ARRAY_BUFFER_BINDING

Number final static

Value 34965

GL_EQUAL

Number final static

Value 514

GL_FASTEST

Number final static

Value 4353

GL_FLOAT

Number final static

Value 5126

GL_FLOAT_MAT2

Number final static

Value 35674

GL_FLOAT_MAT3

Number final static

Value 35675

GL_FLOAT_MAT4

Number final static

Value 35676

GL_FLOAT_VEC2

Number final static

Value 35664

GL_FLOAT_VEC3

Number final static

Value 35665

GL_FLOAT_VEC4

Number final static

Value 35666

GL_FRAGMENT_SHADER

Number final static

Value 35632

GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES

Number final static

Value 35723

GL_FRAMEBUFFER

Number final static

Value 36160

GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME

Number final static

Value 36049

GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE

Number final static

Value 36048

GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE

Number final static

Value 36051

GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL

Number final static

Value 36050

GL_FRAMEBUFFER_BINDING

Number final static

Value 36006

GL_FRAMEBUFFER_COMPLETE

Number final static

Value 36053

GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT

Number final static

Value 36054

GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS

Number final static

Value 36057

GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT

Number final static

Value 36055

GL_FRAMEBUFFER_UNSUPPORTED

Number final static

Value 36061

GL_FRONT

Number final static

Value 1028

GL_FRONT_AND_BACK

Number final static

Value 1032

GL_FRONT_FACE

Number final static

Value 2886

GL_FUNC_ADD

Number final static

Value 32774

GL_FUNC_REVERSE_SUBTRACT

Number final static

Value 32779

GL_FUNC_SUBTRACT

Number final static

Value 32778

GL_GENERATE_MIPMAP_HINT

Number final static

Value 33170

GL_GEQUAL

Number final static

Value 518

GL_GREATER

Number final static

Value 516

GL_GREEN_BITS

Number final static

Value 3411

GL_HALF_FLOAT_OES

Number final static

Value 36193

GL_HIGH_FLOAT

Number final static

Value 36338

GL_HIGH_INT

Number final static

Value 36341

GL_INCR

Number final static

Value 7682

GL_INCR_WRAP

Number final static

Value 34055

GL_INT

Number final static

Value 5124

GL_INT_VEC2

Number final static

Value 35667

GL_INT_VEC3

Number final static

Value 35668

GL_INT_VEC4

Number final static

Value 35669

GL_INVALID_ENUM

Number final static

Value 1280

GL_INVALID_FRAMEBUFFER_OPERATION

Number final static

Value 1286

GL_INVALID_OPERATION

Number final static

Value 1282

GL_INVALID_VALUE

Number final static

Value 1281

GL_INVERT

Number final static

Value 5386

GL_KEEP

Number final static

Value 7680

GL_LEQUAL

Number final static

Value 515

GL_LESS

Number final static

Value 513

GL_LINE_LOOP

Number final static

Value 2

GL_LINE_STRIP

Number final static

Value 3

GL_LINE_WIDTH

Number final static

Value 2849

GL_LINEAR

Number final static

Value 9729

GL_LINEAR_MIPMAP_LINEAR

Number final static

Value 9987

GL_LINEAR_MIPMAP_NEAREST

Number final static

Value 9985

GL_LINES

Number final static

Value 1

GL_LOW_FLOAT

Number final static

Value 36336

GL_LOW_INT

Number final static

Value 36339

GL_LUMINANCE

Number final static

Value 6409

GL_LUMINANCE_ALPHA

Number final static

Value 6410

GL_MAX_COLOR_ATTACHMENTS

Number final static

Value 36063

GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS

Number final static

Value 35661

GL_MAX_CUBE_MAP_TEXTURE_SIZE

Number final static

Value 34076

GL_MAX_DRAW_BUFFERS

Number final static

Value 34852

GL_MAX_FRAGMENT_UNIFORM_VECTORS

Number final static

Value 36349

GL_MAX_RENDERBUFFER_SIZE

Number final static

Value 34024

GL_MAX_TEXTURE_IMAGE_UNITS

Number final static

Value 34930

GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT

Number final static

Value 34047

GL_MAX_TEXTURE_SIZE

Number final static

Value 3379

GL_MAX_VARYING_VECTORS

Number final static

Value 36348

GL_MAX_VERTEX_ATTRIBS

Number final static

Value 34921

GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS

Number final static

Value 35660

GL_MAX_VERTEX_UNIFORM_VECTORS

Number final static

Value 36347

GL_MAX_VIEWPORT_DIMS

Number final static

Value 3386

GL_MEDIUM_FLOAT

Number final static

Value 36337

GL_MEDIUM_INT

Number final static

Value 36340

GL_MIRRORED_REPEAT

Number final static

Value 33648

GL_NEAREST

Number final static

Value 9728

GL_NEAREST_MIPMAP_LINEAR

Number final static

Value 9986

GL_NEAREST_MIPMAP_NEAREST

Number final static

Value 9984

GL_NEVER

Number final static

Value 512

GL_NICEST

Number final static

Value 4354

GL_NO_ERROR

Number final static

Value 0

GL_NONE

Number final static

Value 0

GL_NOTEQUAL

Number final static

Value 517

GL_ONE

Number final static

Value 1

GL_ONE_MINUS_CONSTANT_ALPHA

Number final static

Value 32772

GL_ONE_MINUS_CONSTANT_COLOR

Number final static

Value 32770

GL_ONE_MINUS_DST_ALPHA

Number final static

Value 773

GL_ONE_MINUS_DST_COLOR

Number final static

Value 775

GL_ONE_MINUS_SRC_ALPHA

Number final static

Value 771

GL_ONE_MINUS_SRC_COLOR

Number final static

Value 769

GL_OUT_OF_MEMORY

Number final static

Value 1285

GL_PACK_ALIGNMENT

Number final static

Value 3333

GL_POINTS

Number final static

Value 0

GL_POLYGON_OFFSET_FACTOR

Number final static

Value 32824

GL_POLYGON_OFFSET_FILL

Number final static

Value 32823

GL_POLYGON_OFFSET_UNITS

Number final static

Value 10752

GL_RED_BITS

Number final static

Value 3410

GL_RENDERBUFFER

Number final static

Value 36161

GL_RENDERBUFFER_ALPHA_SIZE

Number final static

Value 36179

GL_RENDERBUFFER_BINDING

Number final static

Value 36007

GL_RENDERBUFFER_BLUE_SIZE

Number final static

Value 36178

GL_RENDERBUFFER_DEPTH_SIZE

Number final static

Value 36180

GL_RENDERBUFFER_GREEN_SIZE

Number final static

Value 36177

GL_RENDERBUFFER_HEIGHT

Number final static

Value 36163

GL_RENDERBUFFER_INTERNAL_FORMAT

Number final static

Value 36164

GL_RENDERBUFFER_RED_SIZE

Number final static

Value 36176

GL_RENDERBUFFER_STENCIL_SIZE

Number final static

Value 36181

GL_RENDERBUFFER_WIDTH

Number final static

Value 36162

GL_RENDERER

Number final static

Value 7937

GL_REPEAT

Number final static

Value 10497

GL_REPLACE

Number final static

Value 7681

GL_RGB

Number final static

Value 6407

GL_RGB565

Number final static

Value 36194

GL_RGB5_A1

Number final static

Value 32855

GL_RGBA

Number final static

Value 6408

GL_RGBA4

Number final static

Value 32854

GL_SAMPLE_ALPHA_TO_COVERAGE

Number final static

Value 32926

GL_SAMPLE_BUFFERS

Number final static

Value 32936

GL_SAMPLE_COVERAGE

Number final static

Value 32928

GL_SAMPLE_COVERAGE_INVERT

Number final static

Value 32939

GL_SAMPLE_COVERAGE_VALUE

Number final static

Value 32938

GL_SAMPLER_2D

Number final static

Value 35678

GL_SAMPLER_CUBE

Number final static

Value 35680

GL_SAMPLES

Number final static

Value 32937

GL_SCISSOR_BOX

Number final static

Value 3088

GL_SCISSOR_TEST

Number final static

Value 3089

GL_SHADER_TYPE

Number final static

Value 35663

GL_SHADING_LANGUAGE_VERSION

Number final static

Value 35724

GL_SHORT

Number final static

Value 5122

GL_SRC_ALPHA

Number final static

Value 770

GL_SRC_ALPHA_SATURATE

Number final static

Value 776

GL_SRC_COLOR

Number final static

Value 768

GL_STATIC_DRAW

Number final static

Value 35044

GL_STENCIL_ATTACHMENT

Number final static

Value 36128

GL_STENCIL_BACK_FAIL

Number final static

Value 34817

GL_STENCIL_BACK_FUNC

Number final static

Value 34816

GL_STENCIL_BACK_PASS_DEPTH_FAIL

Number final static

Value 34818

GL_STENCIL_BACK_PASS_DEPTH_PASS

Number final static

Value 34819

GL_STENCIL_BACK_REF

Number final static

Value 36003

GL_STENCIL_BACK_VALUE_MASK

Number final static

Value 36004

GL_STENCIL_BACK_WRITEMASK

Number final static

Value 36005

GL_STENCIL_BITS

Number final static

Value 3415

GL_STENCIL_BUFFER_BIT

Number final static

Value 1024

GL_STENCIL_CLEAR_VALUE

Number final static

Value 2961

GL_STENCIL_FAIL

Number final static

Value 2964

GL_STENCIL_FUNC

Number final static

Value 2962

GL_STENCIL_INDEX

Number final static

Value 6401

GL_STENCIL_INDEX8

Number final static

Value 36168

GL_STENCIL_PASS_DEPTH_FAIL

Number final static

Value 2965

GL_STENCIL_PASS_DEPTH_PASS

Number final static

Value 2966

GL_STENCIL_REF

Number final static

Value 2967

GL_STENCIL_TEST

Number final static

Value 2960

GL_STENCIL_VALUE_MASK

Number final static

Value 2963

GL_STENCIL_WRITEMASK

Number final static

Value 2968

GL_STREAM_DRAW

Number final static

Value 35040

GL_SUBPIXEL_BITS

Number final static

Value 3408

GL_TEXTURE

Number final static

Value 5890

GL_TEXTURE0

Number final static

Value 33984

GL_TEXTURE1

Number final static

Value 33985

GL_TEXTURE10

Number final static

Value 33994

GL_TEXTURE11

Number final static

Value 33995

GL_TEXTURE12

Number final static

Value 33996

GL_TEXTURE13

Number final static

Value 33997

GL_TEXTURE14

Number final static

Value 33998

GL_TEXTURE15

Number final static

Value 33999

GL_TEXTURE16

Number final static

Value 34000

GL_TEXTURE17

Number final static

Value 34001

GL_TEXTURE18

Number final static

Value 34002

GL_TEXTURE19

Number final static

Value 34003

GL_TEXTURE2

Number final static

Value 33986

GL_TEXTURE20

Number final static

Value 34004

GL_TEXTURE21

Number final static

Value 34005

GL_TEXTURE22

Number final static

Value 34006

GL_TEXTURE23

Number final static

Value 34007

GL_TEXTURE24

Number final static

Value 34008

GL_TEXTURE25

Number final static

Value 34009

GL_TEXTURE26

Number final static

Value 34010

GL_TEXTURE27

Number final static

Value 34011

GL_TEXTURE28

Number final static

Value 34012

GL_TEXTURE29

Number final static

Value 34013

GL_TEXTURE3

Number final static

Value 33987

GL_TEXTURE30

Number final static

Value 34014

GL_TEXTURE31

Number final static

Value 34015

GL_TEXTURE4

Number final static

Value 33988

GL_TEXTURE5

Number final static

Value 33989

GL_TEXTURE6

Number final static

Value 33990

GL_TEXTURE7

Number final static

Value 33991

GL_TEXTURE8

Number final static

Value 33992

GL_TEXTURE9

Number final static

Value 33993

GL_TEXTURE_2D

Number final static

Value 3553

GL_TEXTURE_BINDING_2D

Number final static

Value 32873

GL_TEXTURE_BINDING_CUBE_MAP

Number final static

Value 34068

GL_TEXTURE_CUBE_MAP

Number final static

Value 34067

GL_TEXTURE_CUBE_MAP_NEGATIVE_X

Number final static

Value 34070

GL_TEXTURE_CUBE_MAP_NEGATIVE_Y

Number final static

Value 34072

GL_TEXTURE_CUBE_MAP_NEGATIVE_Z

Number final static

Value 34074

GL_TEXTURE_CUBE_MAP_POSITIVE_X

Number final static

Value 34069

GL_TEXTURE_CUBE_MAP_POSITIVE_Y

Number final static

Value 34071

GL_TEXTURE_CUBE_MAP_POSITIVE_Z

Number final static

Value 34073

GL_TEXTURE_MAG_FILTER

Number final static

Value 10240

GL_TEXTURE_MAX_ANISOTROPY_EXT

Number final static

Value 34046

GL_TEXTURE_MIN_FILTER

Number final static

Value 10241

GL_TEXTURE_WRAP_S

Number final static

Value 10242

GL_TEXTURE_WRAP_T

Number final static

Value 10243

GL_TRIANGLE_FAN

Number final static

Value 6

GL_TRIANGLE_STRIP

Number final static

Value 5

GL_TRIANGLES

Number final static

Value 4

GL_UNPACK_ALIGNMENT

Number final static

Value 3317

GL_UNPACK_COLORSPACE_CONVERSION_WEBGL

Number final static

Value 37443

GL_UNPACK_FLIP_Y_WEBGL

Number final static

Value 37440

GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL

Number final static

Value 37441

GL_UNSIGNED_BYTE

Number final static

Value 5121

GL_UNSIGNED_INT

Number final static

Value 5125

GL_UNSIGNED_INT_24_8_WEBGL

Number final static

Value 34042

GL_UNSIGNED_SHORT

Number final static

Value 5123

GL_UNSIGNED_SHORT_4_4_4_4

Number final static

Value 32819

GL_UNSIGNED_SHORT_5_5_5_1

Number final static

Value 32820

GL_UNSIGNED_SHORT_5_6_5

Number final static

Value 33635

GL_VALIDATE_STATUS

Number final static

Value 35715

GL_VENDOR

Number final static

Value 7936

GL_VERSION

Number final static

Value 7938

GL_VERTEX_ARRAY_BINDING_OES

Number final static

Value 34229

GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

Number final static

Value 34975

GL_VERTEX_ATTRIB_ARRAY_ENABLED

Number final static

Value 34338

GL_VERTEX_ATTRIB_ARRAY_NORMALIZED

Number final static

Value 34922

GL_VERTEX_ATTRIB_ARRAY_POINTER

Number final static

Value 34373

GL_VERTEX_ATTRIB_ARRAY_SIZE

Number final static

Value 34339

GL_VERTEX_ATTRIB_ARRAY_STRIDE

Number final static

Value 34340

GL_VERTEX_ATTRIB_ARRAY_TYPE

Number final static

Value 34341

GL_VERTEX_SHADER

Number final static

Value 35633

GL_VIEWPORT

Number final static

Value 2978

GL_ZERO

Number final static

Value 0