How much C++

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
SmoothOp23
Posts: 1
Joined: Wed Apr 24, 2013 11:54 pm

How much C++

Post by SmoothOp23 »

How much c++ should I learn to work with Irrlicht. I was reading c++ primer 5th edition but it seemed to cover more than was nessecary. For example bits, I doubt I will ever use them in Irrlicht. I can kind of grasp the tutorials but I don't know much c++ just loops,arrays/vectors,strings, and arithmetic. I dont know about classes. I understand pointers with ints and other built in types but I dont understand how a pointer to a driver or mesh or scenemanager work. I want to learn enough c++ to write a game with irrlicht.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: How much C++

Post by hybrid »

Well, even bits can be useful, e.g. when working with the selection masks in scene node selection. Anyway, classes are fundamental, and you won't get far with just basic program logic constructs. Work through any of the C++ books until the 'advanced' stuff begins, which is also marked as such inthe books. Or - to make it more related to Irrlicht - work through the examples given in the Irrlicht SDK and read the book always when you reach a construct that you don't understand. There's no way to an Irrlicht based application without good C++ knowledge
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: How much C++

Post by Mel »

Let's say much C++ will never be enough C++... Learn as much as you can, and you will have it a lot easier.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Stauricus
Posts: 20
Joined: Mon Jun 25, 2012 10:12 pm
Location: Uberlandia, Brazil

Re: How much C++

Post by Stauricus »

well, i think you NEED pointers and classes to work with Irrlicht... and almost everything else (plus pointers and classes) to make a game.
Lambda
Posts: 126
Joined: Wed Feb 27, 2008 3:00 pm
Location: Spain, Huelva
Contact:

Re: How much C++

Post by Lambda »

On my opinion the hardest part to program in C++ or any other language is not knowing the language itself but knowing how to design your software, in order to use irrlicht and not run in a endless loop of crashes and circular dependencies you will need a decent level in C++ and software design, an example i always write to someone who wants to write "complex" C++ code is this small snippet, if you dont understand what it does and why it outputs what it does then you need to keep reading about C(++)

Code: Select all

char* test = "hello";
    
    while( *test )
    {
        ++*test;
        ++test;
    }
Image
darksmaster923
Posts: 51
Joined: Tue Jan 02, 2007 11:04 pm
Location: huntington beach

Re: How much C++

Post by darksmaster923 »

Having a strong understanding of C++ will definitely help you a lot. You will write better code and design your program better if you understand why everything works together rather than simply being able to write code that functions.
Programmers are merely tools to convert caffeine into code.
ibax
Posts: 193
Joined: Thu Jun 21, 2007 8:56 am
Location: hungary
Contact:

Re: How much C++

Post by ibax »

is there any GOOD book, which is dedicated to c++ with game programming? I'm searching for book like this...
omegasteffy
Posts: 7
Joined: Sun May 05, 2013 12:06 pm

Re: How much C++

Post by omegasteffy »

I highly recommend the video lectures on PluralSight regarding c++
bdpdonp
Posts: 68
Joined: Sat Oct 10, 2009 6:35 am

Re: How much C++

Post by bdpdonp »

There is another possibility, c# with IrrlichtLime. C# is an easier language to learn. And with the Lime wrapper you can your irrlicht. This works well. I personally do this or use C++ with irrlicht, running comparisons.

As for books, a single book that covers c++ and graphics is not wise as it does both poorly. Get a book on C++. Ivor Horton books are good.

Then for graphics, you need to learn about Graphics in General, there are many books available or online. The books on Irrlicht are good but they assume at least a basic knowledge on Graphics.
Post Reply