mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoCommon/BoundingBox: Make interface for querying bounding box data
Rather than expose the bounding box members directly, we can instead provide an interface for code to use. This makes it nicer to transition from global data, as the interface function names are already in place.
This commit is contained in:
parent
15fc71cfcf
commit
9bd533ebe4
8 changed files with 92 additions and 36 deletions
|
@ -128,12 +128,12 @@ u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
|
|||
|
||||
u16 SWRenderer::BBoxRead(int index)
|
||||
{
|
||||
return BoundingBox::coords[index];
|
||||
return BoundingBox::GetCoordinate(static_cast<BoundingBox::Coordinate>(index));
|
||||
}
|
||||
|
||||
void SWRenderer::BBoxWrite(int index, u16 value)
|
||||
{
|
||||
BoundingBox::coords[index] = value;
|
||||
BoundingBox::SetCoordinate(static_cast<BoundingBox::Coordinate>(index), value);
|
||||
}
|
||||
|
||||
void SWRenderer::ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue