Crate gl_lib

Source
Expand description

A libaray that aim to make use of opengl eaiser to start with, or add to project where graphics is not the main focus. While still allowing all the low level access needed for performance and customizability.

§Examples

See examples

Re-exports§

pub use nalgebra as na;

Modules§

buffer
camera
gl
objects
General object useful when need for generic and often used thing. This is stuff like triangles, squares, cubes.
shader
text_rendering
Text rendering using Signed distance field fonts. https://blog.mapbox.com/drawing-text-with-signed-distance-fields-in-mapbox-gl-b0933af6f817
texture
Functions to generat and set textures

Structs§

ScreenBox
Defines box on the screen starting at x,y width width and height Defeault to the whole screen. Staring at (0,0) with height going downwards With height of 1 being whole screen and width of 1 being whole screen
ScreenCoords
Defines point in ScreenBox x,y in [0.0; 1.0] Top left corner is x=0, y=0