summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Clipper.h
blob: 0e8fead073528a554883cb0c0b9c6d7e33ff1af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

struct OutputVertexData;

namespace Clipper
{
	void Init();

	void ProcessTriangle(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2);

	void ProcessLine(OutputVertexData *v0, OutputVertexData *v1);

	bool CullTest(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2, bool &backface);

	void PerspectiveDivide(OutputVertexData *vertex);
}