2022-09-24 16:07:46 +05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
namespace hpr::gpu
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum class DeviceAPI
|
|
|
|
{
|
|
|
|
Unknown,
|
|
|
|
OpenGL,
|
|
|
|
DeviceAPICount
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
DeviceAPI p_api;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructors
|
|
|
|
|
|
|
|
Context();
|
|
|
|
|
|
|
|
Context(DeviceAPI api);
|
|
|
|
|
2022-10-27 22:27:50 +05:00
|
|
|
virtual
|
|
|
|
~Context();
|
2022-09-24 16:07:46 +05:00
|
|
|
|
|
|
|
// Member functions
|
|
|
|
|
|
|
|
bool checkCompability(const Context* ctx) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|