@@ -10,12 +10,13 @@
/** @file opengl.h OpenGL video driver support. */
#ifndef VIDEO_OPENGL_H
#define VIDEO_OPENGL_H
#include "../core/alloc_type.hpp"
#include "../core/geometry_type.hpp"
typedef void (*OGLProc)();
typedef OGLProc (*GetOGLProcAddressProc)(const char *proc);
bool IsOpenGLVersionAtLeast(byte major, byte minor);
@@ -39,13 +40,13 @@ public:
return OpenGLBackend::instance;
}
static const char *Create(GetOGLProcAddressProc get_proc);
static void Destroy();
bool Resize(int w, int h, bool force = false);
void Paint();
void Paint(Rect update_rect);
/**
* Get a pointer to the memory for the video driver to draw to.
* @return Pointer to draw on.
*/
void *GetVideoBuffer() { return this->vid_buffer; }