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