API Reference

Classes

Name Description
Zia.BasicProgram

A basic rendering effect with support for lighting and a single texture.

Zia.Color4

Represents a 4-component color with red, green, blue and alpha components.

Zia.DirectionalLight

A directional light structure, used by several of the built-in Program classes.

Zia.EnvironmentMapProgram

A rendering effect with support for an environment map cube texture.

Zia.GraphicsDevice

Main class in Zia. Manages the WebGL rendering context and associated state, and performs rendering.

Zia.Matrix3

Represents a 3x3 matrix. The elements are stored in a Float32Array in column-major order to optimise handoff to WebGL.

Zia.Matrix4

Represents a 4x4 matrix. The elements are stored in a Float32Array in column-major order to optimise handoff to WebGL.

Zia.Program

Wrapper for a single WebGL Program object.

Zia.Quaternion

Represents a 4-dimensional vector which can be used for rotation.

Zia.Vector2

Represents a 2-dimensional vector.

Zia.Vector3

Represents a 3-dimensional vector.

Zia.Vector4

Represents a 4-dimensional vector.