maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
Retro3D Polygons

Functions for drawing polygons inside of the current scene. More...

Collaboration diagram for Retro3D Polygons:

Functions

void retro3d_vx (mfix_t x, mfix_t y, mfix_t z, mfix_t s, mfix_t t)
 Create a vertex at the designated location. Must be called inside of retro3d_tri_begin() and retro3d_tri_end().
 
void retro3d_tri_begin (RETROFLAT_COLOR color, uint8_t flags)
 Begins drawing a polygon/triangle using predefined Maug_retroflt_color. Follow with three calls to retro3d_vx() and a call to retro3d_tri_end().
 
void retro3d_tri_begin_rgb (float r, float g, float b, uint8_t flags)
 Begins drawing a polygon/triangle with the given custom RGB color. Follow with three calls to retro3d_vx() and a call to retro3d_tri_end().
 
void retro3d_tri_end ()
 Complete a triangle opened with retro3d_tri_begin(). This MUST be called after drawing three vertices.
 

Detailed Description

Functions for drawing polygons inside of the current scene.