2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:29:41 -06:00
|
|
|
// Refer to the license.txt file included.
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2014-07-29 18:55:07 -06:00
|
|
|
struct OutputVertexData;
|
2010-07-06 10:16:07 -06:00
|
|
|
|
|
|
|
namespace Clipper
|
|
|
|
{
|
2016-06-24 02:43:46 -06:00
|
|
|
void Init();
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void ProcessTriangle(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2);
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void ProcessLine(OutputVertexData* v0, OutputVertexData* v1);
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2016-09-22 18:51:21 -06:00
|
|
|
bool CullTest(const OutputVertexData* v0, const OutputVertexData* v1, const OutputVertexData* v2,
|
|
|
|
bool& backface);
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void PerspectiveDivide(OutputVertexData* vertex);
|
2010-07-06 10:16:07 -06:00
|
|
|
}
|