Library
The library offers a number of commonly used functions. To use them, include the library file using:
#include <library_file>
The available library files are:
- affine_transform – coordinate transformations and projections
- bezier – Bézier curve sampling
- bicubic – bicubic texture sampling
- billboard – billboard mesh
- blending – image blending functions
- camera_view – interactive camera view transformation
- complex – complex number arithmetics
- crop – image cropping
- cross2 – 2D vector cross product
- cube – cube mesh
- debug – debugging utilities
- dither – dithering
- event_utils – event handler utilities
- heightmap – height map mesh
- hsv – HSV color model conversion
- icosahedron – regular icosahedron mesh
- icosphere – icosphere mesh
- lighting – Phong lighting model
- linearstep – linear equivalent of smoothstep
- math_constants – several mathematical constants
- median – median of three values
- multisample – shader multisampling
- perlin – Perlin noise
- quaternion – quaternion arithmetics and rotation
- rng – pseudo-random number generator
- shapes – a collection of basic 2D shapes
- sphere – sphere mesh
- sqr – square of x
- srgb – sRGB color conversion
- worley – Worley noise