Here's my struct. Theres more in it but i'm only posting relevant code. This is in
classes.h
struct thing
{
thing()
{};
thing(SDL_Surface image)
{
this->image = image;
}
SDL_Surface image;
}
Here's my object I want to create. This is in
things.h.
thing tree1(tree);
The sdl_surface doesn't need to point to an image yet, I just want it to be named and in memory so I can use it for something else. When I try and compile this I get this error.
error C2065: 'tree' : undeclared identifier
Now obviously i'm doing something wrong but I don't know what. I have sdl and sdl_image included in both files and I have classes.h included in things.h. Is what i'm trying to do even possible?