Hi, I tried to build an application where I would make a loading window, then load everything (into OpenGL) (textures, audio etc etc), then I would create the main window and after that destroy the loading window. The point is that you can only load textures into OpenGL when the window is already opened. So I had to rewrite the window creation part a few times, these were some problems/things I ran into:
1. The second created window (my main window) starts minimalised. I didn't find any function to put maximalise it.
2. When I slightly modified the code, the second created window (my main window) started unfocused. It was behind the first created console in CodeBlocks (for debugging), though in release mode it would not occur, it would still be nice if we could make a window on focus.
3. After small changes, I wanted to load the main window and make it just not shown (loaded but not shown). When I made it not show after initialisation it, ofcourse, displayed for a few milliseconds and then disappeared. It would be nice if we could hide a window from start, and unhide it when needed. This way the window is initialised and can be showed very quickly.
4. After the loading was done, I wanted to destroy the loading window. I now use 'new' and 'delete' for that, but perhaps a function called 'destroy' in the class would be nice too. (I'm quite new to C++, can I call the deconstructor manually?)
5. Error handling. SFML automatically outputs to the console when an error occured. Thats nice, but what if I output printf() to a file and want to use my own error handling? It would be nice if we could use something like 'geterror' and it would return the latest generated error. And eventually 'geterrno' which would return a error code which can be identified and dealt with.
Just some idea's/suggestions, I really like SFML
, would be wonderfull to see it improved even more
.
Thanks,
Daevius