#include <pol2d.h>
Inheritance diagram for csPolygon2D:
Public Methods | |
void | AddPerspective (const csVector3 &v) |
Compute the perspective transformation of a 3D vertex and add it to the polygon. | |
void | AddPerspectiveUnit (const csVector3 &v) |
Compute the perspective transformation of a 3D vertex and add it to the polygon. More... | |
void | AddPerspectiveAspect (const csVector3 &v, float ratio, float shift) |
Compute the perspective transformation of a 3D vertex and add it to the polygon. More... | |
void | Draw (iGraphics2D *g2d, int col) |
Draw the polygon (wireframe version). | |
void | DrawFilled (iRenderView *rview, csPolygon3D *poly, csPolyPlane *plane, csZBufMode zbufMode=CS_ZBUF_FILL) |
Draw a texture mapped polygon. More... | |
void | FillZBuf (iRenderView *rview, csPolygon3D *poly, csPolyPlane *plane) |
Z fill the Z buffer for this polygon. More... | |
void | AddFogPolygon (iGraphics3D *g3d, csPolygon3D *poly, csPolyPlane *plane, bool mirror, CS_ID id, int fog_type) |
Add this polygon as a back or front polygon of a fog object. More... |
p>
This class is used as the main driver for the engine pipeline. The source Polygon is first converted to 2D using csPolygon3D::DoPerspective.
|
Add this polygon as a back or front polygon of a fog object. NOTE! Don't forget to open the fog object first with g3d->OpenFogObject (); |
|
Compute the perspective transformation of a 3D vertex and add it to the polygon. This version computes perspective correction for a given aspect ratio and given shift value. |
|
Compute the perspective transformation of a 3D vertex and add it to the polygon. This version computes unit perspective correction for which aspect ratio is one and shift_x and shift_y are zero. |
|
Draw a texture mapped polygon. 'plane' should be a correctly transformed plane (transformed to camera space). 'poly' is only used for debugging. The plane and vertices are not used. |
|
Z fill the Z buffer for this polygon. Nothing else is rendered. |