package wall

  1. Overview
  2. Docs

Module WallSource

Sourcemodule Color : sig ... end

Definition of colors, taken from Gg

Sourcemodule Transform : sig ... end

Definition of affine transformation matrices.

Wall drawing model

* * Drawing in wall is achieved by intersecting a simple, infinite image with a * shape. * * This image is described by a 'a Paint.t value and is simple by nature: * - a single color, * - a few different kinds of gradients, * - some user-defined pattern or textures, as determined by 'a. * * The 'a depends on the renderer and in practice it will be a * Wall_texture.t, an abstraction over OpenGL texture. * * The shapes are made from a Path.t that is filled or stroked. * The path is list of points that are connected by straight or curved (bezier) * lines. * When filled, the path is interpreted as the contour of a surface and the * resulting image is this surface. * When stroked, the path is interpreted as one or more lines: an Outline.t * that describe the style of line rendering (thickness, square or round ends, * etc) is used transform the abstract lines into a surface.

Sourcemodule Paint : sig ... end
Sourcemodule Outline : sig ... end
Sourcemodule Path : sig ... end
Sourcemodule Texture = Wall_texture
Sourcemodule Typesetter : sig ... end
Sourcemodule Image : sig ... end
Sourcemodule Performance_counter : sig ... end
Sourcemodule Renderer : sig ... end
Sourcetype color = Color.t
Sourcetype transform = Transform.t
Sourcetype outline = Outline.t
Sourcetype path = Path.t
Sourcetype texture = Texture.t
Sourcetype image = Image.t
Sourcetype renderer = Renderer.t
Sourcetype 'texture paint = 'texture Paint.t
Sourcetype 'input typesetter = 'input Typesetter.t
Sourceval pi : float
OCaml

Innovation. Community. Security.