Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 23 Apr 2008
Offline Last Active Apr 05 2015 05:56 PM

Posts I've Made

In Topic: Can you write mobile games in C++?

26 February 2015 - 05:49 PM

Not sure what to tell you here, other than that it works.

From my experience at tri-Ace, there are no Android NDK (C++) debuggers that work on all devices, only for a limited set of them.And according to the 2nd link you posted, you have to use quite a retarded hack to get breakpoints to work, assuming the device is supported in the first place.L. Spiro

At work I have personally debugged a large C++ library on ten or so devices, mostly Asus, Samsung, Sony, LG and Motorola, without issue. I an aware that other engineers have debugged on other devices, including from smaller international Android handset manufacturers.

We have a compatibility spreadsheet which indicates successful testing of both our library and development environment on 60 or so devices. All of these devices are Gingerbread or above; possibly prior to this support was less mature.

I am sympathetic to you scepticism but in reality I've found support for debugging effectively ubiquitous.

As for the "retarded hack", it is true that gdb takes a few seconds to attach. If debugging some user controlled event this is not an issue. If debugging application startup it is sometimes necessary to include an artificial delay (i.e., sleep(5) or similar). Not too onerous but yes, somewhat irritating.

In Topic: Can you write mobile games in C++?

14 February 2015 - 08:35 PM

This is not true, you can use ADT and to 'visually' debug in Eclipse. It works fine.

http://developer.android.com/tools/debugging/debugging-projects.htmlI see no mention of C++ there.L. Spiro

Not sure what to tell you here, other than that it works. It uses the gdb version shipped with the NDK toolchain, and integrates with the Eclipse C++ view.

See http://tools.android.com/recent/usingthendkplugin and http://stackoverflow.com/questions/17705109/how-to-debug-c-c-code-ndk-in-eclipse

I guess you are unable to find more recent docs as ADT is being deprecated in favour of Android Studio.

In Topic: Can you write mobile games in C++?

12 February 2015 - 05:50 PM

Not to mention that Android’s NDK’s (which you must use if you use C++) debugging tools are severely lacking.With Android you get the choice of having full debugger support, but you have to use Java, or you can use C++, but with virtually no debugging support.It’s basically like a guy giving you 2 choices: A: he knees you in the groin or B: you groin him in the knee.L. Spiro

This is not true, you can use ADT and to 'visually' debug in Eclipse. It works fine.

In Topic: [JAVA] What if I don't define the toString() method?

25 May 2013 - 04:51 AM

A hash code should be immutable and deterministic so is unlikely to be based on memory address?

In Topic: Polygonizing a grid after subtracting an irregular portion

14 February 2013 - 12:26 PM

Here I only know the grid points And the boundary points to be subtracted. Boundary points may not fall within the grid points. Then with which coordintes I need to construct the delaunay triangulation? Could you explain?

Well, you could triangulate the boundary, do an intersection test of all the grid points against the triangles, remove those which intersect then retriangulate with all remaining points?

Wouldn't be particularly efficient but should work I guess...

If using python, Shapely is a nice library for stuff like this.