summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BoundingBox.h
diff options
context:
space:
mode:
authorcrudelios <crudelios@gmail.com>2014-09-14 17:52:51 +0100
committercrudelios <crudelios@gmail.com>2014-10-10 12:27:06 +0100
commit2d4b7e3f3f67f48ec2fb3d8eb8b2af3b70e4afcc (patch)
treef81d5e738022be0234af2033badc51adef39ba49 /Source/Core/VideoCommon/BoundingBox.h
parentb7aed97508ba74116858a111030bbd5783a633cb (diff)
Reimplement Bounding Box calculation using the software renderer.
Diffstat (limited to 'Source/Core/VideoCommon/BoundingBox.h')
-rw-r--r--Source/Core/VideoCommon/BoundingBox.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BoundingBox.h b/Source/Core/VideoCommon/BoundingBox.h
new file mode 100644
index 0000000000..d6952b184e
--- /dev/null
+++ b/Source/Core/VideoCommon/BoundingBox.h
@@ -0,0 +1,41 @@
+// Copyright 2014 Dolphin Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "VideoCommon/VertexLoader.h"
+
+// Bounding Box manager
+
+namespace BoundingBox
+{
+
+// Determines if bounding box is active
+extern bool active;
+
+// Bounding box current coordinates
+extern u16 coords[4];
+
+enum
+{
+ LEFT = 0,
+ RIGHT = 1,
+ TOP = 2,
+ BOTTOM = 3
+};
+
+// Current position matrix index
+extern u8 posMtxIdx;
+
+// Texture matrix indexes
+extern u8 texMtxIdx[8];
+
+void LOADERDECL SetVertexBufferPosition();
+void LOADERDECL Update();
+void Prepare(const VAT & vat, int primitive, const TVtxDesc & vtxDesc, const PortableVertexDeclaration & vtxDecl);
+
+// Save state
+void DoState(PointerWrap &p);
+
+}; // end of namespace BoundingBox