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 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?
Overloaded function calling overloaded function
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 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
-Japanese Proverb
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.
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
-Japanese Proverb
Maybe these links help:
http://www.experts-exchange.com/Program ... 09971.html
http://www.functionx.com/cpp/Lesson13.htm
(Section "Multi-Dimensional Arrays and Functions")
http://www.google.com/search?ie=UTF-8&q ... onal+array
http://www.experts-exchange.com/Program ... 09971.html
http://www.functionx.com/cpp/Lesson13.htm
(Section "Multi-Dimensional Arrays and Functions")
http://www.google.com/search?ie=UTF-8&q ... onal+array