2014-09-14 10:52:51 -06:00
|
|
|
// 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];
|
|
|
|
|
2014-12-13 02:57:46 -07:00
|
|
|
void LOADERDECL SetVertexBufferPosition(VertexLoader* loader);
|
|
|
|
void LOADERDECL Update(VertexLoader* loader);
|
2014-09-14 10:52:51 -06:00
|
|
|
void Prepare(const VAT & vat, int primitive, const TVtxDesc & vtxDesc, const PortableVertexDeclaration & vtxDecl);
|
|
|
|
|
|
|
|
// Save state
|
|
|
|
void DoState(PointerWrap &p);
|
|
|
|
|
|
|
|
}; // end of namespace BoundingBox
|