mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
28 lines
475 B
C++
28 lines
475 B
C++
#pragma once
|
|
|
|
#include <utility>
|
|
|
|
namespace RBX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
|
|
class ContextGL
|
|
{
|
|
public:
|
|
static ContextGL* create(void* windowHandle);
|
|
|
|
virtual ~ContextGL() {}
|
|
|
|
virtual void setCurrent() = 0;
|
|
virtual void swapBuffers() = 0;
|
|
|
|
virtual unsigned int getMainFramebufferId() = 0;
|
|
virtual bool isMainFramebufferRetina() = 0;
|
|
|
|
virtual std::pair<unsigned int, unsigned int> updateMainFramebuffer(unsigned int width, unsigned int height) = 0;
|
|
};
|
|
|
|
}
|
|
}
|