src/video/emscripten/SDL_emscriptenopengles.h
changeset 12579 8dc4e45fbe2b
parent 12503 806492103856
equal deleted inserted replaced
12578:b127ca09e7fe 12579:8dc4e45fbe2b
    32 #define Emscripten_GLES_GetAttribute SDL_EGL_GetAttribute
    32 #define Emscripten_GLES_GetAttribute SDL_EGL_GetAttribute
    33 #define Emscripten_GLES_GetProcAddress SDL_EGL_GetProcAddress
    33 #define Emscripten_GLES_GetProcAddress SDL_EGL_GetProcAddress
    34 #define Emscripten_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
    34 #define Emscripten_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
    35 #define Emscripten_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
    35 #define Emscripten_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
    36 #define Emscripten_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
    36 #define Emscripten_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
       
    37 #define Emscripten_GLES_DeleteContext SDL_EGL_DeleteContext
    37 
    38 
    38 extern int Emscripten_GLES_LoadLibrary(_THIS, const char *path);
    39 extern int Emscripten_GLES_LoadLibrary(_THIS, const char *path);
    39 extern void Emscripten_GLES_DeleteContext(_THIS, SDL_GLContext context);
       
    40 extern SDL_GLContext Emscripten_GLES_CreateContext(_THIS, SDL_Window * window);
    40 extern SDL_GLContext Emscripten_GLES_CreateContext(_THIS, SDL_Window * window);
    41 extern int Emscripten_GLES_SwapWindow(_THIS, SDL_Window * window);
    41 extern int Emscripten_GLES_SwapWindow(_THIS, SDL_Window * window);
    42 extern int Emscripten_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
    42 extern int Emscripten_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
    43 extern void Emscripten_GLES_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h);
    43 extern void Emscripten_GLES_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h);
    44 
    44