Author Topic: C++ success stories?  (Read 3994 times)

clach04 (OP)

  • *
  • Posts: 256
C++ success stories?
« on: December 23, 2010, 06:44:50 am »
I spent some time today updating Ivo Danihelka's Ships from http://ivo.danihelka.net/ to run with 320x240 screen resolution (on x86 Linux). The code for that is now available from https://bitbucket.org/clach04/ships

.... However I'm not able to build this with Native SDK http://code.google.com/p/dingoo-sdk/ the issue appears to be related to std:list. I'm not a C++'er though.

Has any one had luck with C++ with the native SDK? I could hack out the list usage and try and put in a simple C list or I could try uClibc++ but I'm lazy ;)

Thanks!

Harteex

  • * Administrator
  • Posts: 709
    • Harteex Productions
Re: C++ success stories?
« Reply #1 on: December 25, 2010, 09:32:01 pm »
The SDLPong sample is C++, maybe that could help with something.
Have a look at the makefile for SDLPong aswell, to make sure you have everything you need.

Also, look through this google code issue for the status on the C++ support, if you haven't already seen it.
« Last Edit: December 25, 2010, 09:34:06 pm by Harteex »

djdron

  • *
  • Posts: 33
Re: C++ success stories?
« Reply #2 on: December 26, 2010, 10:29:17 pm »
Look at spartak chess sources. C++ & stl.

clach04 (OP)

  • *
  • Posts: 256
Re: C++ success stories?
« Reply #3 on: January 08, 2011, 09:47:36 pm »
Thanks for the all the replies, the stlport included with the SDK is fine for ships. It turns out I'd messed up the include dir and accidentally set the include dir to the include files shipped with the compiler  :-[

Once I fixed up the makefile (modelled on SDLPong demo) and finished the port all was fine  :)

Screen shots (from desktop version):





Basically you crash into ships to steal the guns.

Dingoo controls:

d-pad  : move
Select : quit
Y : Fire

Currently getting ~90fps (with music playing).

Download from: https://bitbucket.org/clach04/ships/downloads?highlight=18848

[edit change gfx link to use small image]
« Last Edit: January 08, 2011, 09:50:38 pm by clach04 »