2013-04-18 05:29:41 +02:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2010-07-06 18:16:07 +02:00
|
|
|
|
|
|
|
#ifndef _CLIPPER_H_
|
|
|
|
#define _CLIPPER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include "Common.h"
|
|
|
|
#include "NativeVertexFormat.h"
|
2013-02-26 05:49:24 +01:00
|
|
|
#include "ChunkFile.h"
|
2010-07-06 18:16:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
namespace Clipper
|
|
|
|
{
|
2013-04-14 05:54:02 +02:00
|
|
|
void Init();
|
2010-07-06 18:16:07 +02:00
|
|
|
|
2013-04-14 05:54:02 +02:00
|
|
|
void SetViewOffset();
|
2010-07-06 18:16:07 +02:00
|
|
|
|
2013-04-14 05:54:02 +02:00
|
|
|
void ProcessTriangle(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2);
|
2010-07-06 18:16:07 +02:00
|
|
|
|
|
|
|
void ProcessLine(OutputVertexData *v0, OutputVertexData *v1);
|
|
|
|
|
2013-04-14 05:54:02 +02:00
|
|
|
bool CullTest(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2, bool &backface);
|
2010-07-06 18:16:07 +02:00
|
|
|
|
2013-04-14 05:54:02 +02:00
|
|
|
void PerspectiveDivide(OutputVertexData *vertex);
|
2013-02-26 05:49:24 +01:00
|
|
|
|
|
|
|
void DoState(PointerWrap &p);
|
2010-07-06 18:16:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-15 23:26:39 +01:00
|
|
|
#endif
|