jPCT - a 3d engine for Java => Support => Topic started by: san14 on March 03, 2007, 08:37:35 am
Title: GUI which Support JPCT
Post by: san14 on March 03, 2007, 08:37:35 am
Hi Can some one tell me Which are GUI that support JPCT. ???
With Regards San
Title: Re: GUI which Support JPCT
Post by: EgonOlsen on March 03, 2007, 11:52:30 am
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.
Title: Re: GUI which Support JPCT
Post by: cyberkilla on March 03, 2007, 03:38:02 pm
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.
Title: Re: GUI which Support JPCT
Post by: tomer.sagi on March 12, 2007, 05:56:47 am
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.
Title: Re: GUI which Support JPCT
Post by: halcor on March 12, 2007, 10:55:18 am
After scene rendering you get a FrameBuffer - there you can draw your GUI in its current state.
Title: Re: GUI which Support JPCT
Post by: cyberkilla on March 15, 2007, 03:31:04 am
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:)
Title: Re: GUI which Support JPCT
Post by: san14 on June 13, 2007, 02:36:36 pm
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
Title: Re: GUI which Support JPCT
Post by: EgonOlsen on June 13, 2007, 05:18:55 pm
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.