39 lines
377 B
C++
39 lines
377 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;
|
|
};
|
|
|
|
} |