Posts Tagged ‘C/C++’

Programming 3D games on Android with Irrlicht and Bullet (Part 3)

In the last post, we have created a basic 3D demo application with Irrlicht, in which we put a stack of crates, and we topple them by shooting a cube or a sphere. In this post, we will try to create an on-screen control so that you can move around with it, like using a [...]

Programming 3D games on Android with Irrlicht and Bullet (Part 2)

In the last post, we have built the Bullet Physics, Irrlicht and irrBullet libraries together to create a shared library for the Android platform. In this post, we are going to create a small demo 3D game for Android, using the libraries that we have built earlier. This demo is not really anything new, I [...]

Programming 3D games on Android with Irrlicht and Bullet (Part 1)

Just got a new Android phone (a Samsung Vibrant) a month ago, so after flashing a new ROM and installing a bunch of applications, what would I want to do with the new phone? Well, I’d like to know if the phone is fast enough to play 3D games. From the hardware configuration point of [...]

Pitfall of C++ string for Java programmers

Yesterday, I saw a young colleague struggle with C++ string, so I decided to take a look to see what was going on. He was more familiar with Java than with C++. He was creating a string, and it didn’t come out exactly the way he wanted. The code looked similar to the following: string [...]

Speedup of Quicksort with multi-core programming

Most modern computers have multiple cores, and even new multi-core processors are available for portable devices now. Yet, software are not taking advantage of them. Processors are sitting idle, doing nothing, most of the time. A lot of frameworks, libraries, language extensions, and even new programming languages, have been proposed to take advantage of the [...]

How to install OpenCV on Ubuntu from source

Ubuntu 10.04′s repository only has OpenCV 2.0, but if you want to use the 2.1 version, which was released in April, you would have to build it from source. Here’s a simple how-to. First, you need to install the following required packages to build OpenCV: libgtk2.0-dev libpng12-dev libjpeg62-dev libtiff4-dev zlib1g-dev libjasper-dev libavcodec-dev libdc1394-22-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev [...]

Using C++ in GCC is OK

The GCC Steering Committee has approved the use of C++ in GCC, according to this message. Although the reasons behind the decision were not clear, but it’s probably a decision to make GCC framework more modular, by leveraging the C++ features. As GCC has become the mother of compilers, this decision could have great benefits [...]

How to run gdb in sudo mode in NetBeans

When you are debugging your code in NetBeans, sometimes, you would like to escalate the privilege of your program to do certain things that are not permitted as a normal user. You can certainly run the command as: sudo gdb <your program> But then, that’s not a very nice environment to work in. Otherwise, why [...]

Hello NetBeans, good bye Eclipse!

After using Eclipse almost exclusively for Java programming in the last 7 years, and put up with its different problems, which seem to pile up over the years, I finally took a jump and installed NetBeans 6.8 to see how it’s doing recently. The event that triggered the switch was an upgrade from Ubuntu 9.10 [...]


Switch to our mobile site