mirror of
https://github.com/dolphin-emu/dolphin
synced 2024-11-21 21:04:05 -05:00
25 lines
668 B
C++
25 lines
668 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
struct OutputVertexData;
|
|
|
|
namespace Clipper
|
|
{
|
|
void Init();
|
|
|
|
void ProcessTriangle(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2);
|
|
|
|
void ProcessLine(OutputVertexData* v0, OutputVertexData* v1);
|
|
|
|
void ProcessPoint(OutputVertexData* v);
|
|
|
|
bool IsTriviallyRejected(const OutputVertexData* v0, const OutputVertexData* v1,
|
|
const OutputVertexData* v2);
|
|
|
|
bool IsBackface(const OutputVertexData* v0, const OutputVertexData* v1, const OutputVertexData* v2);
|
|
|
|
void PerspectiveDivide(OutputVertexData* vertex);
|
|
} // namespace Clipper
|