Jump to content

PFWGui - Source Code Now Available


Patrik
 Share

Recommended Posts

PFWGui is an OpenGL gui library. The library has been mainly developed and tested in the LeadWerks engine under Windows operating system. The goal is to support any OpenGL engine but LeadWerks is the only one I've tested it with so far. A DirectX version is also planned. The library is still in a very early stage and no thorough testing has been done yet so use at your own risk.

 

PFWGui makes use of FTGL for font rendering, Simple OpenGL Image Library (SOIL) for image loading and ksignal for the signal/slot mechanism in the gui.

 

PFWGui + Source code is available at my google code page: http://code.google.com/p/pfwgui//

 

screen2.png

 

 

Features:

- Several gui components

- Event driven

- No dependencies to leadwerks

- (should run in any opengl applications)

- All "painting" is done by one class + one for font rendering.

- Could be switched to allow it to run in DirectX applications also, not tested yet

- Signals & slots

- True Type Fonts

- Customizable colors & Shapes (rounded corners)

- Window Management

- Window Layouts

 

 

Current supported gui components:

Labels

Buttons

Checkboxes

ComboBoxes

EditBoxes

ListBoxes

ProgressBars

ScrollBars

Sliders

TextBoxes

RadioButtons

PieCharts

BarCharts

LineCharts

Images

GridView

  • Upvote 5
Link to comment
Share on other sites

I think you forgot to include the shaders.pak file as it wouldn't work without that.

 

Very nice demo though :)

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

I think you forgot to include the shaders.pak file as it wouldn't work without that.

 

Very nice demo though :)

 

Thanks, ok I must remember to include that one in the next demo then. :D

 

 

Will you release this library ? :)

 

If I get it to such a state that I would feel comfortable releasing it and if there are people that want to use it. I would most likely make a library of it and and release it.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Now that i actually dealing with "constructing" a menu i realised that all kinds of glsl shaders are "not" reachable with in 3rd party solutions ... if you just use leadwerks build in commands it would be xtreemly nice to share your work here. :)

 

anyways, keep it up.

AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3

zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5

 

adv_banner-april2012_720x150_tex01.png

 

Xxploration FPS in progress ...

Link to comment
Share on other sites

Will you release this library ? :)

 

If I get it to such a state that I would feel comfortable releasing it and if there are people that want to use it. I would most likely make a library of it and and release it.

 

Oh believe me, there will be people interested in this. I am for starters.

 

A more important question would be: is it going to be free? :rolleyes:

 

The only bit of a GUI I've managed to do is a progress bar... with blocks and rounded edges! (rather than a solid fill with sharp edges) Some achievement huh? This however, is exceptional stuff

LE Version: 2.50 (Eventually)

Link to comment
Share on other sites

imho the style would be quit nice for a HUD too and i might snatch the idea.

Number 47 uses such hud which makes it look just funktional inGame - these kinds do suffer quit easy from over doing things however.

AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3

zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5

 

adv_banner-april2012_720x150_tex01.png

 

Xxploration FPS in progress ...

Link to comment
Share on other sites

  • 2 weeks later...

Update:

- The gui is now completely event driven. No need to poll input etc.

- No dependencies to leadwerks anymore. Should run in any OpenGL application.

- All gui "painting" is handled by one class. Can be switched out to a DirectX "painter" to allow it to run in DirectX applications also.

 

New Components:

- Line Charts

- Image component

- allows scaling, zooming & panning

 

Screen shots

 

LineCharts

lineChart1.pnglineChart2.png

 

Image component

img1.pngimg2.pngimg3.png

 

 

 

Oh believe me, there will be people interested in this. I am for starters.

 

A more important question would be: is it going to be free?

 

That's nice to hear. :) I haven't decided yet, but most likely it will be a free library.

Link to comment
Share on other sites

Very nice like always, you will made the life easier for hundreds of LE owners with this lib ! I want it now

 

Thanks. There are still some features missing before I can release a test version.

 

 

What about layout editor? )))))

 

Maybe later. First I need to get window management and component layout implemented. :)

Link to comment
Share on other sites

Very good work!

 

I haven't decided yet, but most likely it will be a free library.

When you will be ready with a cool visual editor I would think a little more on this, it could reveal a nice earn if you sell it on Asset Store even at low price, I hate to see only models and textures on the store and I'd like to see specialized libraries and scripts there to let it grow up.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Link to comment
Share on other sites

  • 1 month later...

Ok finally some updates ;)

 

The gui now supports basic window management. Resizable & movable windows.

The windows can also have layouts assigned to them. The layouts handles the components attached to the window i.e. positions and rescales the components in relation to the window.

 

A new demo is available for download in the first post if you want to check out the new features.

 

Example

 

wnd1.png

 

wnd2.png

 

screen2.png

Link to comment
Share on other sites

  • 3 weeks later...

A test version of the library is now available in the first post.

 

To use it you need to include the "include" folder in your project and link it agains PFWGui.lib

Also you need to have the ftgl.dll file in your application folder FTGL is used for font rendering.

Currently the font folder is harcoded to Data/Fonts where arial.ttf must be located.

 

A simple example is included in the examples folder. More are coming, along with some documentation.

 

As it's a test version expect some bugs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...