mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +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
|
@ -279,7 +279,7 @@ static void BPWritten(const BPCmd& bp)
|
|||
// here. Not sure if there's a better spot to put this.
|
||||
// the number of lines copied is determined by the y scale * source efb height
|
||||
|
||||
BoundingBox::active = false;
|
||||
BoundingBox::Disable();
|
||||
PixelShaderManager::SetBoundingBoxActive(false);
|
||||
|
||||
float yScale;
|
||||
|
@ -448,8 +448,8 @@ static void BPWritten(const BPCmd& bp)
|
|||
case BPMEM_CLEARBBOX1:
|
||||
case BPMEM_CLEARBBOX2:
|
||||
{
|
||||
u8 offset = bp.address & 2;
|
||||
BoundingBox::active = true;
|
||||
const u8 offset = bp.address & 2;
|
||||
BoundingBox::Enable();
|
||||
PixelShaderManager::SetBoundingBoxActive(true);
|
||||
|
||||
if (g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue