Page 1 of 1

About iPhone graphics handle problem

PostPosted: May 18, 2009 @ 9:26am
by binarybard
Hi! I'll try to make iPhone Game by EDGELIB.

iPhone add png file to Resources grops. And it creates image pointer of each file. So iPhone handle for gamegraphics to use it.

How can we hadle png format on EDGELIB for iPhone?

And What is method for loading graphic file and animate it on EDGELIB for iPhone. Or Where are samples(information) about it?

PostPosted: May 19, 2009 @ 11:09am
by edge
Hi,

Images in EDGELIB are stored in surfaces, E2DSurface and E2DSurfaceRGBA (with an alpha channel). The source code in the Blaster sample (delivered with the SDK) demonstrates how to create and use surfaces to draw images on the screen.

Please note that the Blaster sample is outdated and doesn't use OpenGL to get the best performance on your iPhone. Please follow the OpenGL and 3D tutorial on EDGELIB as well, even if your game only draws 2D images.