UltimateZoneBuilder/Source/Native/OpenGLContext.h

19 lines
356 B
C
Raw Normal View History

2019-08-10 00:32:08 +00:00
#pragma once
#include <memory>
class IOpenGLContext
2019-08-10 00:32:08 +00:00
{
public:
virtual ~IOpenGLContext() = default;
virtual void MakeCurrent() = 0;
virtual void ClearCurrent() = 0;
virtual void SwapBuffers() = 0;
virtual int GetWidth() const = 0;
virtual int GetHeight() const = 0;
static std::unique_ptr<IOpenGLContext> Create(void* disp, void* window);
};