GUI with SFGUI (works great - thanks, Tank!)You're welcome, but don't forget the other contributors. ;)
Nice, that project actually looks like you are working on it for quite a long time. I'm not a fan of the graphics style, but that's just eyecandy. ;)
Oh btw, are you accepting shirts? ;)
Bah... this means I still have a reason to work on SFGUI -_-
jk :P Nice job, it's always a good feeling to see the library put to good use :)
Get it here: https://github.com/DrSuperSocks/Fission (https://github.com/DrSuperSocks/Fission)
I knew this thread was gonna end like this after I've seen the code on github using bare news and deletes. :P
...maybe I will take my memory management more seriously haha.
You didn't :P, in presence of Nexus any post that is traceable to manual memory management(and especially bugs in it) is derailed by definition.I knew this thread was gonna end like this after I've seen the code on github using bare news and deletes. :P
I didn't mean to derail the thread -- it's just that the files containing the most basic example of how to use the OP's code have unclear object ownership, which makes me worry about any other part of the code.
By not making all the managers to singletons, you allow other uses. I don't see why they need to be a singleton, the alleged convenience has many disadvantages, which are not necessary with a clean design.
I am in favor of this idea. If you want other people to use your code (and it's awesome that you do!) then you have to work hard at making it clear how it works.
I think there is a lot of cool stuff in Fission, and I'm still going through it to see how it works. Thanks again for sharing with us.
You didn't :P, in presence of Nexus any post that is traceable to manual memory management(and especially bugs in it) is derailed by definition.Meanwhile I at least point to the RAII thread, instead of explaining everything again and again. :P
Nexus, thanks for the detailed feedback! You sound like a pretty picky coder ;)You're welcome. You're right, you have to be picky when you want to develop an open-source library :D
Could the Game class be a singleton to access all of the managers?Why should it? Can't the game class just contain the component managers as members? There is almost always an alternative design to singletons.
The question here is: Why? What does Game do that everything needs to know of? And should it do that? Is that the kind of thing that belongs in Game? Or is it something that is not the responsibility of Game?
If there are no singletons, every single class that needs to reference any manager needs a reference to its corresponding Game.Why can't it have a direct reference to the manager? You create a lot of dependencies if every class knows Game and thus every manager.
Right now, all classes that need to reference Game [...] inherit from GameRef, which takes a Game* as a parameter to the constructor, has a private Game* member, and has a corresponding accessor.That sounds unconventional, but it's already much better than the singletons ;)
Some .cpp files are missing their header counterparts. Also getting a ton of redefinition errors.
This is all very confusing to implement x.x.
Nevertheless this seems very awesome.