API Documentation
Classes
- _global_
- GLGE
- GLGE.Action
- GLGE.ActionChannel
- GLGE.Animatable
- GLGE.AnimationCurve
- GLGE.AnimationVector
- GLGE.Assets
- GLGE.BezTriple
- GLGE.Camera
- GLGE.Collada
- GLGE.Document
- GLGE.DocumentPreloader
- GLGE.Events
- GLGE.FilePreloader
- GLGE.FilterAO
- GLGE.FilterGlow
- GLGE.Group
- GLGE.GUI
- GLGE.HeightMap
- GLGE.JSONLoader
- GLGE.KeyInput
- GLGE.Light
- GLGE.LinearPoint
- GLGE.Material
- GLGE.MaterialLayer
- GLGE.MD2
- GLGE.Mesh
- GLGE.Message
- GLGE.MouseInput
- GLGE.MultiMaterial
- GLGE.Object
- GLGE.ObjectLod
- GLGE.ParticleSystem
- GLGE.PhysicsAbstract
- GLGE.PhysicsBox
- GLGE.PhysicsCar
- GLGE.PhysicsConstraintPoint
- GLGE.PhysicsMesh
- GLGE.PhysicsPlane
- GLGE.PhysicsSphere
- GLGE.PhysicsWheel
- GLGE.Placeable
- GLGE.QuickNotation
- GLGE.Renderer
- GLGE.Scene
- GLGE.Sphere
- GLGE.StepPoint
- GLGE.Text
- GLGE.Texture
- GLGE.TextureCamera
- GLGE.TextureCanvas
- GLGE.TextureCube
- GLGE.TextureVideo
- GLGE.Wavefront
- GUI.Gadget
- GUI.Preloader
- GUI.Progressbar
- GUI.Widget
Holds the functionality of the library
Defined in: glge_math.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> <constant> |
GLGE.BL_MIX
Enumeration for mix blending mode
|
| <static> <constant> |
GLGE.BL_MUL
Enumeration for mix blending mode
|
| <static> <constant> |
GLGE.C_ORTHO
Enumeration for a orthographic camera
|
| <static> <constant> |
GLGE.C_PERSPECTIVE
Enumeration for a perspective camera
|
| <static> <constant> |
GLGE.DRAW_LINELOOPS
Enumeration for line loop rendering
|
| <static> <constant> |
GLGE.DRAW_LINES
Enumeration for line rendering
|
| <static> <constant> |
GLGE.DRAW_LINESTRIPS
Enumeration for line loop rendering
|
| <static> <constant> |
GLGE.DRAW_POINTS
Enumeration for point rendering
|
| <static> <constant> |
GLGE.DRAW_TRIANGLESTRIP
Enumeration for point rendering
|
| <static> <constant> |
GLGE.DRAW_TRIS
Enumeration for tri rendering
|
| <static> <constant> |
GLGE.FALSE
Enumeration for FALSE
|
| <static> <constant> |
GLGE.FOG_LINEAR
Enumeration for linear fall off fog
|
| <static> <constant> |
GLGE.FOG_NONE
Enumeration for no fog
|
| <static> <constant> |
GLGE.FOG_QUADRATIC
Enumeration for exponential fall off fog
|
| <static> <constant> |
GLGE.FOG_SKYLINEAR
Enumeration for linear fall off fog fading to sky
|
| <static> <constant> |
GLGE.FOG_SKYQUADRATIC
Enumeration for exponential fall off fog fading to sky
|
| <static> <constant> |
GLGE.G_NODE
Enumeration for node group type
|
| <static> <constant> |
GLGE.G_ROOT
Enumeration for root group type
|
| <static> <constant> |
GLGE.GLOBAL
Enumeration for global refrance frame
|
| <static> <constant> |
GLGE.KI_0
Enumeration for the 0 key
|
| <static> <constant> |
GLGE.KI_1
Enumeration for the 1 key
|
| <static> <constant> |
GLGE.KI_2
Enumeration for the 2 key
|
| <static> <constant> |
GLGE.KI_3
Enumeration for the 3 key
|
| <static> <constant> |
GLGE.KI_4
Enumeration for the 4 key
|
| <static> <constant> |
GLGE.KI_5
Enumeration for the 5 key
|
| <static> <constant> |
GLGE.KI_6
Enumeration for the 6 key
|
| <static> <constant> |
GLGE.KI_7
Enumeration for the 7 key
|
| <static> <constant> |
GLGE.KI_8
Enumeration for the 8 key
|
| <static> <constant> |
GLGE.KI_9
Enumeration for the 9 key
|
| <static> <constant> |
GLGE.KI_A
Enumeration for the a key
|
| <static> <constant> |
GLGE.KI_ADD
Enumeration for the add key
|
| <static> <constant> |
GLGE.KI_ALT
Enumeration for the alt key
|
| <static> <constant> |
GLGE.KI_B
Enumeration for the b key
|
| <static> <constant> |
GLGE.KI_BACK_SLASH
Enumeration for the back slash key
|
| <static> <constant> |
GLGE.KI_BACKSPACE
Enumeration for the backspace key
|
| <static> <constant> |
GLGE.KI_C
Enumeration for the c key
|
| <static> <constant> |
GLGE.KI_CAPS_LOCK
Enumeration for the caps lock key
|
| <static> <constant> |
GLGE.KI_CLOSE_BRAKET
Enumeration for the close braket key
|
| <static> <constant> |
GLGE.KI_COMMA
Enumeration for the comma key
|
| <static> <constant> |
GLGE.KI_CTRL
Enumeration for the ctrl key
|
| <static> <constant> |
GLGE.KI_D
Enumeration for the d key
|
| <static> <constant> |
GLGE.KI_DASH
Enumeration for the dash key
|
| <static> <constant> |
GLGE.KI_DECIMAL_POINT
Enumeration for the decimal point key
|
| <static> <constant> |
GLGE.KI_DELETE
Enumeration for the delete key
|
| <static> <constant> |
GLGE.KI_DIVIDE
Enumeration for the divide key
|
| <static> <constant> |
GLGE.KI_DOWN_ARROW
Enumeration for the down arrow key
|
| <static> <constant> |
GLGE.KI_E
Enumeration for the e key
|
| <static> <constant> |
GLGE.KI_END
Enumeration for the end key
|
| <static> <constant> |
GLGE.KI_ENTER
Enumeration for the enter key
|
| <static> <constant> |
GLGE.KI_EQUAL_SIGN
Enumeration for the equal sign key
|
| <static> <constant> |
GLGE.KI_ESCAPE
Enumeration for the escape key
|
| <static> <constant> |
GLGE.KI_F
Enumeration for the f key
|
| <static> <constant> |
GLGE.KI_F1
Enumeration for the f1 key
|
| <static> <constant> |
GLGE.KI_F10
Enumeration for the f10 key
|
| <static> <constant> |
GLGE.KI_F11
Enumeration for the f11 key
|
| <static> <constant> |
GLGE.KI_F12
Enumeration for the f12 key
|
| <static> <constant> |
GLGE.KI_F2
Enumeration for the f2 key
|
| <static> <constant> |
GLGE.KI_F3
Enumeration for the f3 key
|
| <static> <constant> |
GLGE.KI_F4
Enumeration for the f4 key
|
| <static> <constant> |
GLGE.KI_F5
Enumeration for the f5 key
|
| <static> <constant> |
GLGE.KI_F6
Enumeration for the f6 key
|
| <static> <constant> |
GLGE.KI_F7
Enumeration for the f7 key
|
| <static> <constant> |
GLGE.KI_F8
Enumeration for the f8 key
|
| <static> <constant> |
GLGE.KI_F9
Enumeration for the f9 key
|
| <static> <constant> |
GLGE.KI_FORWARD_SLASH
Enumeration for the forward slash key
|
| <static> <constant> |
GLGE.KI_G
Enumeration for the g key
|
| <static> <constant> |
GLGE.KI_GRAVE_ACCENT
Enumeration for the grave accent key
|
| <static> <constant> |
GLGE.KI_H
Enumeration for the h key
|
| <static> <constant> |
GLGE.KI_HOME
Enumeration for the home key
|
| <static> <constant> |
GLGE.KI_I
Enumeration for the i key
|
| <static> <constant> |
GLGE.KI_INSERT
Enumeration for the insert key
|
| <static> <constant> |
GLGE.KI_J
Enumeration for the j key
|
| <static> <constant> |
GLGE.KI_K
Enumeration for the k key
|
| <static> <constant> |
GLGE.KI_L
Enumeration for the l key
|
| <static> <constant> |
GLGE.KI_LEFT_ARROW
Enumeration for the left arrow key
|
| <static> <constant> |
GLGE.KI_LEFT_WINDOW_KEY
Enumeration for the left window key key
|
| <static> <constant> |
GLGE.KI_M
Enumeration for the m key
|
| <static> <constant> |
GLGE.KI_MULTIPLY
Enumeration for the multiply key
|
| <static> <constant> |
GLGE.KI_N
Enumeration for the n key
|
| <static> <constant> |
GLGE.KI_NUM_LOCK
Enumeration for the num lock key
|
| <static> <constant> |
GLGE.KI_NUMPAD_0
Enumeration for the numpad 0 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_1
Enumeration for the numpad 1 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_2
Enumeration for the numpad 2 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_3
Enumeration for the numpad 3 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_4
Enumeration for the numpad 4 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_5
Enumeration for the numpad 5 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_6
Enumeration for the numpad 6 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_7
Enumeration for the numpad 7 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_8
Enumeration for the numpad 8 key
|
| <static> <constant> |
GLGE.KI_NUMPAD_9
Enumeration for the numpad 9 key
|
| <static> <constant> |
GLGE.KI_O
Enumeration for the o key
|
| <static> <constant> |
GLGE.KI_OPEN_BRACKET
Enumeration for the open bracket key
|
| <static> <constant> |
GLGE.KI_P
Enumeration for the p key
|
| <static> <constant> |
GLGE.KI_PAGE_DOWN
Enumeration for the page down key
|
| <static> <constant> |
GLGE.KI_PAGE_UP
Enumeration for the page up key
|
| <static> <constant> |
GLGE.KI_PAUSE_BREAK
Enumeration for the pause/break key
|
| <static> <constant> |
GLGE.KI_PERIOD
Enumeration for the period key
|
| <static> <constant> |
GLGE.KI_Q
Enumeration for the q key
|
| <static> <constant> |
GLGE.KI_R
Enumeration for the r key
|
| <static> <constant> |
GLGE.KI_RIGHT_ARROW
Enumeration for the right arrow key
|
| <static> <constant> |
GLGE.KI_RIGHT_WINDOW_KEY
Enumeration for the right window key key
|
| <static> <constant> |
GLGE.KI_S
Enumeration for the s key
|
| <static> <constant> |
GLGE.KI_SCROLL_LOCK
Enumeration for the scroll lock key
|
| <static> <constant> |
GLGE.KI_SELECT_KEY
Enumeration for the select key key
|
| <static> <constant> |
GLGE.KI_SEMI_COLON
Enumeration for the semi-colon key
|
| <static> <constant> |
GLGE.KI_SHIFT
Enumeration for the shift key
|
| <static> <constant> |
GLGE.KI_SINGLE_QUOTE
Enumeration for the single quote key
|
| <static> <constant> |
GLGE.KI_SPACE
Enumeration for the space key
|
| <static> <constant> |
GLGE.KI_SUBTRACT
Enumeration for the subtract key
|
| <static> <constant> |
GLGE.KI_T
Enumeration for the t key
|
| <static> <constant> |
GLGE.KI_TAB
Enumeration for the tab key
|
| <static> <constant> |
GLGE.KI_U
Enumeration for the u key
|
| <static> <constant> |
GLGE.KI_UP_ARROW
Enumeration for the up arrow key
|
| <static> <constant> |
GLGE.KI_V
Enumeration for the v key
|
| <static> <constant> |
GLGE.KI_W
Enumeration for the w key
|
| <static> <constant> |
GLGE.KI_X
Enumeration for the x key
|
| <static> <constant> |
GLGE.KI_Y
Enumeration for the y key
|
| <static> <constant> |
GLGE.KI_Z
Enumeration for the z key
|
| <static> <constant> |
GLGE.L_DIR
Enumeration for an directional light source
|
| <static> <constant> |
GLGE.L_OFF
Enumeration a light that is disabled
|
| <static> <constant> |
GLGE.L_POINT
Enumeration for an point light source
|
| <static> <constant> |
GLGE.L_SPOT
Enumeration for an spot light source
|
| <static> <constant> |
GLGE.LOCAL
Enumeration for local refrance frame
|
| <static> <constant> |
GLGE.M_ALPHA
Flag for material alpha
|
| <static> <constant> |
GLGE.M_AMBIENT
Flag for ambient mapping
|
| <static> <constant> |
GLGE.M_COLOR
Flag for material colour
|
| <static> <constant> |
GLGE.M_EMIT
Flag for material emision
|
| <static> <constant> |
GLGE.M_HEIGHT
Flag for mapping of the height in parallax mapping
|
| <static> <constant> |
GLGE.M_MSKA
Flag for masking with textures alpha value
|
| <static> <constant> |
GLGE.M_MSKB
Flag for masking with textures blue value
|
| <static> <constant> |
GLGE.M_MSKG
Flag for masking with textures green value
|
| <static> <constant> |
GLGE.M_MSKR
Flag for masking with textures red value
|
| <static> <constant> |
GLGE.M_NOR
Flag for material normal
|
| <static> <constant> |
GLGE.M_REFLECT
Flag for material reflectivity
|
| <static> <constant> |
GLGE.M_SHINE
Flag for material shineiness
|
| <static> <constant> |
GLGE.M_SPECCOLOR
Flag for material specular color
|
| <static> <constant> |
GLGE.M_SPECULAR
Flag for material specular cvalue
|
| <static> <constant> |
GLGE.M_STEEP
Flag for Steep parallax mapng
|
| <static> <constant> |
GLGE.MAP_ENV
Enumeration for environment coords
|
| <static> <constant> |
GLGE.MAP_NORM
Enumeration for normal texture coords
|
| <static> <constant> |
GLGE.MAP_OBJ
Enumeration for object texture coords
|
| <static> <constant> |
GLGE.MAP_POINT
Enumeration for point coords
|
| <static> <constant> |
GLGE.MAP_REF
Enumeration for reflection coords
|
| <static> <constant> |
GLGE.MAP_VIEW
Enumeration for view coords
|
| <static> |
GLGE.Mat3
The Mat class creates a matrix from an array
|
| <static> <constant> |
GLGE.MI_LEFT
Enumeration for the left mouse button
|
| <static> <constant> |
GLGE.MI_MIDDLE
Enumeration for the middle mouse button
|
| <static> <constant> |
GLGE.MI_RIGHT
Enumeration for the right mouse button
|
| <static> <constant> |
GLGE.NEG_XAXIS
Enumeration for -X-Axis
|
| <static> <constant> |
GLGE.NEG_YAXIS
Enumeration for -Y-Axis
|
| <static> <constant> |
GLGE.NEG_ZAXIS
Enumeration for -Z-Axis
|
| <static> <constant> |
GLGE.NONE
Enumeration for no value
|
| <static> <constant> |
GLGE.P_EULER
Enumeration for euler rotaions mode
|
| <static> <constant> |
GLGE.P_MATRIX
Enumeration for matrix rotation mode
|
| <static> <constant> |
GLGE.P_QUAT
Enumeration for quaternions mode
|
| <static> |
GLGE.PHYSICS_ALL
Enumeration for copy of rotation and location
|
| <static> |
GLGE.PHYSICS_LOC
Enumeration for copy of location
|
| <static> <constant> |
GLGE.POS_XAXIS
Enumeration for +X-Axis
|
| <static> <constant> |
GLGE.POS_YAXIS
Enumeration for +Y-Axis
|
| <static> <constant> |
GLGE.POS_ZAXIS
Enumeration for +Z-Axis
|
| <static> <constant> |
GLGE.RENDER_DEFAULT
Enumeration for rendering using default shader
|
| <static> <constant> |
GLGE.RENDER_DEPTH
Enumeration for depth rendering
|
| <static> <constant> |
GLGE.RENDER_EMIT
Enumeration for emit rendering
|
| <static> <constant> |
GLGE.RENDER_NORMAL
Enumeration for rendering using normal shader
|
| <static> <constant> |
GLGE.RENDER_NULL
Enumeration for no rendering
|
| <static> <constant> |
GLGE.RENDER_PICK
Enumeration for rendering using pick shader
|
| <static> <constant> |
GLGE.RENDER_SHADOW
Enumeration for rendering using shadow shader
|
| <static> <constant> |
GLGE.ROT_XYZ
Enum for XYZ rotation order
|
| <static> <constant> |
GLGE.ROT_XZY
Enum for XZY rotation order
|
| <static> <constant> |
GLGE.ROT_YXZ
Enum for YXZ rotation order
|
| <static> <constant> |
GLGE.ROT_YZX
Enum for YZX rotation order
|
| <static> <constant> |
GLGE.ROT_ZXY
Enum for ZXY rotation order
|
| <static> <constant> |
GLGE.ROT_ZYX
Enum for ZYX rotation order
|
| <static> <constant> |
GLGE.TEXT_BOXPICK
Enumeration for box bound text picking
|
| <static> <constant> |
GLGE.TEXT_TEXTPICK
Enumeration for text bound text picking
|
| <static> <constant> |
GLGE.TRUE
Enumeration for TRUE
|
| <static> <constant> |
GLGE.UV1
Enumeration for first UV layer
|
| <static> <constant> |
GLGE.UV2
Enumeration for second UV layer
|
| <static> <constant> |
GLGE.VC_AMB
Enumeration for vertex color sets ambient lighting
|
| <static> <constant> |
GLGE.VC_AMBMUL
Enumeration for vertex color multiplied by ambient lighting
|
| <static> <constant> |
GLGE.VC_BASE
Enumeration for base vertex color mode
|
| <static> <constant> |
GLGE.VC_MUL
Enumeration for muliply vertex color mode
|
| <static> <constant> |
GLGE.VC_NONE
Enumeration for no use of vertex color
|
| <static> <constant> |
GLGE.XAXIS
Enumeration for X-Axis
|
| <static> <constant> |
GLGE.YAXIS
Enumeration for Y-Axis
|
| <static> <constant> |
GLGE.ZAXIS
Enumeration for Z-Axis
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
GLGE.addInPlaceMat4(m, value)
adds a Mat4 to another Mat4 in place without allocation
|
| <static> |
GLGE.addMat4(m, value)
adds two Mat4 together
|
| <static> |
GLGE.addVec3(a, b)
Adds a GLGE.Vec3 to this GLGE.Vec3
|
| <static> |
GLGE.addVec4(a, b)
Adds a GLGE.Vec4 to this Vec4
|
| <static> |
GLGE.angleAxis(angle, axis)
|
| <static> |
GLGE.angleVec3(a, b)
Returns the angle between 2 vector3s in radians
|
| <static> |
GLGE.angleVec4(a, b)
Returns the angle between 2 vector4s in radians
|
| <static> |
GLGE.augment(obj1, obj2)
Function to augment one object with another
|
| <static> |
GLGE.BoundingVolume(minX, maxX, minY, maxY, minZ, maxZ)
|
| <static> |
GLGE.cameraViewProjectionToPlanes(cvp)
|
| <static> |
GLGE.colorParse(color)
function to parse a colour input into RGB eg #ff00ff, red, rgb(100,100,100)
|
| <static> |
GLGE.crossVec3(a, b)
Gets the cross product between this and the input vector
|
| <static> |
GLGE.determinantMat4(m)
Finds the determinate of the matrix
|
| <static> |
GLGE.distanceVec3(a, b)
Returns the distance between 2 vector3s
|
| <static> |
GLGE.distanceVec4(a, b)
Returns the distance between 2 vector4s
|
| <static> |
GLGE.dotVec3(a, b)
Gets the dot product between this and the input vector
|
| <static> |
GLGE.dotVec4(a, b)
Gets the dot product between this and the input vector
|
| <static> |
GLGE.error(error)
|
| <static> |
GLGE.Filter2d(uid)
|
| <static> |
GLGE.get1basedMat4(i, j, j)
Gets the value at the specified index
|
| <static> |
GLGE.get1basedVec3(v, i)
Gets the nth element (1 indexed) from the array
|
| <static> |
GLGE.get1basedVec4(v, i)
Gets the nth element (1 indexed) from the array
|
| <static> |
GLGE.getDirLightProjection(cvp, light, projectedDistance, distance)
|
| <static> |
GLGE.getMat4(i, j, j)
Gets the value at the specified index
|
| <static> |
GLGE.getVec3(v, i)
Gets the nth element (1 indexed) from the array
|
| <static> |
GLGE.getVec4(v, i)
Gets the nth element (1 indexed) from the array
|
| <static> |
GLGE.identMatrix()
Creates an identity matrix
|
| <static> |
GLGE.inverseMat4(mat)
Finds the inverse of the matrix
|
| <static> |
GLGE.lengthVec3(a)
Returns the length of a vector3
|
| <static> |
GLGE.lengthVec4(a, b)
Returns the length of a vector3
|
| <static> |
GLGE.LINEAR_BLEND(value)
Linear blending function
|
| <static> |
GLGE.makeFrustum(left, right, bottom, top, near, far)
|
| <static> |
GLGE.makeGlobal()
Moves all GLGE function to global
|
| <static> |
GLGE.makeOrtho(left, right, bottom, top, near, far)
|
| <static> |
GLGE.makePerspective(fovy, aspect, near, far)
|
| <static> |
GLGE.makePerspectiveX(fovx, aspect, near, far)
|
| <static> |
GLGE.Mat4(array)
|
| <static> |
GLGE.mat4FromQuat(quaternion)
|
| <static> |
GLGE.mat4gl(mat, glarray)
copys a js array into a webglarray
|
| <static> |
GLGE.matrix2Scale(m)
|
| <static> |
GLGE.matrix4(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16)
|
| <static> |
GLGE.mulMat4(value, mat1)
Finds the matrix multiplication with another GLGE.Mat or GLGE.vec or an Array of length 3-4
|
| <static> |
GLGE.mulMat4Vec3(mat1, vec2)
multiplies two mat4's
|
| <static> |
GLGE.mulMat4Vec4(mat1, vec2)
multiplies two mat4's
|
| <static> |
GLGE.mulQuat(quaternion1, quaternion2)
|
| <static> |
GLGE.New(createclass)
|
| <static> |
GLGE.pointsInFrustumPlanes(points, planes)
|
| <static> |
GLGE.QUAD_BLEND(value)
Quadratic blending function
|
| <static> |
GLGE.quatFromAxisAngle(axis, angle)
|
| <static> |
GLGE.quatRotation(qx, qy, qz, qw)
|
| <static> |
GLGE.rayIntersectPlane(origin, dir, plane)
|
| <static> |
GLGE.rayToPlane(origin, dir)
|
| <static> |
GLGE.reuseMatrix4(mat4)
|
| <static> |
GLGE.rotateMatrix(value, type)
Creates a rotation matrix
|
| <static> |
GLGE.rotationMatrix2Quat(m)
|
| <static> |
GLGE.scaleInPlaceMat4(m, value)
multiplies a Mat4 by a scalar value in place without allocation
|
| <static> |
GLGE.scaleMat4(m, value)
multiplies a Mat4 by a scalar value
|
| <static> |
GLGE.scaleMatrix(value)
Creates a scale matrix
|
| <static> |
GLGE.scaleVec3(a, b)
Gets the dot product between this and the input vector
|
| <static> |
GLGE.scaleVec4(a, b)
Gets the dot product between this and the input vector
|
| <static> |
GLGE.screenToDirection(x, y, width, height, proj)
|
| <static> |
GLGE.set1basedMat4(i, j, value, value)
Sets the value at the specified index
|
| <static> |
GLGE.setMat4(i, j, value, value)
Sets the value at the specified index
|
| <static> |
GLGE.setUniform(gl, type, location, value)
functions to set uniforms with location check.
|
| <static> |
GLGE.setUniform2(gl, type, location, value1, value2)
|
| <static> |
GLGE.setUniform3(gl, type, location, value1, value2, value3)
|
| <static> |
GLGE.setUniform4(gl, type, location, value1, value2, value3, value4)
|
| <static> |
GLGE.setUniformMatrix(gl, type, location, transpose, value)
|
| <static> |
GLGE.SPECIAL_BLEND(value)
Special blending function
|
| <static> |
GLGE.sphereInFrustumPlanes(sphere, planes)
|
| <static> |
GLGE.subInPlaceMat4(m, value)
subs a Mat4 from another Mat4 in place without allocation
|
| <static> |
GLGE.subMat4(m, value)
subtracts the second matrix from the first
|
| <static> |
GLGE.subVec3(a, b)
Adds a GLGE.Vec3 to this GLGE.Vec3
|
| <static> |
GLGE.subVec4(a, b)
Adds a GLGE.Vec4 to this Vec4
|
| <static> |
GLGE.toUnitVec3(a)
Returns a unitized version of the input vector3
|
| <static> |
GLGE.toUnitVec4(a)
Returns a unitized version of the input vector4
|
| <static> |
GLGE.translateMatrix(value)
Creates a translation matrix
|
| <static> |
GLGE.transposeInPlaceMat4(m)
|
| <static> |
GLGE.transposeMat4(m)
Builds the transpose of the matrix
|
| <static> |
GLGE.Vec(array)
|
| <static> |
GLGE.Vec3(array, y, z)
The Vec3 Class creates a vector
|
| <static> |
GLGE.Vec4(array, y, z, w)
The Vec4 Class creates a vector
|
| <static> |
GLGE.warning(warning)
|
Field Detail
<static> <constant>
GLGE.BL_MIX
Enumeration for mix blending mode
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.BL_MUL
Enumeration for mix blending mode
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.C_ORTHO
Enumeration for a orthographic camera
Defined in: glge_camera.js.
Defined in: glge_camera.js.
<static> <constant>
GLGE.C_PERSPECTIVE
Enumeration for a perspective camera
Defined in: glge_camera.js.
Defined in: glge_camera.js.
<static> <constant>
GLGE.DRAW_LINELOOPS
Enumeration for line loop rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.DRAW_LINES
Enumeration for line rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.DRAW_LINESTRIPS
Enumeration for line loop rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.DRAW_POINTS
Enumeration for point rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.DRAW_TRIANGLESTRIP
Enumeration for point rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.DRAW_TRIS
Enumeration for tri rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.FALSE
Enumeration for FALSE
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.FOG_LINEAR
Enumeration for linear fall off fog
Defined in: glge_scene.js.
Defined in: glge_scene.js.
<static> <constant>
GLGE.FOG_NONE
Enumeration for no fog
Defined in: glge_scene.js.
Defined in: glge_scene.js.
<static> <constant>
GLGE.FOG_QUADRATIC
Enumeration for exponential fall off fog
Defined in: glge_scene.js.
Defined in: glge_scene.js.
<static> <constant>
GLGE.FOG_SKYLINEAR
Enumeration for linear fall off fog fading to sky
Defined in: glge_scene.js.
Defined in: glge_scene.js.
<static> <constant>
GLGE.FOG_SKYQUADRATIC
Enumeration for exponential fall off fog fading to sky
Defined in: glge_scene.js.
Defined in: glge_scene.js.
<static> <constant>
GLGE.G_NODE
Enumeration for node group type
Defined in: glge_group.js.
Defined in: glge_group.js.
<static> <constant>
GLGE.G_ROOT
Enumeration for root group type
Defined in: glge_group.js.
Defined in: glge_group.js.
<static> <constant>
GLGE.GLOBAL
Enumeration for global refrance frame
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.KI_0
Enumeration for the 0 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_1
Enumeration for the 1 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_2
Enumeration for the 2 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_3
Enumeration for the 3 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_4
Enumeration for the 4 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_5
Enumeration for the 5 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_6
Enumeration for the 6 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_7
Enumeration for the 7 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_8
Enumeration for the 8 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_9
Enumeration for the 9 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_A
Enumeration for the a key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_ADD
Enumeration for the add key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_ALT
Enumeration for the alt key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_B
Enumeration for the b key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_BACK_SLASH
Enumeration for the back slash key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_BACKSPACE
Enumeration for the backspace key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_C
Enumeration for the c key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_CAPS_LOCK
Enumeration for the caps lock key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_CLOSE_BRAKET
Enumeration for the close braket key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_COMMA
Enumeration for the comma key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_CTRL
Enumeration for the ctrl key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_D
Enumeration for the d key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_DASH
Enumeration for the dash key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_DECIMAL_POINT
Enumeration for the decimal point key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_DELETE
Enumeration for the delete key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_DIVIDE
Enumeration for the divide key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_DOWN_ARROW
Enumeration for the down arrow key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_E
Enumeration for the e key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_END
Enumeration for the end key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_ENTER
Enumeration for the enter key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_EQUAL_SIGN
Enumeration for the equal sign key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_ESCAPE
Enumeration for the escape key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F
Enumeration for the f key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F1
Enumeration for the f1 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F10
Enumeration for the f10 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F11
Enumeration for the f11 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F12
Enumeration for the f12 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F2
Enumeration for the f2 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F3
Enumeration for the f3 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F4
Enumeration for the f4 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F5
Enumeration for the f5 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F6
Enumeration for the f6 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F7
Enumeration for the f7 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F8
Enumeration for the f8 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_F9
Enumeration for the f9 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_FORWARD_SLASH
Enumeration for the forward slash key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_G
Enumeration for the g key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_GRAVE_ACCENT
Enumeration for the grave accent key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_H
Enumeration for the h key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_HOME
Enumeration for the home key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_I
Enumeration for the i key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_INSERT
Enumeration for the insert key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_J
Enumeration for the j key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_K
Enumeration for the k key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_L
Enumeration for the l key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_LEFT_ARROW
Enumeration for the left arrow key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_LEFT_WINDOW_KEY
Enumeration for the left window key key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_M
Enumeration for the m key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_MULTIPLY
Enumeration for the multiply key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_N
Enumeration for the n key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUM_LOCK
Enumeration for the num lock key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_0
Enumeration for the numpad 0 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_1
Enumeration for the numpad 1 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_2
Enumeration for the numpad 2 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_3
Enumeration for the numpad 3 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_4
Enumeration for the numpad 4 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_5
Enumeration for the numpad 5 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_6
Enumeration for the numpad 6 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_7
Enumeration for the numpad 7 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_8
Enumeration for the numpad 8 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_NUMPAD_9
Enumeration for the numpad 9 key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_O
Enumeration for the o key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_OPEN_BRACKET
Enumeration for the open bracket key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_P
Enumeration for the p key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_PAGE_DOWN
Enumeration for the page down key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_PAGE_UP
Enumeration for the page up key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_PAUSE_BREAK
Enumeration for the pause/break key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_PERIOD
Enumeration for the period key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_Q
Enumeration for the q key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_R
Enumeration for the r key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_RIGHT_ARROW
Enumeration for the right arrow key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_RIGHT_WINDOW_KEY
Enumeration for the right window key key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_S
Enumeration for the s key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SCROLL_LOCK
Enumeration for the scroll lock key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SELECT_KEY
Enumeration for the select key key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SEMI_COLON
Enumeration for the semi-colon key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SHIFT
Enumeration for the shift key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SINGLE_QUOTE
Enumeration for the single quote key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SPACE
Enumeration for the space key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_SUBTRACT
Enumeration for the subtract key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_T
Enumeration for the t key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_TAB
Enumeration for the tab key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_U
Enumeration for the u key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_UP_ARROW
Enumeration for the up arrow key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_V
Enumeration for the v key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_W
Enumeration for the w key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_X
Enumeration for the x key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_Y
Enumeration for the y key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.KI_Z
Enumeration for the z key
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.L_DIR
Enumeration for an directional light source
Defined in: glge_light.js.
Defined in: glge_light.js.
<static> <constant>
GLGE.L_OFF
Enumeration a light that is disabled
Defined in: glge_light.js.
Defined in: glge_light.js.
<static> <constant>
GLGE.L_POINT
Enumeration for an point light source
Defined in: glge_light.js.
Defined in: glge_light.js.
<static> <constant>
GLGE.L_SPOT
Enumeration for an spot light source
Defined in: glge_light.js.
Defined in: glge_light.js.
<static> <constant>
GLGE.LOCAL
Enumeration for local refrance frame
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.M_ALPHA
Flag for material alpha
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_AMBIENT
Flag for ambient mapping
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_COLOR
Flag for material colour
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_EMIT
Flag for material emision
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_HEIGHT
Flag for mapping of the height in parallax mapping
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_MSKA
Flag for masking with textures alpha value
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_MSKB
Flag for masking with textures blue value
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_MSKG
Flag for masking with textures green value
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_MSKR
Flag for masking with textures red value
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_NOR
Flag for material normal
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_REFLECT
Flag for material reflectivity
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_SHINE
Flag for material shineiness
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_SPECCOLOR
Flag for material specular color
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_SPECULAR
Flag for material specular cvalue
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.M_STEEP
Flag for Steep parallax mapng
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_ENV
Enumeration for environment coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_NORM
Enumeration for normal texture coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_OBJ
Enumeration for object texture coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_POINT
Enumeration for point coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_REF
Enumeration for reflection coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.MAP_VIEW
Enumeration for view coords
Defined in: glge_material.js.
Defined in: glge_material.js.
<static>
GLGE.Mat3
The Mat class creates a matrix from an array
<static> <constant>
GLGE.MI_LEFT
Enumeration for the left mouse button
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.MI_MIDDLE
Enumeration for the middle mouse button
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.MI_RIGHT
Enumeration for the right mouse button
Defined in: glge_input.js.
Defined in: glge_input.js.
<static> <constant>
GLGE.NEG_XAXIS
Enumeration for -X-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.NEG_YAXIS
Enumeration for -Y-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.NEG_ZAXIS
Enumeration for -Z-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.NONE
Enumeration for no value
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.P_EULER
Enumeration for euler rotaions mode
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.P_MATRIX
Enumeration for matrix rotation mode
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.P_QUAT
Enumeration for quaternions mode
Defined in: glge.js.
Defined in: glge.js.
<static>
GLGE.PHYSICS_ALL
Enumeration for copy of rotation and location
Defined in: glge_physicsabstract.js.
Defined in: glge_physicsabstract.js.
<static>
GLGE.PHYSICS_LOC
Enumeration for copy of location
Defined in: glge_physicsabstract.js.
Defined in: glge_physicsabstract.js.
<static> <constant>
GLGE.POS_XAXIS
Enumeration for +X-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.POS_YAXIS
Enumeration for +Y-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.POS_ZAXIS
Enumeration for +Z-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_DEFAULT
Enumeration for rendering using default shader
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_DEPTH
Enumeration for depth rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_EMIT
Enumeration for emit rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_NORMAL
Enumeration for rendering using normal shader
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_NULL
Enumeration for no rendering
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_PICK
Enumeration for rendering using pick shader
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.RENDER_SHADOW
Enumeration for rendering using shadow shader
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.ROT_XYZ
Enum for XYZ rotation order
<static> <constant>
GLGE.ROT_XZY
Enum for XZY rotation order
<static> <constant>
GLGE.ROT_YXZ
Enum for YXZ rotation order
<static> <constant>
GLGE.ROT_YZX
Enum for YZX rotation order
<static> <constant>
GLGE.ROT_ZXY
Enum for ZXY rotation order
<static> <constant>
GLGE.ROT_ZYX
Enum for ZYX rotation order
<static> <constant>
GLGE.TEXT_BOXPICK
Enumeration for box bound text picking
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.TEXT_TEXTPICK
Enumeration for text bound text picking
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.TRUE
Enumeration for TRUE
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.UV1
Enumeration for first UV layer
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.UV2
Enumeration for second UV layer
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.VC_AMB
Enumeration for vertex color sets ambient lighting
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.VC_AMBMUL
Enumeration for vertex color multiplied by ambient lighting
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.VC_BASE
Enumeration for base vertex color mode
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.VC_MUL
Enumeration for muliply vertex color mode
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.VC_NONE
Enumeration for no use of vertex color
Defined in: glge_material.js.
Defined in: glge_material.js.
<static> <constant>
GLGE.XAXIS
Enumeration for X-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.YAXIS
Enumeration for Y-Axis
Defined in: glge.js.
Defined in: glge.js.
<static> <constant>
GLGE.ZAXIS
Enumeration for Z-Axis
Defined in: glge.js.
Defined in: glge.js.
Method Detail
<static>
{GLGE.Mat}
GLGE.addInPlaceMat4(m, value)
adds a Mat4 to another Mat4 in place without allocation
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} the first input matrix, modified to be added
<static>
{GLGE.Mat}
GLGE.addMat4(m, value)
adds two Mat4 together
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} a new, added Mat4
<static>
GLGE.addVec3(a, b)
Adds a GLGE.Vec3 to this GLGE.Vec3
- Parameters:
- {Array} a
- The first value to add
- {Array} b
- The second value to add
<static>
GLGE.addVec4(a, b)
Adds a GLGE.Vec4 to this Vec4
- Parameters:
- {Array} a
- The first value to add * @param {Array} b The second value to add
- b
<static>
GLGE.angleAxis(angle, axis)
- Parameters:
- angle
- axis
<static>
GLGE.angleVec3(a, b)
Returns the angle between 2 vector3s in radians
- Parameters:
- {Array} a
- the first vector
- {Array} b
- the second vector
<static>
GLGE.angleVec4(a, b)
Returns the angle between 2 vector4s in radians
- Parameters:
- {Array} a
- the first vector
- {Array} b
- the second vector
<static>
GLGE.augment(obj1, obj2)
Function to augment one object with another
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- {object} obj1
- Source Object
- {object} obj2
- Destination Object
<static>
GLGE.BoundingVolume(minX, maxX, minY, maxY, minZ, maxZ)
- Parameters:
- minX
- maxX
- minY
- maxY
- minZ
- maxZ
<static>
GLGE.cameraViewProjectionToPlanes(cvp)
- Parameters:
- cvp
<static>
GLGE.colorParse(color)
function to parse a colour input into RGB eg #ff00ff, red, rgb(100,100,100)
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- {string} color
- the color to parse
<static>
GLGE.crossVec3(a, b)
Gets the cross product between this and the input vector
- Parameters:
- {Array} a
- the first value to dot
- {Array} b
- the second value to dot
<static>
{number}
GLGE.determinantMat4(m)
Finds the determinate of the matrix
- Parameters:
- m
- Returns:
- {number} the determinate
<static>
GLGE.distanceVec3(a, b)
Returns the distance between 2 vector3s
- Parameters:
- {Array} a
- the first vector
- {Array} b
- the second vector
<static>
GLGE.distanceVec4(a, b)
Returns the distance between 2 vector4s
- Parameters:
- {Array} a
- the first vector
- {Array} b
- the second vector
<static>
GLGE.dotVec3(a, b)
Gets the dot product between this and the input vector
- Parameters:
- {Array} a
- the first value to dot
- {Array} b
- the second value to dot
<static>
GLGE.dotVec4(a, b)
Gets the dot product between this and the input vector
- Parameters:
- {Array} a
- the first value to dot
- {Array} b
- the second value to dot
<static>
GLGE.error(error)
Defined in: glge.js.
- Parameters:
- error
<static>
GLGE.Filter2d(uid)
Defined in: glge_filter2d.js.
- Parameters:
- uid
<static>
{number}
GLGE.get1basedMat4(i, j, j)
Gets the value at the specified index
- Parameters:
- {number} i
- the first index from one
- {number} j
- the second index from one
- j
- Returns:
- {number} the value at the given index
<static>
GLGE.get1basedVec3(v, i)
Gets the nth element (1 indexed) from the array
- Parameters:
- {Array} v
- A vector with 3 elements
- {number} i
- The index from one
<static>
GLGE.get1basedVec4(v, i)
Gets the nth element (1 indexed) from the array
- Parameters:
- {Array} v
- A vector with 4 elements
- {number} i
- The index from one
<static>
GLGE.getDirLightProjection(cvp, light, projectedDistance, distance)
- Parameters:
- cvp
- light
- projectedDistance
- distance
<static>
{number}
GLGE.getMat4(i, j, j)
Gets the value at the specified index
- Parameters:
- {number} i
- the first index from zero
- {number} j
- the second index from zero
- j
- Returns:
- {number} the value at the given index
<static>
GLGE.getVec3(v, i)
Gets the nth element (1 indexed) from the array
- Parameters:
- {Array} v
- A vector with 3 elements
- {number} i
- The index from one
<static>
GLGE.getVec4(v, i)
Gets the nth element (1 indexed) from the array
- Parameters:
- {Array} v
- A vector with 4 elements
- {number} i
- The index from one
<static>
{GLGE.Mat}
GLGE.identMatrix()
Creates an identity matrix
- Returns:
- {GLGE.Mat} the identity matrix
<static>
{GLGE.Mat}
GLGE.inverseMat4(mat)
Finds the inverse of the matrix
- Parameters:
- mat
- Returns:
- {GLGE.Mat} the inverse
<static>
GLGE.lengthVec3(a)
Returns the length of a vector3
- Parameters:
- {Array} a
- the vector to be measured
<static>
GLGE.lengthVec4(a, b)
Returns the length of a vector3
- Parameters:
- {Array} a
- the vector to be measured
- b
<static>
GLGE.LINEAR_BLEND(value)
Linear blending function
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- value
<static>
GLGE.makeFrustum(left, right, bottom, top, near, far)
- Parameters:
- left
- right
- bottom
- top
- near
- far
<static>
GLGE.makeGlobal()
Moves all GLGE function to global
Defined in: glge.js.
Defined in: glge.js.
<static>
GLGE.makeOrtho(left, right, bottom, top, near, far)
- Parameters:
- left
- right
- bottom
- top
- near
- far
<static>
GLGE.makePerspective(fovy, aspect, near, far)
- Parameters:
- fovy
- aspect
- near
- far
<static>
GLGE.makePerspectiveX(fovx, aspect, near, far)
- Parameters:
- fovx
- aspect
- near
- far
<static>
GLGE.Mat4(array)
- Parameters:
- array
<static>
GLGE.mat4FromQuat(quaternion)
- Parameters:
- quaternion
<static>
GLGE.mat4gl(mat, glarray)
copys a js array into a webglarray
- Parameters:
- {array} mat
- the source array
- {webglarray} glarray
- the destination array
<static>
GLGE.matrix2Scale(m)
- Parameters:
- m
<static>
GLGE.matrix4(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16)
- Parameters:
- a1
- a2
- a3
- a4
- a5
- a6
- a7
- a8
- a9
- a10
- a11
- a12
- a13
- a14
- a15
- a16
<static>
{GLGE.Mat|GLGE.Vec}
GLGE.mulMat4(value, mat1)
Finds the matrix multiplication with another GLGE.Mat or GLGE.vec or an Array of length 3-4
- Parameters:
- {object} value
- An GLGE.Mat, GLGE.vec or Array
- mat1
- Returns:
- {GLGE.Mat|GLGE.Vec}
<static>
{GLGE.Mat}
GLGE.mulMat4Vec3(mat1, vec2)
multiplies two mat4's
- Parameters:
- mat1
- vec2
- Returns:
- {GLGE.Mat} the matrix multiplication of the matrices
<static>
{GLGE.Mat}
GLGE.mulMat4Vec4(mat1, vec2)
multiplies two mat4's
- Parameters:
- mat1
- vec2
- Returns:
- {GLGE.Mat} the matrix multiplication of the matrices
<static>
GLGE.mulQuat(quaternion1, quaternion2)
- Parameters:
- quaternion1
- quaternion2
<static>
GLGE.New(createclass)
Defined in: glge.js.
- Parameters:
- createclass
<static>
GLGE.pointsInFrustumPlanes(points, planes)
- Parameters:
- points
- planes
<static>
GLGE.QUAD_BLEND(value)
Quadratic blending function
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- value
<static>
GLGE.quatFromAxisAngle(axis, angle)
- Parameters:
- axis
- angle
<static>
GLGE.quatRotation(qx, qy, qz, qw)
- Parameters:
- qx
- qy
- qz
- qw
<static>
GLGE.rayIntersectPlane(origin, dir, plane)
- Parameters:
- origin
- dir
- plane
<static>
GLGE.rayToPlane(origin, dir)
- Parameters:
- origin
- dir
<static>
GLGE.reuseMatrix4(mat4)
- Parameters:
- mat4
<static>
{Array, GLGE.Mat}
GLGE.rotateMatrix(value, type)
Creates a rotation matrix
- Parameters:
- value
- type
- Returns:
- {Array} value an array GLGE.Vec or 3 paramters
- {GLGE.Mat} the rotation matrix
<static>
GLGE.rotationMatrix2Quat(m)
- Parameters:
- m
<static>
{GLGE.Mat}
GLGE.scaleInPlaceMat4(m, value)
multiplies a Mat4 by a scalar value in place without allocation
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} the input matrix, modified
<static>
{GLGE.Mat}
GLGE.scaleMat4(m, value)
multiplies a Mat4 by a scalar value
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} the matrix multiplication of the matrices
<static>
{Array, GLGE.Mat}
GLGE.scaleMatrix(value)
Creates a scale matrix
- Parameters:
- value
- Returns:
- {Array} value an array GLGE.Vec or 3 paramters
- {GLGE.Mat} the scale matrix
<static>
GLGE.scaleVec3(a, b)
Gets the dot product between this and the input vector
- Parameters:
- {Array} a
- the vector to scale
- {Number} b
- the scalar
<static>
GLGE.scaleVec4(a, b)
Gets the dot product between this and the input vector
- Parameters:
- {Array} a
- the vector to scale
- {Number} b
- the scalar
<static>
GLGE.screenToDirection(x, y, width, height, proj)
- Parameters:
- x
- y
- width
- height
- proj
<static>
GLGE.set1basedMat4(i, j, value, value)
Sets the value at the specified index
- Parameters:
- {number} i
- the first index 1 offset
- {number} j
- the second index 1 offset
- {number} value
- the value to set
- value
<static>
GLGE.setMat4(i, j, value, value)
Sets the value at the specified index
- Parameters:
- {number} i
- the first index from zero
- {number} j
- the second index from zero
- {number} value
- the value to set
- value
<static>
GLGE.setUniform(gl, type, location, value)
functions to set uniforms with location check.
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- gl
- type
- location
- value
<static>
GLGE.setUniform2(gl, type, location, value1, value2)
Defined in: glge.js.
- Parameters:
- gl
- type
- location
- value1
- value2
<static>
GLGE.setUniform3(gl, type, location, value1, value2, value3)
Defined in: glge.js.
- Parameters:
- gl
- type
- location
- value1
- value2
- value3
<static>
GLGE.setUniform4(gl, type, location, value1, value2, value3, value4)
Defined in: glge.js.
- Parameters:
- gl
- type
- location
- value1
- value2
- value3
- value4
<static>
GLGE.setUniformMatrix(gl, type, location, transpose, value)
Defined in: glge.js.
- Parameters:
- gl
- type
- location
- transpose
- value
<static>
GLGE.SPECIAL_BLEND(value)
Special blending function
Defined in: glge.js.
Defined in: glge.js.
- Parameters:
- value
<static>
GLGE.sphereInFrustumPlanes(sphere, planes)
- Parameters:
- sphere
- planes
<static>
{GLGE.Mat}
GLGE.subInPlaceMat4(m, value)
subs a Mat4 from another Mat4 in place without allocation
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} the first input matrix, modified to have the second subtacted
<static>
{GLGE.Mat}
GLGE.subMat4(m, value)
subtracts the second matrix from the first
- Parameters:
- m
- value
- Returns:
- {GLGE.Mat} a new, subed Mat4
<static>
GLGE.subVec3(a, b)
Adds a GLGE.Vec3 to this GLGE.Vec3
- Parameters:
- {Array} a
- The first value
- {Array} b
- The second value to subtract from the first
<static>
GLGE.subVec4(a, b)
Adds a GLGE.Vec4 to this Vec4
- Parameters:
- {Array} a
- The first value * @param {Array} b The second value to subtract from the first
- b
<static>
GLGE.toUnitVec3(a)
Returns a unitized version of the input vector3
- Parameters:
- {Array} a
- the vector3 to be unitized
<static>
GLGE.toUnitVec4(a)
Returns a unitized version of the input vector4
- Parameters:
- {Array} a
- the vector4 to be unitized
<static>
{Array, GLGE.Mat}
GLGE.translateMatrix(value)
Creates a translation matrix
- Parameters:
- value
- Returns:
- {Array} value an array GLGE.Vec or 3 paramters
- {GLGE.Mat} the translation matrix
<static>
GLGE.transposeInPlaceMat4(m)
- Parameters:
- m
<static>
{GLGE.Mat}
GLGE.transposeMat4(m)
Builds the transpose of the matrix
- Parameters:
- m
- Returns:
- {GLGE.Mat} the transposed matrix
<static>
GLGE.Vec(array)
- Parameters:
- array
<static>
GLGE.Vec3(array, y, z)
The Vec3 Class creates a vector
- Parameters:
- {Array} array
- An array of 3 floats
- y
- z
<static>
GLGE.Vec4(array, y, z, w)
The Vec4 Class creates a vector
- Parameters:
- {Array} array
- An array of 4 floats
- y
- z
- w
<static>
GLGE.warning(warning)
Defined in: glge.js.
- Parameters:
- warning
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)