Fri, 18 Jul 2008 18:23:23 +0000added SDL_LOADSO_DLOPEN macro gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 18:23:23 +0000] rev 2368
added SDL_LOADSO_DLOPEN macro

Fri, 18 Jul 2008 18:22:41 +0000Added SDL_VIDEO_RENDER_OGL macro back in gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 18:22:41 +0000] rev 2367
Added SDL_VIDEO_RENDER_OGL macro back in

Fri, 18 Jul 2008 18:09:04 +0000This file serves a similar purpose as SDL_opengl.h, but for OpenGL ES. It is based off of the official OpenGL ES v1.1 header file found at Kronos (http://www.khronos.org/registry/gles/api/1.1/gl.h). gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 18:09:04 +0000] rev 2366
This file serves a similar purpose as SDL_opengl.h, but for OpenGL ES. It is based off of the official OpenGL ES v1.1 header file found at Kronos (http://www.khronos.org/registry/gles/api/1.1/gl.h).

Fri, 18 Jul 2008 18:05:54 +0000Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 18:05:54 +0000] rev 2365
Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance.

Fri, 18 Jul 2008 17:53:54 +0000These files contain the audio support for iPhone. They are based on the CoreAudio audio driver for Mac OS X. The principle difference is that the iPhone doesn't seem to have a concept of audio devices ... it just has special units for audio in and audio out. Also had to change some functions to versions which seem to only exist on iPhone and will apparently exist in Mac OS X 10.6(!) gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 17:53:54 +0000] rev 2364
These files contain the audio support for iPhone. They are based on the CoreAudio audio driver for Mac OS X. The principle difference is that the iPhone doesn't seem to have a concept of audio devices ... it just has special units for audio in and audio out. Also had to change some functions to versions which seem to only exist on iPhone and will apparently exist in Mac OS X 10.6(!)

There is currently no audio recording support -- my iPod Touch doesn't have a microphone to test this with.

Fri, 18 Jul 2008 17:47:36 +0000Fixed a bug where SDL_SYS_JoystickUpdate would send update events even when the accelerometer delegate hadn't received new information from the hardware. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 17:47:36 +0000] rev 2363
Fixed a bug where SDL_SYS_JoystickUpdate would send update events even when the accelerometer delegate hadn't received new information from the hardware.

Fri, 18 Jul 2008 17:46:17 +0000These files contain the specification for a class which receives updates from the iPhone accelerometer. The class holds the accelerometer information, and is queried by SDL_sysjoystick.m. gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 17:46:17 +0000] rev 2362
These files contain the specification for a class which receives updates from the iPhone accelerometer. The class holds the accelerometer information, and is queried by SDL_sysjoystick.m.

Fri, 18 Jul 2008 17:30:56 +0000test gsoc2008_iphone
Holmes Futrell <hfutrell@umail.ucsb.edu> [Fri, 18 Jul 2008 17:30:56 +0000] rev 2361
test

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!