Thu, 17 Jul 2008 23:45:58 +0000Added declaration of UIKit video bootstrap. Added retained_backing property to glconfig structure. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 23:45:58 +0000] rev 2360
Added declaration of UIKit video bootstrap. Added retained_backing property to glconfig structure.

Thu, 17 Jul 2008 23:31:42 +0000These files are the OpenGL ES render driver. You should be able to use them on any platform that supports OpenGL ES -- not just iPhone. The driver is based off the OpenGL render driver. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 23:31:42 +0000] rev 2359
These files are the OpenGL ES render driver. You should be able to use them on any platform that supports OpenGL ES -- not just iPhone. The driver is based off the OpenGL render driver.

There are a few differences between OpenGL and OpenGL ES that present difficulties for this driver:
- OpenGL ES does NOT support many pixel formats (for example, no GL_BGR). Also, when using texture functions format and internalFormat must be the same -- this means 32 bit packed formats like SDL_PIXELFORMAT_BGR888 cannot be automatically converted to GL_RGB (which is 24bpp).
- OpenGL ES doesn't have GL_PACK_ROW_LENGTH, which means data must be reformatted before uploading changes to dirty rects. This change has been added.
- OpenGL ES doesn't support paletted textures, though there is an extension. I'm looking into this.

Some other notable differences:
- OpenGL ES has an extension called GL_OES_draw_texture which allows for quicker 2D sprite-type drawing. I use this in GL_RenderCopy when it is available. The iPhone supports the extension, but the iPhone Simulator does not (presently).
- No glBegin() / glEnd() and no GL_QUADS! I'm using glDrawArrays with GL_TRIANGLE_STRIP instead!

Thu, 17 Jul 2008 23:11:05 +0000This file serves an analoguous purpose as SDL_glfuncs.h, but for OpenGL ES. I haven't put the 'unused' functions in this file yet. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 23:11:05 +0000] rev 2358
This file serves an analoguous purpose as SDL_glfuncs.h, but for OpenGL ES. I haven't put the 'unused' functions in this file yet.

Thu, 17 Jul 2008 23:07:58 +0000Added support for OpenGL ES and UIKit Video Driver: gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 23:07:58 +0000] rev 2357
Added support for OpenGL ES and UIKit Video Driver:
- included SDL_renderer_gles.h
- added UIKit Video driver bootstrap declaration
- added property "retained_backing" to gl_config structure. Having retained backing means your video buffers can't be overwritten by other applications between drawing frames. By default, this is enabled. I wanted to give the option to disable this on iPhone because it increases performance greatly.
- modified SDL_GetAttribute and SDL_SetAttribute function for OpenGL ES support. OpenGL ES does not have support for accumulation buffers, and is always double buffered, among other things.

Thu, 17 Jul 2008 22:50:39 +0000These files contain some environment storage necessary for an ugly hack I had to write so that SDL_QUIT events would be handled correctly on the platform. Please see the comment in UIKit_PumpEvents located in SDL_uikitevents.m and let me know if there is a better way to do this. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:50:39 +0000] rev 2356
These files contain some environment storage necessary for an ugly hack I had to write so that SDL_QUIT events would be handled correctly on the platform. Please see the comment in UIKit_PumpEvents located in SDL_uikitevents.m and let me know if there is a better way to do this.

Thu, 17 Jul 2008 22:48:23 +0000These files contain the events related functions for the UIKit video driver. Right now this is just UIKit_PumpEvents. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:48:23 +0000] rev 2355
These files contain the events related functions for the UIKit video driver. Right now this is just UIKit_PumpEvents.

Thu, 17 Jul 2008 22:45:41 +0000These files contain the window related functions for the UIKit video driver. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:45:41 +0000] rev 2354
These files contain the window related functions for the UIKit video driver.

Thu, 17 Jul 2008 22:43:09 +0000SDL_uikitview is just a generic view class which SDL_uikitopenglview inherits from. The functionality found in this class relates to (right now) mouse/touch input support. The reason for putting it here is that if someone wanted to write a render driver for iPhone based around CoreGraphics rather than OpenGL ES, they could make their Core Graphics view inherit from this class as well. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:43:09 +0000] rev 2353
SDL_uikitview is just a generic view class which SDL_uikitopenglview inherits from. The functionality found in this class relates to (right now) mouse/touch input support. The reason for putting it here is that if someone wanted to write a render driver for iPhone based around CoreGraphics rather than OpenGL ES, they could make their Core Graphics view inherit from this class as well.

Thu, 17 Jul 2008 22:38:29 +0000SDL_uikitvideo.m is the main file for the UIKit video driver. It has the UIKit video bootstrap, initialization, device creation, etc. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:38:29 +0000] rev 2352
SDL_uikitvideo.m is the main file for the UIKit video driver. It has the UIKit video bootstrap, initialization, device creation, etc.

Thu, 17 Jul 2008 22:35:59 +0000SDL_uikitopenglview is an OpenGL ES View class based on the one found in Apple's OpenGL ES based application template. It's created from SDL_uikitopengles.m, normally. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Thu, 17 Jul 2008 22:35:59 +0000] rev 2351
SDL_uikitopenglview is an OpenGL ES View class based on the one found in Apple's OpenGL ES based application template. It's created from SDL_uikitopengles.m, normally.