package tiny_libs

  1. Overview
  2. Docs
From-scratch libraries for teaching: graphics, audio, compression, crypto, networking and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_libs.graphics_3d/Render/index.html

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