L
Lilith
I'll admit that I haven't even attempted something like this since
I've never had a need to before. Basically the class I'm creating is
a screen graphic. Many of the member functions need to know what
surface, the one that represents the screen display, to draw to. I'm
trying to avoid having to rely on a global surface with a specific
name declared in order to make the system work.
For now I've included a pointer to the screen surface, represented by
a structure, in each object and initializing each of them to point to
the screen surface. Maybe I don't understand the usage but I tried to
make the pointer a static member so I'd only have to initialize it
once to make all class object know where the screen was. But on
compiling I get a complaint that there's a problem resolving an
external address, namely the pointer I'm referring to.
Advice please?
I've never had a need to before. Basically the class I'm creating is
a screen graphic. Many of the member functions need to know what
surface, the one that represents the screen display, to draw to. I'm
trying to avoid having to rely on a global surface with a specific
name declared in order to make the system work.
For now I've included a pointer to the screen surface, represented by
a structure, in each object and initializing each of them to point to
the screen surface. Maybe I don't understand the usage but I tried to
make the pointer a static member so I'd only have to initialize it
once to make all class object know where the screen was. But on
compiling I get a complaint that there's a problem resolving an
external address, namely the pointer I'm referring to.
Advice please?