Members - Reputation: 199
Posted 08 June 2011 - 09:58 AM
Hello, I recently started development in SFML and I would like to know whether the code I wrote (attached) is perfectly fine.
Basically, I seperated my little app into functions and I use a pointer to my RenderWindow in each function. Is it ok to use such pointers, or should I call the RenderWindows methods using some other way (eg. global non-pointer, argument, etc...)?
Thanks in advance,
main - Copy.cpp.txt 3.56KB 83 downloads
Moderators - Reputation: 10573
Posted 08 June 2011 - 10:09 AM
Your signature is incredibly big. See if you can condense it, e.g. strip out the quote tags:
A n00b programmer: someone once told me learning C++ was like learning how to juggle knives...
Servant of the Lord: That's not true at all! C++ doesn't require anywhere near the hand-eye coordination juggling requires. And with C++ after you slip and kill someone with the knife, you can reuse it for something else afterward. With actual knives, you have to get rid of the evidence.
Something like that.