38 lines
373 B
C++
38 lines
373 B
C++
#pragma once
|
|
|
|
|
|
namespace hpr::gpu
|
|
{
|
|
|
|
class Context
|
|
{
|
|
|
|
public:
|
|
|
|
enum class DeviceAPI
|
|
{
|
|
Unknown,
|
|
OpenGL,
|
|
DeviceAPICount
|
|
};
|
|
|
|
private:
|
|
|
|
DeviceAPI p_api;
|
|
|
|
public:
|
|
|
|
// Constructors
|
|
|
|
Context();
|
|
|
|
Context(DeviceAPI api);
|
|
|
|
virtual ~Context();
|
|
|
|
// Member functions
|
|
|
|
bool checkCompability(const Context* ctx) const;
|
|
};
|
|
|
|
} |