21#include "../../SDL_internal.h"
23#if SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL
31#include "../../main/haiku/SDL_BApp.h"
47int HAIKU_GL_LoadLibrary(
_THIS,
const char *
path)
52 while (get_next_image_info(0, &cookie, &info) == B_OK) {
54 if( get_image_symbol(info.id,
"glBegin", B_SYMBOL_TYPE_ANY,
66void *HAIKU_GL_GetProcAddress(
_THIS,
const char *proc)
73 proc, B_SYMBOL_TYPE_ANY,
90 _ToBeWin(
window)->SwapBuffers();
96 _GetBeApp()->SetCurrentContext(win ? win->GetGLView() :
NULL);
105 Uint32 gl_flags = BGL_RGB;
107 gl_flags |= BGL_ALPHA;
110 gl_flags |= BGL_DEPTH;
113 gl_flags |= BGL_STENCIL;
116 gl_flags |= BGL_DOUBLE;
118 gl_flags |= BGL_SINGLE;
124 gl_flags |= BGL_ACCUM;
126 bwin->CreateGLView(gl_flags);
136int HAIKU_GL_SetSwapInterval(
_THIS,
int interval) {
141int HAIKU_GL_GetSwapInterval(
_THIS) {
147void HAIKU_GL_UnloadLibrary(
_THIS) {
155void HAIKU_GL_RebootContexts(
_THIS) {
159 if(bwin->GetGLView()) {
161 bwin->RemoveGLView();
162 bwin->CreateGLView(bwin->GetGLType());
163 bwin->UnlockLooper();
#define SDL_Unsupported()
GLsizei const GLchar *const * path
#define SDL_arraysize(array)
static SDL_VideoDevice * _this
void * SDL_GLContext
An opaque handle to an OpenGL context.
EGLSurface EGLNativeWindowType * window
struct SDL_VideoDevice::@262 gl_config
The type used to identify a window.
static screen_context_t context