Mesa-2.6 Triangle Code
Two primary files:
- src/triangle.c, src/tritemp.h
triangle.c contains general triangle procedures:
- flat_rgba_triangle (flat shaded RGBA triangle)
- smooth_rgba_triangle (gouraud shaded RGBA triangle)
- simple_textured_triangle (simple texture mapping, no mip-mapping, no perspective correction)
- many others….
Triangle functions use a general C macro contained in tritemp.h
- Each triangle function define some SETUP and INNER LOOP code which is used with ‘tritemp.h’.