21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_HAIKU 28 #include <KernelKit.h> 29 #include <OpenGLKit.h> 31 #include "../../main/haiku/SDL_BApp.h" 38 #define BGL_FLAGS BGL_RGB | BGL_DOUBLE 54 while (get_next_image_info(0, &cookie, &info) == B_OK) {
56 if( get_image_symbol(info.id,
"glBegin", B_SYMBOL_TYPE_ANY,
71 void *location =
NULL;
75 proc, B_SYMBOL_TYPE_ANY,
76 &location)) == B_OK) {
92 _ToBeWin(window)->SwapBuffers();
96 _GetBeApp()->SetCurrentContext(((
SDL_BWin*)context)->GetGLView());
111 ((
SDL_BWin*)context)->RemoveGLView();
142 bwin->UnlockLooper();
144 window = window->
next;
int BE_GL_LoadLibrary(_THIS, const char *path)
void BE_GL_UnloadLibrary(_THIS)
void * BE_GL_GetProcAddress(_THIS, const char *proc)
void BE_GL_DeleteContext(_THIS, SDL_GLContext context)
static SDL_Window * window
void BE_GL_RebootContexts(_THIS)
SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window *window)
#define GL_ACCUM_ALPHA_BITS
static SDL_VideoDevice * _this
struct SDL_VideoDevice::@29 gl_config
SDL_GLattr
OpenGL configuration attributes.
void * SDL_GLContext
An opaque handle to an OpenGL context.
GLsizei const GLfloat * value
virtual void RemoveGLView()
int BE_GL_GetSwapInterval(_THIS)
#define GL_ACCUM_RED_BITS
GLAPI void GLAPIENTRY glGetBooleanv(GLenum pname, GLboolean *params)
#define GL_ACCUM_GREEN_BITS
GLAPI void GLAPIENTRY glGetIntegerv(GLenum pname, GLint *params)
int BE_GL_SetSwapInterval(_THIS, int interval)
#define GL_ACCUM_BLUE_BITS
The type used to identify a window.
virtual BGLView * CreateGLView(Uint32 gl_flags)
int BE_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
#define SDL_arraysize(array)
GLsizei const GLchar *const * path
void BE_GL_SwapWindow(_THIS, SDL_Window *window)