Ok I have the problem that I need to use an array inside of a class pointer but I want to pass the whole array and make it into a temp array to render.
//rendering tiles and player
void render()
{
currentLevel->
}
...
class level
{
public:
level(void);
virtual ~level(void);
void loadmap(std::string filname);
private:
int map[10][10];
};
Are you trying to access the map array inside the "currentLevel" instance of the level class?
In that case you might want to add an accessor function to the level class so that you can retrieve elements from the private 2d map array.
If that isn't what you are trying to do, could you provide more detail in your question?
I just fixed it thank you anyways... I was going about it wrong lol I was trying to send all of my info into a render function when instead I should have had an individual render method for each level instance. That in turn made passing that array unnecessary... :P