2013-04-17 21:29:41 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// 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;
|
|
|
|
class PointerWrap;
|
2010-07-06 10:16:07 -06:00
|
|
|
|
|
|
|
namespace Clipper
|
|
|
|
{
|
2013-04-13 21:54:02 -06:00
|
|
|
void Init();
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2013-04-13 21:54:02 -06:00
|
|
|
void SetViewOffset();
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2013-04-13 21:54:02 -06:00
|
|
|
void ProcessTriangle(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2);
|
2010-07-06 10:16:07 -06:00
|
|
|
|
|
|
|
void ProcessLine(OutputVertexData *v0, OutputVertexData *v1);
|
|
|
|
|
2013-04-13 21:54:02 -06:00
|
|
|
bool CullTest(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2, bool &backface);
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2013-04-13 21:54:02 -06:00
|
|
|
void PerspectiveDivide(OutputVertexData *vertex);
|
2013-02-25 21:49:24 -07:00
|
|
|
|
|
|
|
void DoState(PointerWrap &p);
|
2010-07-06 10:16:07 -06:00
|
|
|
}
|