Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
BWRenderClass Class Reference

#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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BWRenderClass()

BWRenderClass::BWRenderClass ( unsigned char * buffer,
int scale )

Definition at line 88 of file bwrender.cpp.

◆ ~BWRenderClass()

BWRenderClass::~BWRenderClass ( )

Definition at line 94 of file bwrender.cpp.

Member Function Documentation

◆ Fill()

void BWRenderClass::Fill ( unsigned char c)

Definition at line 98 of file bwrender.cpp.

◆ Render_Triangle_Strip()

void BWRenderClass::Render_Triangle_Strip ( const unsigned long * indices,
int index_count )

Definition at line 132 of file bwrender.cpp.

◆ Render_Triangles()

void BWRenderClass::Render_Triangles ( const unsigned long * indices,
int index_count )

Definition at line 162 of file bwrender.cpp.

◆ Set_Vertex_Locations()

void BWRenderClass::Set_Vertex_Locations ( Vector2 * vertices,
int count )

Definition at line 104 of file bwrender.cpp.


The documentation for this class was generated from the following files: