Module RenderSource

Sourcetype paint =
  1. | Color of int
  2. | Texture of Texture.image
Sourcetype face = {
  1. paint : paint;
  2. points : (Vec3.t * (float * float) * Vec3.t) list;
  3. material : Material.t;
}
Sourcetype visibility =
  1. | Z_buffer
  2. | Painters_algorithm
Sourcetype options = {
  1. shading : Shading.mode;
  2. interpolation : Interpolate.mode;
  3. visibility : visibility;
  4. wireframe : bool;
  5. backface_culling : bool;
  6. bilinear : bool;
  7. clipping : bool;
  8. fill_rule : Triangle.fill_rule;
}
Sourceval default_options : options
Sourceval render : ?options:options -> Framebuffer.t -> Zbuffer.t -> Camera.t -> face list -> unit