blob: afff0e3e72b322f669ee3b4261e7934cdffaa944 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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(VertexLoader* loader);
void LOADERDECL Update(VertexLoader* loader);
void Prepare(const VAT & vat, int primitive, const TVtxDesc & vtxDesc, const PortableVertexDeclaration & vtxDecl);
// Save state
void DoState(PointerWrap &p);
}; // end of namespace BoundingBox
|