module Primitives:Some basic shapes for the scene graph.sig..end
type vertex = {
|
vertex : |
|
normal : |
|
tex : |
val make_quad : texture:GlTex.texture_id ->
vertex * vertex * vertex * vertex ->
Scene.scene_node
draw_scene for quad does not modify the transformation matrix.
This means you can call draw_scene on several quads without
using GlMat.push and GlMat.pop.
val make_square : texture:GlTex.texture_id -> float -> Scene.scene_node
draw_scene does not modify the transformation matrix.
val make_cube : texture:GlTex.texture_id ->
width:float -> height:float -> depth:float -> Scene.scene_node
draw_scene does modify the transformation matrix.