SFML community forums

Help => General => Topic started by: NinjaFishleg on March 17, 2014, 09:17:45 pm

Title: A darkening suspicion with my SFML setup and Classes
Post by: NinjaFishleg on March 17, 2014, 09:17:45 pm
I have a suspicion that for some reason my Classes with SFML are behaving wrong (maybe due to my install?). Could a SFML hero spend a few seconds of there day to reply with a quick classes example with sfml?

example:
class classname{
    public:
        sfml member
}

This is either me being an idiot or my setup is wrong (it seems strange that only classes would mess up)

Thanks in advance!
Title: Re: A darkening suspicion with my SFML setup and Classes
Post by: Nexus on March 17, 2014, 09:24:20 pm
Can you be more specific about your problem? Please read this thread (http://en.sfml-dev.org/forums/index.php?topic=5559.0) before posting.

The only thing you should keep in mind is to avoid global/static variables of SFML types. But there's no fundamental problem with classes.
Title: Re: A darkening suspicion with my SFML setup and Classes
Post by: NinjaFishleg on March 17, 2014, 11:16:57 pm
Thank you Nexus! Kind as always! Keep up the good work.
Title: Re: A darkening suspicion with my SFML setup and Classes
Post by: Laurent on March 17, 2014, 11:54:49 pm
Quote
my Classes with SFML are behaving wrong
Quote
This is either me being an idiot or my setup is wrong
You should describe your problem (precisely) rather than being vague and saying you're maybe an idiot ;)

Do you have a compile error? Linker error? Crash? Unexpected behaviour?