Fonts Rendering § GLUT supports two type of font rendering. § Stroke fonts: each character is rendered as a set of line segments, a geometrical thing can be scaled or translated, rendered; it requires a 3D environment set up. § Bitmap fonts: each character is a bitmap generated. Rendered as bitmaps, but faster. § Examples of Fonts supported by bitmap: GLUT_BITMAP_8_BY_13 GLUT_BITMAP_TIMES_ROMAN_10 § Examples of Fonts supported by stroke GLUT_STROKE_ROMAN GLUT_STROKE_MONO_ROMAN
v 0.0 2.0 0.0 v 0.0 -2.0 0.0 v -1.0 0.0 -1.0 v 1.0 0.0 -1.0 v 1.0 0.0 1.0 v -1.0 0.0 1.0 f 1 4 3 f 1 3 6 f 1 6 5 f 1 5 4 f 2 3 4 f 2 6 3 f 2 5 6 f 2 4 5 OBJ
Mesh Orientation Ability to distinguish ‘front’ and ‘back’ faces § Efficient rendering § Many rendering effects treat front and back faces separately Vertex order § Counterclockwise or clockwise § Adjacent triangles should be correctly oriented