MiniEngine/MiniEngine_OpenGL.h
2017-07-01 17:25:48 +08:00

31 lines
495 B
C++

#pragma once
#include "MiniEngine_Config.h"
#include "GL/glew.h"
#include <SDL2/SDL_opengl.h>
#include <memory>
#include "SDLWrapper/Window.h"
namespace MiniEngine
{
namespace OpenGL
{
class GLContext
{
public:
GLContext(Window& wnd) throw (ErrorViewer);
private:
void _clear();
void _set(SDL_GLContext);
SDL_GLContext _get() const;
/// SDL_GLContext is void*
std::shared_ptr<void> _sp;
};
}/// End of namespace MiniEngine::OpenGL
}/// End of namespace MiniEngine