src/video/wayland/SDL_waylandopengles.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 26 May 2015 06:27:46 -0700
changeset 9619 b94b6d0bff0f
parent 8149 681eb46b8ac4
child 9998 f67cf37e9cd4
permissions -rw-r--r--
Updated the copyright year to 2015
gabomdq@8062
     1
/*
gabomdq@8062
     2
  Simple DirectMedia Layer
slouken@9619
     3
  Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
gabomdq@8062
     4
gabomdq@8062
     5
  This software is provided 'as-is', without any express or implied
gabomdq@8062
     6
  warranty.  In no event will the authors be held liable for any damages
gabomdq@8062
     7
  arising from the use of this software.
gabomdq@8062
     8
gabomdq@8062
     9
  Permission is granted to anyone to use this software for any purpose,
gabomdq@8062
    10
  including commercial applications, and to alter it and redistribute it
gabomdq@8062
    11
  freely, subject to the following restrictions:
gabomdq@8062
    12
gabomdq@8062
    13
  1. The origin of this software must not be misrepresented; you must not
gabomdq@8062
    14
     claim that you wrote the original software. If you use this software
gabomdq@8062
    15
     in a product, an acknowledgment in the product documentation would be
gabomdq@8062
    16
     appreciated but is not required.
gabomdq@8062
    17
  2. Altered source versions must be plainly marked as such, and must not be
gabomdq@8062
    18
     misrepresented as being the original software.
gabomdq@8062
    19
  3. This notice may not be removed or altered from any source distribution.
gabomdq@8062
    20
*/
gabomdq@8104
    21
#include "../../SDL_internal.h"
gabomdq@8062
    22
gabomdq@8062
    23
#ifndef _SDL_waylandopengles_h
gabomdq@8062
    24
#define _SDL_waylandopengles_h
gabomdq@8062
    25
gabomdq@8062
    26
#include "../SDL_sysvideo.h"
gabomdq@8062
    27
#include "../SDL_egl_c.h"
gabomdq@8062
    28
gabomdq@8062
    29
typedef struct SDL_PrivateGLESData
gabomdq@8062
    30
{
gabomdq@8062
    31
} SDL_PrivateGLESData;
gabomdq@8062
    32
gabomdq@8062
    33
/* OpenGLES functions */
gabomdq@8062
    34
#define Wayland_GLES_GetAttribute SDL_EGL_GetAttribute
gabomdq@8062
    35
#define Wayland_GLES_GetProcAddress SDL_EGL_GetProcAddress
gabomdq@8062
    36
#define Wayland_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
gabomdq@8062
    37
#define Wayland_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
gabomdq@8062
    38
#define Wayland_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
gabomdq@8062
    39
gabomdq@8062
    40
extern int Wayland_GLES_LoadLibrary(_THIS, const char *path);
gabomdq@8062
    41
extern SDL_GLContext Wayland_GLES_CreateContext(_THIS, SDL_Window * window);
gabomdq@8062
    42
extern void Wayland_GLES_SwapWindow(_THIS, SDL_Window * window);
gabomdq@8062
    43
extern int Wayland_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
gabomdq@8062
    44
extern void Wayland_GLES_DeleteContext(_THIS, SDL_GLContext context);
gabomdq@8062
    45
gabomdq@8062
    46
#endif /* _SDL_waylandopengles_h */