src/video/haiku/SDL_bopengl.cc
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12503 806492103856
     1.1 --- a/src/video/haiku/SDL_bopengl.cc	Tue Aug 07 17:28:07 2018 -0400
     1.2 +++ b/src/video/haiku/SDL_bopengl.cc	Tue Aug 07 18:07:11 2018 -0400
     1.3 @@ -44,7 +44,7 @@
     1.4  }
     1.5  
     1.6  /* Passing a NULL path means load pointers from the application */
     1.7 -int BE_GL_LoadLibrary(_THIS, const char *path)
     1.8 +int HAIKU_GL_LoadLibrary(_THIS, const char *path)
     1.9  {
    1.10  /* FIXME: Is this working correctly? */
    1.11      image_info info;
    1.12 @@ -63,7 +63,7 @@
    1.13      return 0;
    1.14  }
    1.15  
    1.16 -void *BE_GL_GetProcAddress(_THIS, const char *proc)
    1.17 +void *HAIKU_GL_GetProcAddress(_THIS, const char *proc)
    1.18  {
    1.19      if (_this->gl_config.dll_handle != NULL) {
    1.20          void *location = NULL;
    1.21 @@ -86,19 +86,19 @@
    1.22  
    1.23  
    1.24  
    1.25 -int BE_GL_SwapWindow(_THIS, SDL_Window * window) {
    1.26 +int HAIKU_GL_SwapWindow(_THIS, SDL_Window * window) {
    1.27      _ToBeWin(window)->SwapBuffers();
    1.28      return 0;
    1.29  }
    1.30  
    1.31 -int BE_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) {
    1.32 +int HAIKU_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) {
    1.33      SDL_BWin* win = (SDL_BWin*)context;
    1.34      _GetBeApp()->SetCurrentContext(win ? win->GetGLView() : NULL);
    1.35      return 0;
    1.36  }
    1.37  
    1.38  
    1.39 -SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window * window) {
    1.40 +SDL_GLContext HAIKU_GL_CreateContext(_THIS, SDL_Window * window) {
    1.41      /* FIXME: Not sure what flags should be included here; may want to have
    1.42         most of them */
    1.43      SDL_BWin *bwin = _ToBeWin(window);
    1.44 @@ -127,24 +127,24 @@
    1.45      return (SDL_GLContext)(bwin);
    1.46  }
    1.47  
    1.48 -void BE_GL_DeleteContext(_THIS, SDL_GLContext context) {
    1.49 +void HAIKU_GL_DeleteContext(_THIS, SDL_GLContext context) {
    1.50      /* Currently, automatically unlocks the view */
    1.51      ((SDL_BWin*)context)->RemoveGLView();
    1.52  }
    1.53  
    1.54  
    1.55 -int BE_GL_SetSwapInterval(_THIS, int interval) {
    1.56 +int HAIKU_GL_SetSwapInterval(_THIS, int interval) {
    1.57      /* TODO: Implement this, if necessary? */
    1.58      return SDL_Unsupported();
    1.59  }
    1.60  
    1.61 -int BE_GL_GetSwapInterval(_THIS) {
    1.62 +int HAIKU_GL_GetSwapInterval(_THIS) {
    1.63      /* TODO: Implement this, if necessary? */
    1.64      return 0;
    1.65  }
    1.66  
    1.67  
    1.68 -void BE_GL_UnloadLibrary(_THIS) {
    1.69 +void HAIKU_GL_UnloadLibrary(_THIS) {
    1.70      /* TODO: Implement this, if necessary? */
    1.71  }
    1.72  
    1.73 @@ -152,7 +152,7 @@
    1.74  /* FIXME: This function is meant to clear the OpenGL context when the video
    1.75     mode changes (see SDL_bmodes.cc), but it doesn't seem to help, and is not
    1.76     currently in use. */
    1.77 -void BE_GL_RebootContexts(_THIS) {
    1.78 +void HAIKU_GL_RebootContexts(_THIS) {
    1.79      SDL_Window *window = _this->windows;
    1.80      while(window) {
    1.81          SDL_BWin *bwin = _ToBeWin(window);