If i have this, original, setup:
Code: Select all
Game.pp:
-----------
#define W 12
#define H 10
pvert_type pvertArr[W*H];
unsigned int intArr[W*H*6];
gfx.h:
------
struct pvert_type {
float x,y,z;
};
If i then do this:
Code: Select all
Object.h:
----------
#define W 12
#define H 10
class Object {
private:
pvert_type pvertArr[W*H];
unsigned int intArr[W*H*6];
};
gfx.h:
------
struct pvert_type {
float x,y,z;
};
I've made multiple attempts to get this sort of thing working but it just doesn't want to...
I guess i'm missing out some really basic thing to do with arrays in C/C++ but i really can't figure it out!