<h3>iPhone OpenGL Demo</h3>

This is a demo video showing my humble achievements in the direction of OpenGL ES 1.1 for iPhone, using some texture and light experiments. It is of course not intended as a working program, it's rather a demo concept snippet of code.

[video:youtube:3KrkU70J4rE]

The binary:
 - source written in objective-c
 - compiled as native application with iPhone toolchain under cygwin
 - ran on iPhone 1.1.2 OOB

The acknowledgements go to:
 - AJW - for his great iPhone OpenGL startups
 - ZeusCMD - for his great OpenGL ES tutorials
 - nullriver - for his posts and links

Here is the binary available for download.

Instructions:
 - GLTextureCube to be put into /Applications and given proper permissions (755 to dirs and files will suffice)
 - zveriu.raw to be put into /private/var and given at least read permission (444 will suffice)
 - you can replace zveriu.raw with your own image data, given you follow the constraints:
    -- 128 by 128 pixel - sorry, had to hard-code to speed-up the working demo ;D
    -- raw data, i.e. no headers, compression, etc - :crazy:
    -- 1 (one) byte per color, color scheme RGB
    -- basically it is a 24bit BMP, with no header, just raw data
_________
 - to obtain such a raw file, you can:
    -- get a 128 by 128 24 bits BMP file with your texture
    -- open it with <a href="http://www.irfanview.com/" target="_blank">IrfanView</a>
    -- make sure you have <a href="http://www.irfanview.com/plugins.htm" target="_blank">IrfanView plugin</a> named <a href="http://www.irfanview.info/plugins/formats.zip" target="_blank">Formats</a>
    -- save as the BMP with RAW file type, instructing irfan view to make it 24 bits RGB (not BGR!) and interleaved, meaning bytes follow as RGBRGB...RGBRGB and not RRRRRR...GGGGGG...BBBBBB
_________
 - basically, to check that zveriu.raw (case sensitive!) you have created is wright, file size should be 128 (width) * 128 (height) * 3 (bytes for RGB) = 49152 bytes exactly

Regards,
zveriu@gmail.com
http://andreicostin.com