[SDL_Tizen] Fix build warnings
[platform/upstream/SDL.git] / src / video / tizen / SDL_tizenopengles.h
1 /*
2   Simple DirectMedia Layer
3   Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
4   Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
5
6   This software is provided 'as-is', without any express or implied
7   warranty.  In no event will the authors be held liable for any damages
8   arising from the use of this software.
9
10   Permission is granted to anyone to use this software for any purpose,
11   including commercial applications, and to alter it and redistribute it
12   freely, subject to the following restrictions:
13
14   1. The origin of this software must not be misrepresented; you must not
15      claim that you wrote the original software. If you use this software
16      in a product, an acknowledgment in the product documentation would be
17      appreciated but is not required.
18   2. Altered source versions must be plainly marked as such, and must not be
19      misrepresented as being the original software.
20   3. This notice may not be removed or altered from any source distribution.
21 */
22 #include "../../SDL_internal.h"
23
24 #ifndef _SDL_tizenopengles_h
25 #define _SDL_tizenopengles_h
26
27 #include "../SDL_sysvideo.h"
28 #include "../SDL_egl_c.h"
29
30 #if SDL_VIDEO_OPENGL_EGL
31
32 typedef struct SDL_PrivateGLESData {
33 } SDL_PrivateGLESData;
34
35 /* OpenGLES functions */
36 #define Tizen_GLES_GetAttribute SDL_EGL_GetAttribute
37 #define Tizen_GLES_GetProcAddress SDL_EGL_GetProcAddress
38 #define Tizen_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
39 #define Tizen_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
40 #define Tizen_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
41
42 extern int Tizen_GLES_LoadLibrary(_THIS, const char *path);
43 extern SDL_GLContext Tizen_GLES_CreateContext(_THIS, SDL_Window *window);
44 extern int Tizen_GLES_SwapWindow(_THIS, SDL_Window *window);
45 extern int Tizen_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context);
46 extern void Tizen_GLES_DeleteContext(_THIS, SDL_GLContext context);
47 extern int Tizen_GLES_GetAlphaSize(_THIS);
48 #endif
49
50 #endif /* _SDL_tizenopengles_h */