I'm trying to find a way to create a pointer inside a class that points to an image variable that has already been created. That way instead of always passing the image to the class to work with it the class already knows what image to use by just using the pointer.
The first way I tried it wound up creating a new version of that image in memory for each class loaded which quickly bogged things down when many of the classes started popping up.
So now I'm looking for a way to have every class point to the same image in memory without making a new one every time.
Make a pointer to that data type in the class, then in the constructor, let it point to the address of the variable. In that case, you would have full access to that variable, within the class.