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