src/video/haiku/SDL_bopengl.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 09 Dec 2016 01:47:43 -0800
changeset 10690 23a825f341e6
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
permissions -rw-r--r--
Fixed bug 3513 - SDL_GL_SwapWindow does not return error status

Return an error code from SDL_GL_SwapWindow(), like the other SDL APIs.
nathanheisey@5916
     1
/*
nathanheisey@5916
     2
  Simple DirectMedia Layer
slouken@9998
     3
  Copyright (C) 1997-2016 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
nathanheisey@5919
    25
#ifdef __cplusplus
nathanheisey@5919
    26
extern "C" {
nathanheisey@5919
    27
#endif
nathanheisey@5919
    28
nathanheisey@5919
    29
#include "../SDL_sysvideo.h"
nathanheisey@5919
    30
nathanheisey@5919
    31
gabomdq@7678
    32
extern int BE_GL_LoadLibrary(_THIS, const char *path);                  /* FIXME */
gabomdq@7678
    33
extern void *BE_GL_GetProcAddress(_THIS, const char *proc);             /* FIXME */
gabomdq@7678
    34
extern void BE_GL_UnloadLibrary(_THIS);                                 /* TODO */
nathanheisey@5931
    35
extern int BE_GL_MakeCurrent(_THIS, SDL_Window * window,
nathanheisey@5931
    36
                              SDL_GLContext context);
gabomdq@7678
    37
extern int BE_GL_SetSwapInterval(_THIS, int interval);                  /* TODO */
gabomdq@7678
    38
extern int BE_GL_GetSwapInterval(_THIS);                                /* TODO */
slouken@10690
    39
extern int BE_GL_SwapWindow(_THIS, SDL_Window * window);
nathanheisey@5931
    40
extern SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window * window);
nathanheisey@5931
    41
extern void BE_GL_DeleteContext(_THIS, SDL_GLContext context);
nathanheisey@5919
    42
nathanheisey@5938
    43
extern void BE_GL_RebootContexts(_THIS);
nathanheisey@5919
    44
nathanheisey@5919
    45
#ifdef __cplusplus
nathanheisey@5919
    46
}
nathanheisey@5916
    47
#endif
nathanheisey@5919
    48
nathanheisey@5919
    49
#endif
slouken@10690
    50
slouken@10690
    51
/* vi: set ts=4 sw=4 expandtab: */