Namespace: SQR

SQR

The global engine namespace. Everything in SQR belongs to this namespace.
Source:

Classes

Animation
Bezier
Buffer
CanvasRenderer
Clip
Collider
Color
Context
ConvexHull
Cubemap
Delaunay
Face
FrameBuffer
Gyro
Matrix2D
Matrix33
Matrix44
PerlinNoise
PerlinTexture
ProjectionMatrix
Quaternion
Ray
Renderer
Shader
Spline
SpriteSheet
Texture
TextureGenerator
Trackball
Transform
Transform2d
Triangle
V2
V3
VRApp
VRPost

Namespaces

GeometryTools
GLSL
Interpolation
Intersection
Loader
Mesh
Primitives
SceneParser

Members

(static) EPSILON

Properties:
Name Type Description
EPSILON a very small number, used to prevent rounding errors
Source:

(static) flipMatrix

Setting this value to true will use the old matrix calculation. Best to keep it false, but for now it's true by default for backwards compatibility.
Source:

(static) fullScreenQuad

Properties:
Name Type Description
fullScreenQuad placeholder that holds a fullscreen geometry for post effects. Lazily created in PostEffect.js Typically not set manually.
Source:

(static) gl

Properties:
Name Type Description
gl Placeholder that holds current gl context. This is set in SQR.Context.create(), but can be modified manually too
Source:

(static) HALFPI

Properties:
Name Type Description
TWOPI shorthand for `Math.PI * 0.5`
Source:

(static) shaderPath

Properties:
Name Type Description
shaderPath a path relative to the main HTML file where the src/glsl folder is located. Only necessary to if builtin shader code is loaded (using ~ paths).
Default Value:
  • .
Source:

(static) TWOPI

Properties:
Name Type Description
TWOPI shorthand for `Math.PI * 2`
Source:

(static) Version

Properties:
Name Type Description
Version autogenerated with build script, holds current verison info
Source: