Google-apps
Hoofdmenu

Post a Comment On: C0DE517E

"iPhone iPad iPod"

5 Comments -

1 – 5 of 5
Blogger Unknown said...

Hi, I'm like you, looking for C/C++ alternative for iPhone dev. I know many ppl will say we are lazy. I admit too but either I do find one interesting solution. Check out AirPlay SDK. It directly compile C/C++ projects to iPhone executable. Pretty exciting for us! :D

February 28, 2010 at 12:04 AM

Blogger Mārtiņš Možeiko said...

There is also SDL 1.3 version that support iPhone.

February 28, 2010 at 1:03 AM

Blogger DEADC0DE said...

All commercial stuff though. oF is the only free one.

February 28, 2010 at 1:36 AM

Blogger ypp said...

I write my iGame entirely in C++. In order to hook my "engine" to Objective-C I used approach described here:
http://iphonedevelopertips.com/cpp/c-on-iphone-part-1.html
(There are 3 parts.)

In two words: Obj-C able to call C-functions. So, you create .h file where you place C-style function declarations and .cpp file where you redirect function calls to C++ part.

Use of this scheme is pretty straightforward. I create a new iPhone project from iPhone/OpenGL template and insert "bridge" calls into a few places. And that's it.

March 1, 2010 at 4:17 AM

Anonymous Anonymous said...

Keeping most of your logic in C++ is fine... but I'm not sure you are saving yourself any effort by not learning objective-c.

It's not that complicated of a language... I actually learned objective-C before I learned C++, and it was like 1/100th the effort.

I think you may be assuming it will be more difficult than it is by comparison with having learned C++. You can probably become proficient at objective-C over a weekend.

http://www.otierney.net/objective-c.html

March 1, 2010 at 2:19 PM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot