| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
struct OutputVertexData; |
| 7 |
|
| 8 |
namespace Clipper |
| 9 |
{ |
| 10 |
void Init(); |
| 11 |
|
| 12 |
void ProcessTriangle(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2); |
| 13 |
|
| 14 |
void ProcessLine(OutputVertexData* v0, OutputVertexData* v1); |
| 15 |
|
| 16 |
void ProcessPoint(OutputVertexData* v); |
| 17 |
|
| 18 |
bool IsTriviallyRejected(const OutputVertexData* v0, const OutputVertexData* v1, |
| 19 |
const OutputVertexData* v2); |
| 20 |
|
| 21 |
bool IsBackface(const OutputVertexData* v0, const OutputVertexData* v1, const OutputVertexData* v2); |
| 22 |
|
| 23 |
void PerspectiveDivide(OutputVertexData* vertex); |
| 24 |
} |