summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/NullRender.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2021-06-09 07:42:21 -0400
committerTechjar <tecknojar@gmail.com>2021-10-04 15:51:24 -0400
commit1161af80594c403233e3d21589af004ee2d75594 (patch)
treec20fdec2f9b8777eb62de221a4c89c7f9224d31c /Source/Core/VideoBackends/Null/NullRender.cpp
parent7ec02ee4d37cef6a73ac7a678901904ca6855728 (diff)
VideoCommon: Abstract bounding box
This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.
Diffstat (limited to 'Source/Core/VideoBackends/Null/NullRender.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/NullRender.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Null/NullRender.cpp b/Source/Core/VideoBackends/Null/NullRender.cpp
index 9c87ed8529..e7b7a7907c 100644
--- a/Source/Core/VideoBackends/Null/NullRender.cpp
+++ b/Source/Core/VideoBackends/Null/NullRender.cpp
@@ -3,6 +3,7 @@
#include "VideoBackends/Null/NullRender.h"
+#include "VideoBackends/Null/NullBoundingBox.h"
#include "VideoBackends/Null/NullTexture.h"
#include "VideoCommon/AbstractPipeline.h"
@@ -83,4 +84,9 @@ Renderer::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl)
{
return std::make_unique<NativeVertexFormat>(vtx_decl);
}
+
+std::unique_ptr<BoundingBox> Renderer::CreateBoundingBox() const
+{
+ return std::make_unique<NullBoundingBox>();
+}
} // namespace Null