# HG changeset patch # User Holmes Futrell # Date 1218845290 0 # Node ID bf7028ffbf070450fa9d58c157dc0e11b59a7853 # Parent febfb349b467790e397faa749e9ccdcfe2c62203 Added comments, updated included header name diff -r febfb349b467 -r bf7028ffbf07 src/video/uikit/SDL_uikitopengles.m --- a/src/video/uikit/SDL_uikitopengles.m Fri Aug 15 23:53:04 2008 +0000 +++ b/src/video/uikit/SDL_uikitopengles.m Sat Aug 16 00:08:10 2008 +0000 @@ -24,7 +24,7 @@ #include "SDL_uikitopenglview.h" #include "SDL_uikitappdelegate.h" #include "SDL_uikitwindow.h" -#include "jump.h" +#include "jumphack.h" #include "SDL_sysvideo.h" #include "SDL_loadso.h" #include @@ -61,7 +61,11 @@ int UIKit_GL_LoadLibrary(_THIS, const char *path) { - /* shouldn't be passing a path into this function */ + /* + shouldn't be passing a path into this function + why? Because we've already loaded the library + and because the SDK forbids loading an external SO + */ if (path != NULL) { SDL_SetError("iPhone GL Load Library just here for compatibility"); return -1; @@ -95,6 +99,7 @@ SDL_WindowData *data = (SDL_WindowData *)window->driverdata; + /* construct our view, passing in SDL's OpenGL configuration data */ view = [[SDL_uikitopenglview alloc] initWithFrame: [[UIScreen mainScreen] applicationFrame] \ retainBacking: _this->gl_config.retained_backing \ rBits: _this->gl_config.red_size \ @@ -102,11 +107,10 @@ bBits: _this->gl_config.blue_size \ aBits: _this->gl_config.alpha_size \ depthBits: _this->gl_config.depth_size]; - - view.multipleTouchEnabled = YES; - + data->view = view; - + + /* add the view to our window */ [data->uiwindow addSubview: view ]; /* Don't worry, the window retained the view */