mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
19 lines
387 B
C++
19 lines
387 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
class IOpenGLContext
|
|
{
|
|
public:
|
|
virtual ~IOpenGLContext() = default;
|
|
|
|
virtual void MakeCurrent() = 0;
|
|
virtual void ClearCurrent() = 0;
|
|
virtual void SwapBuffers() = 0;
|
|
virtual bool IsCurrent() = 0;
|
|
|
|
virtual int GetWidth() const = 0;
|
|
virtual int GetHeight() const = 0;
|
|
|
|
static std::unique_ptr<IOpenGLContext> Create(void* disp, void* window);
|
|
};
|