2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2010-07-06 18:16:07 +02:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2010-07-06 18:16:07 +02:00
|
|
|
|
2014-07-30 02:55:07 +02:00
|
|
|
struct OutputVertexData;
|
2010-07-06 18:16:07 +02:00
|
|
|
|
|
|
|
namespace Clipper
|
|
|
|
{
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
void ProcessTriangle(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2);
|
|
|
|
|
|
|
|
void ProcessLine(OutputVertexData* v0, OutputVertexData* v1);
|
|
|
|
|
2020-12-23 00:00:40 +01:00
|
|
|
void ProcessPoint(OutputVertexData* v);
|
|
|
|
|
2021-11-30 02:51:02 +01:00
|
|
|
bool IsTriviallyRejected(const OutputVertexData* v0, const OutputVertexData* v1,
|
|
|
|
const OutputVertexData* v2);
|
|
|
|
|
|
|
|
bool IsBackface(const OutputVertexData* v0, const OutputVertexData* v1, const OutputVertexData* v2);
|
2010-07-06 18:16:07 +02:00
|
|
|
|
|
|
|
void PerspectiveDivide(OutputVertexData* vertex);
|
2019-05-06 01:48:12 +02:00
|
|
|
} // namespace Clipper
|