mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
VideoCommon: Abstract bounding box
This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.
This commit is contained in:
parent
7ec02ee4d3
commit
1161af8059
41 changed files with 617 additions and 708 deletions
|
@ -851,19 +851,9 @@ void Renderer::SetScissorRect(const MathUtil::Rectangle<int>& rc)
|
|||
glScissor(rc.left, rc.top, rc.GetWidth(), rc.GetHeight());
|
||||
}
|
||||
|
||||
u16 Renderer::BBoxReadImpl(int index)
|
||||
std::unique_ptr<::BoundingBox> Renderer::CreateBoundingBox() const
|
||||
{
|
||||
return static_cast<u16>(BoundingBox::Get(index));
|
||||
}
|
||||
|
||||
void Renderer::BBoxWriteImpl(int index, u16 value)
|
||||
{
|
||||
BoundingBox::Set(index, value);
|
||||
}
|
||||
|
||||
void Renderer::BBoxFlushImpl()
|
||||
{
|
||||
BoundingBox::Flush();
|
||||
return std::make_unique<OGLBoundingBox>();
|
||||
}
|
||||
|
||||
void Renderer::SetViewport(float x, float y, float width, float height, float near_depth,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue