mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 21:27:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user