iPhone Development

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

iPhone Development

Post by ibly31 »

Hi, I'm starting with iPhone Development. I know most of you guys are making stuff for windows, but maybe there are some Mac guys. Does anyone know a good 2D graphics library for the iPhone? I've heard of cocos2d, but I don't want some complex stuff with scenes and directors and layers, all I want is to apply surfaces like in SDL, and whatever comes last is on top. All I need is graphics because I can handle touches easily with UIKit.h. Any help?
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: iPhone Development

Post by Falco Girgis »

There hasn't been an SDL port/Obj-C version for iPhone yet?
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: iPhone Development

Post by M_D_K »

GyroVorbis wrote:There hasn't been an SDL port/Obj-C version for iPhone yet?
There has, but the OpenGL section of it can't be released due to NDA from Apple(blame them). It was done in the GSOC '08 I think.
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: iPhone Development

Post by ibly31 »

Yes, it has been released, I emailed the creator, and apparently iPhone 3.0 firmware doesn't work with it... Something about OpenGL's video being different. The creator says he doesn't have the time to fix it, sadly.
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: iPhone Development

Post by Innerscope »

Why don't you use OpenGL ES? They have sample code off of the Apple Developer site: http://developer.apple.com/iphone/libra ... /OpenGLES/
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: iPhone Development

Post by davidthefat »

Innerscope wrote:Why don't you use OpenGL ES? They have sample code off of the Apple Developer site: http://developer.apple.com/iphone/libra ... /OpenGLES/
they use that for the PS3 too interestingly...
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: iPhone Development

Post by M_D_K »

davidthefat wrote:
Innerscope wrote:Why don't you use OpenGL ES? They have sample code off of the Apple Developer site: http://developer.apple.com/iphone/libra ... /OpenGLES/
they use that for the PS3 too interestingly...
Sony's consoles don't use off the shelf OpenGL ES it's a custom version(which doesn't even use the names like glTranslate closer to sceGuTranslate(PSP func)). Now if you're talking about making stuff in linux on the PS3 it would use a more standard version of GL.
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: iPhone Development

Post by ibly31 »

Yeah, I've tried OpenGL ES. I'd just like the process to be simpler because I have tried for hours on end just to set up a simple landscape orthagonal 2D viewport to no avail. After that, I understand how to rotate, texture, and size sprites(I call them sprites but they are really triangle strips with images on them).
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: iPhone Development

Post by Falco Girgis »

ibly31 wrote:Yeah, I've tried OpenGL ES. I'd just like the process to be simpler because I have tried for hours on end just to set up a simple landscape orthagonal 2D viewport to no avail. After that, I understand how to rotate, texture, and size sprites(I call them sprites but they are really triangle strips with images on them).
Of course. It's the same with Dreamcast. the PowerVR architecture (same family of graphics chip in DC and iPhone) was designed to handle only triangle strips (extremely effing efficiently). So you render two in a 'Z' fashion. Make a function do that, it should take like 10 extra seconds.
Post Reply