#include <bwrender.h>
Public Member Functions | |
| BWRenderClass (unsigned char *buffer, int scale) | |
| ~BWRenderClass () | |
| void | Fill (unsigned char c) |
| void | Set_Vertex_Locations (Vector2 *vertices, int count) |
| void | Render_Triangles (const unsigned long *indices, int index_count) |
| void | Render_Triangle_Strip (const unsigned long *indices, int index_count) |
BWRenderClass This class implements a simple black-and-white triangle rasterizer which can be used to generate shadow textures. It is faster than a general purpose software renderer due to the fact that no z-buffering or sorting is needed and texturing isn't supported. (gth) 04/02/2001 - I'm going to add render-to-texture code to Renegade so this class may be obsolete.
Definition at line 61 of file bwrender.h.
| BWRenderClass::BWRenderClass | ( | unsigned char * | buffer, |
| int | scale ) |
Definition at line 88 of file bwrender.cpp.
| BWRenderClass::~BWRenderClass | ( | ) |
Definition at line 94 of file bwrender.cpp.
| void BWRenderClass::Fill | ( | unsigned char | c | ) |
Definition at line 98 of file bwrender.cpp.
| void BWRenderClass::Render_Triangle_Strip | ( | const unsigned long * | indices, |
| int | index_count ) |
Definition at line 132 of file bwrender.cpp.
| void BWRenderClass::Render_Triangles | ( | const unsigned long * | indices, |
| int | index_count ) |
Definition at line 162 of file bwrender.cpp.
| void BWRenderClass::Set_Vertex_Locations | ( | Vector2 * | vertices, |
| int | count ) |
Definition at line 104 of file bwrender.cpp.