1
Window / Re: <SOLVED> sf::Window in my own class trow Errors
« on: November 29, 2012, 10:57:03 pm »
Hello,
thanks alot for the advice with the globals. I know, you should not use them, but the logfile for example i want to have global. But i changed some of my stuff and use some pointers and your advice with the .cpp files to initialize them. Now all works fine with the window!
but now i have a strange crash when closing the window/application. I dont use an ATI-Graphicscard. And it looks like it depends on a pointer, but dont know which one..
thanks alot for the advice with the globals. I know, you should not use them, but the logfile for example i want to have global. But i changed some of my stuff and use some pointers and your advice with the .cpp files to initialize them. Now all works fine with the window!
Quote
SFML is 'just' a multimedia library and by far not an engine/framework.Sorry, my mistake.. but its great anyway
Quote
I'm not trying to take away your motivation, but keep in mind that programming a game (specially a 3D game) isn't trivial at all and needs way more than 'a little bit C++' knowledge. At best you get a good book about C++ and read it front to back.I know, a good game needs definitly more than some knowledge. I just want to try and have some fun with openGl and the SFML 2.0. Some cubes jumping around and a working camera... The result should not be a game. Just a window with some rendered stuff in it^^ I just evaluate the code by time. So... no you don't take my motivation away
Quote
The solution to it is, don't use global instances, in fact don't use any globals at all, but wrap things into a class, think about a better approach to accessing your window and pass things around with references.Thanks to you too, it works
but now i have a strange crash when closing the window/application. I dont use an ATI-Graphicscard. And it looks like it depends on a pointer, but dont know which one..