src/video/android/SDL_androidgl.c
author Paul Hunkin <paul@bieh.net>
Fri, 18 Jun 2010 00:03:09 +1200
changeset 4707 8b109f0dcd2f
parent 4703 c93b44ddc63e
child 4709 6dc26b9d8368
permissions -rw-r--r--
Removed old video subsystem, along with (now-unncessary) egl files.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 /* Android SDL video driver implementation
    25 */
    26 
    27 #include "SDL_video.h"
    28 #include "SDL_mouse.h"
    29 #include "../SDL_sysvideo.h"
    30 #include "../SDL_pixels_c.h"
    31 #include "../../events/SDL_events_c.h"
    32 
    33 #include "SDL_androidvideo.h"
    34 #include "SDL_androidevents.h"
    35 #include "SDL_androidrender.h"
    36 
    37 #include <android/log.h>
    38 
    39 
    40 /*
    41 These things are in the JNI android support
    42 */
    43  
    44 
    45 
    46 /* GL functions */
    47 int Android_GL_LoadLibrary(_THIS, const char *path){
    48 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_LoadLibrary\n");
    49 	return 0;
    50 }
    51 
    52 void *Android_GL_GetProcAddress(_THIS, const char *proc){
    53 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_GetProcAddress\n");
    54 	return 0;
    55 }
    56 
    57 void Android_GL_UnloadLibrary(_THIS){
    58 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_UnloadLibrary\n");
    59 }
    60 
    61 /*
    62 int *Android_GL_GetVisual(_THIS, Display * display, int screen){
    63 	__android_log_print(ANDROID_LOG_INFO, "SDL","[STUB] GL_GetVisual\n");
    64 	return 0;
    65 }
    66 */
    67 
    68 SDL_GLContext Android_GL_CreateContext(_THIS, SDL_Window * window){
    69 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_CreateContext\n");
    70 	return NULL; 
    71 }
    72 
    73 int Android_GL_MakeCurrent(_THIS, SDL_Window * window,
    74                               SDL_GLContext context){
    75 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_MakeCurrent\n");
    76 	return 0;
    77 }
    78 
    79 int Android_GL_SetSwapInterval(_THIS, int interval){
    80 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SetSwapInterval\n");
    81 	return 0;
    82 }
    83 
    84 int Android_GL_GetSwapInterval(_THIS){
    85 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_GetSwapInterval\n");
    86 	return 0;
    87 }
    88 
    89 void Android_GL_SwapWindow(_THIS, SDL_Window * window){
    90 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SwapWindow\n");
    91 }
    92 
    93 void Android_GL_DeleteContext(_THIS, SDL_GLContext context){
    94 	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_DeleteContext\n");
    95 }