src/video/haiku/SDL_bopengl.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 07 Aug 2018 18:07:11 -0400
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12503 806492103856
permissions -rw-r--r--
haiku: Rename internal functions from BE_* to HAIKU_*

Fixes Bugzilla #2349.
nathanheisey@5916
     1
/*
nathanheisey@5916
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
nathanheisey@5916
     4
nathanheisey@5916
     5
  This software is provided 'as-is', without any express or implied
nathanheisey@5916
     6
  warranty.  In no event will the authors be held liable for any damages
nathanheisey@5916
     7
  arising from the use of this software.
nathanheisey@5916
     8
nathanheisey@5916
     9
  Permission is granted to anyone to use this software for any purpose,
nathanheisey@5916
    10
  including commercial applications, and to alter it and redistribute it
nathanheisey@5916
    11
  freely, subject to the following restrictions:
nathanheisey@5916
    12
nathanheisey@5916
    13
  1. The origin of this software must not be misrepresented; you must not
nathanheisey@5916
    14
     claim that you wrote the original software. If you use this software
nathanheisey@5916
    15
     in a product, an acknowledgment in the product documentation would be
nathanheisey@5916
    16
     appreciated but is not required.
nathanheisey@5916
    17
  2. Altered source versions must be plainly marked as such, and must not be
nathanheisey@5916
    18
     misrepresented as being the original software.
nathanheisey@5916
    19
  3. This notice may not be removed or altered from any source distribution.
nathanheisey@5916
    20
*/
nathanheisey@5916
    21
nathanheisey@5916
    22
#ifndef SDL_BOPENGL_H
nathanheisey@5916
    23
#define SDL_BOPENGL_H
nathanheisey@5919
    24
philipp@11130
    25
#if SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL
philipp@11130
    26
nathanheisey@5919
    27
#ifdef __cplusplus
nathanheisey@5919
    28
extern "C" {
nathanheisey@5919
    29
#endif
nathanheisey@5919
    30
nathanheisey@5919
    31
#include "../SDL_sysvideo.h"
nathanheisey@5919
    32
nathanheisey@5919
    33
icculus@12082
    34
extern int HAIKU_GL_LoadLibrary(_THIS, const char *path);                  /* FIXME */
icculus@12082
    35
extern void *HAIKU_GL_GetProcAddress(_THIS, const char *proc);             /* FIXME */
icculus@12082
    36
extern void HAIKU_GL_UnloadLibrary(_THIS);                                 /* TODO */
icculus@12082
    37
extern int HAIKU_GL_MakeCurrent(_THIS, SDL_Window * window,
nathanheisey@5931
    38
                              SDL_GLContext context);
icculus@12082
    39
extern int HAIKU_GL_SetSwapInterval(_THIS, int interval);                  /* TODO */
icculus@12082
    40
extern int HAIKU_GL_GetSwapInterval(_THIS);                                /* TODO */
icculus@12082
    41
extern int HAIKU_GL_SwapWindow(_THIS, SDL_Window * window);
icculus@12082
    42
extern SDL_GLContext HAIKU_GL_CreateContext(_THIS, SDL_Window * window);
icculus@12082
    43
extern void HAIKU_GL_DeleteContext(_THIS, SDL_GLContext context);
nathanheisey@5919
    44
icculus@12082
    45
extern void HAIKU_GL_RebootContexts(_THIS);
nathanheisey@5919
    46
nathanheisey@5919
    47
#ifdef __cplusplus
nathanheisey@5919
    48
}
nathanheisey@5916
    49
#endif
nathanheisey@5919
    50
philipp@11130
    51
#endif /* SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL */
philipp@11130
    52
nathanheisey@5919
    53
#endif
slouken@10690
    54
slouken@10690
    55
/* vi: set ts=4 sw=4 expandtab: */