2014-11-13 22:26:49 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-11-13 22:26:49 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-06-09 11:42:21 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
#include "Common/GL/GLUtil.h"
|
|
|
|
|
|
|
|
#include "VideoCommon/BoundingBox.h"
|
|
|
|
|
2014-11-13 22:26:49 +00:00
|
|
|
namespace OGL
|
|
|
|
{
|
2021-06-09 11:42:21 +00:00
|
|
|
class OGLBoundingBox final : public BoundingBox
|
2014-11-13 22:26:49 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-06-09 11:42:21 +00:00
|
|
|
~OGLBoundingBox() override;
|
2014-11-13 22:26:49 +00:00
|
|
|
|
2021-06-09 11:42:21 +00:00
|
|
|
bool Initialize() override;
|
2021-04-17 17:14:52 +00:00
|
|
|
|
2021-06-09 11:42:21 +00:00
|
|
|
protected:
|
|
|
|
std::vector<BBoxType> Read(u32 index, u32 length) override;
|
2023-12-09 19:54:17 +00:00
|
|
|
void Write(u32 index, std::span<const BBoxType> values) override;
|
2021-06-09 11:42:21 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
GLuint m_buffer_id = 0;
|
2014-11-13 22:26:49 +00:00
|
|
|
};
|
2021-06-09 11:42:21 +00:00
|
|
|
|
|
|
|
} // namespace OGL
|