Overloaded function calling overloaded function

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.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Endar wrote:i didn't have '= 0' at the end of the prototype. Anyone care to explain what exactly that does and why it's necessary?
If you would pay attention to the posts of people that try to help you, then you should at least now, that "= 0" makes the virtual function pure virtual...
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

I've compiled the engine and I'm trying to test it, but when I call the function, it has an issue with the type of the array.

The array is declared just straight as 'f32 heightmap[256][256]' and in the other functions, it is declared in the parameters as 'f32* heightmap[]'.

So, how do I declare a pointer to a 2d array?

@jox: apologies, I was half-way to fixing it and thought I was onto something and didn't see that part of your post, until you just pointed it out.
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
Felipe
Posts: 25
Joined: Thu Jun 10, 2004 9:13 pm
Location: Rio de Janeiro

Post by Felipe »

Hey, Endar, can you send the DLL to my e-mail? I'm eager to see my terrain engine working and I need this code to do it. :P
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

No problem, I'll send it to you as soon as I've figured out how to declare a pointer to a 2d array, cause that seems to be the only problem right now. I'm not able to test it yet. But as soon as I get it working (if someone can answer, hopefully only another day or two, max) I'll email it to you. :D
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Post Reply