23 #if SDL_VIDEO_DRIVER_BWINDOW
28 #include <KernelKit.h>
29 #include <OpenGLKit.h>
31 #include "../../main/beos/SDL_BApp.h"
38 #define BGL_FLAGS BGL_RGB | BGL_DOUBLE
44 static inline SDL_BApp *_GetBeApp() {
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());
105 bwin->CreateGLView(BGL_FLAGS);
111 ((
SDL_BWin*)context)->RemoveGLView();
138 if(bwin->GetGLView()) {
140 bwin->RemoveGLView();
141 bwin->CreateGLView(BGL_FLAGS);
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)
void BE_GL_RebootContexts(_THIS)
SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window *window)
#define GL_ACCUM_GREEN_BITS
SDL_GLattr
OpenGL configuration attributes.
void * SDL_GLContext
An opaque handle to an OpenGL context.
GLsizei const GLchar *const * path
static SDL_VideoDevice * _this
#define GL_ACCUM_ALPHA_BITS
DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen)
#define GL_ACCUM_BLUE_BITS
#define GL_ACCUM_RED_BITS
int BE_GL_GetSwapInterval(_THIS)
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
#define SDL_arraysize(array)
EGLSurface EGLint void ** value
int BE_GL_SetSwapInterval(_THIS, int interval)
int BE_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
void BE_GL_SwapWindow(_THIS, SDL_Window *window)
struct SDL_VideoDevice::@87 gl_config