mirror of
https://github.com/Cuteminded/jellyframe.git
synced 2026-10-19 21:00:33 +02:00
25 lines
395 B
C++
25 lines
395 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#ifdef _WIN32
|
|
#define JELLYFRAME_GL_CALL __stdcall
|
|
#else
|
|
#define JELLYFRAME_GL_CALL
|
|
#endif
|
|
|
|
class SharedGlContext {
|
|
public:
|
|
SharedGlContext();
|
|
~SharedGlContext();
|
|
bool create();
|
|
bool activate();
|
|
void release();
|
|
void destroy();
|
|
void *resolve(const char *name) const;
|
|
|
|
private:
|
|
struct Native;
|
|
std::unique_ptr<Native> native;
|
|
};
|