1
General discussions / Re: Developing a code edit box with sfml
« on: August 27, 2014, 11:28:23 pm »
Thanks everyone for your help!
I took a look at SFGUI and I'm wondering if it's worth the hassle in my case: I should provide two or three custom controls in my window (and I would like to draw them all from scratch). Since I don't need any buttons, combo boxes or any other control provided by SFGUI I'm wondering if I should use SFGUI in order to mock the "widget" containers it has.
What I mean is: drawing two or three custom controls in a SFML window feels like issuing all the drawing commands in the rendering loop for ALL the controls (no modularity at all, probably also slower since everything gets invalidated each time and all the commands need to be re-issued). Does SFGUI handle selective redrawing only for a widget that needs it?
I know I'm being particular (and also noob) but I'm just trying to learn and find what could work for me.
My new guess is that I might need this sort of "widget distinction" provided by SFGUI and create a widget that works for me (basically handling all events and doing all the drawing I need into a method returning a RenderingQueue like BREW::CreateMyCustomControlDrawable)
I took a look at SFGUI and I'm wondering if it's worth the hassle in my case: I should provide two or three custom controls in my window (and I would like to draw them all from scratch). Since I don't need any buttons, combo boxes or any other control provided by SFGUI I'm wondering if I should use SFGUI in order to mock the "widget" containers it has.
What I mean is: drawing two or three custom controls in a SFML window feels like issuing all the drawing commands in the rendering loop for ALL the controls (no modularity at all, probably also slower since everything gets invalidated each time and all the commands need to be re-issued). Does SFGUI handle selective redrawing only for a widget that needs it?
I know I'm being particular (and also noob) but I'm just trying to learn and find what could work for me.
My new guess is that I might need this sort of "widget distinction" provided by SFGUI and create a widget that works for me (basically handling all events and doing all the drawing I need into a method returning a RenderingQueue like BREW::CreateMyCustomControlDrawable)