Hi
Can some one tell me Which are GUI that support JPCT. ???
With Regards
San
Swing/AWT when using software or AWTGLRenderer (to a degree), FengGUI when using "native" OpenGL-renderer. I'm not aware of anything else, but you can of course write your own simple GUI by blitting stuff to screen, if you want to.
Its nothing over complicated to make your own.
I have my own. That way, you can be sure it isn't bloated, and overkill for your purposes.
Cyberkilla,
Is there any way you can share your approach with me? I am trying to integrate FengGUI and it does seem heavy. How do I access the GL pipline from JPCT easily?
Tomer.
After scene rendering you get a FrameBuffer - there you can draw your GUI in its current state.
Yup, this is what I do also.
I would give you the source, but its a little too custom made.
I have a few classes to implement keyboard/mouse focus, nested controls, etc.
Each control is extended from an abstract control.
I currently have a text/pass field, button, window, label, bevel.
I might do a scroll bar, if it can't be avoided.
If you have something specific, I will help as much as I can:)
Hi
Can any one help me for creating Gui (front end ) in JPCT.
After scene rendering you get a FrameBuffer - there you can draw your GUI in its current state. |
Can any one give small example for same..
With Regards
San14
The "advanced example(tm)" includes some very basic GUI-stuff in the gui-package. Even simpler: Blit some textures on screen containing the GUI elements and evaluate mouse- and keyboard-input to check if the user has typed or clicked onto something.