Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - erklest22

Pages: [1]
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)

2
General discussions / Re: Developing a code edit box with sfml
« on: August 27, 2014, 01:10:21 pm »
Thanks for the answer. The control I'm looking for strives for flexibility and might have features similar to sublime text's one (i.e. multiple carets, drawings here and there, etc...) so implementing all those features as hacks for existing controls sounds like suicide to me (maybe I'm wrong though). I thought of Cairo in the first place since GTK+ (newer versions) uses it, but it seems porting to win32 isn't that great and I would have to rewrite the controls in something that works on Windows.

I'm a newbie in this field though and I might be getting something wrong.

3
General discussions / Developing a code edit box with sfml
« on: August 27, 2014, 11:59:38 am »
I would like to create a new custom code edit box control for a cross-platform editor but I'm currently evaluating some frameworks like SDL, Cairo and SFML.

Is it possible to implement a text edit box control (with code syntax highlighting and smooth scrolling) in SFML? Does SFML provide hw acceleration only when using openGL?

Any thought is welcome  :)

Pages: [1]