Home - encyclopedia-of-code/tiny-graphics-js GitHub Wiki

This wiki documents each of the class definitions included in tiny-graphics-js, organized by which file contains them.

This wiki is also for additional "lessons"---articles about general WebGL programming that will be referenced elsewhere.

Lessons:

Shaders (How GPUs work in general; Vertex Shaders; Fragment Shaders)

Components (section located in project readme)

Don't forget the overview information in the project README as well!

Code documentation:

This is where to find class and method descriptions, and any usage instructions.

Core library

Classes defined within file tiny-graphics.js

  • (Shape, Shader, Texture, Component)

Classes defined within file tiny-graphics-math.js

  • (Vector, Vector3, Vector4, Matrix, Mat4)
  • (Shorthand aliases: vec, vec3, vec4, unsafe3, unsafe4, color)

Classes defined within file tiny-graphics-gui.js

  • (Controls_Widget, Keyboard_Manager, Code_Manager, Code_Widget, Editor_Widget)

Examples

Classes defined within file common-shapes.js

  • (Triangle, Square, Tetrahedron, Windmill, Cube, Subdivision_Sphere, Grid_Patch, Surface_Of_Revolution, Regular_2D_Polygon, Cone_Tip, Torus, Grid_Sphere, Closed_Cone, Rounded_Closed_Cone, Capped_Cylinder, Rounded_Capped_Cylinder, Axis_Arrows, Minimal_Shape)

Classes defined within file common-components.js

  • (Minimal_Webgl_Demo, Movement_Controls)