Roadmap for 0.9.0

Two approaches might be taken with ortho context. Either emulate what we see in the GL context:

OrthoContext.useTexture(Texture texture);
OrthoContext.vertex(float x, float y);
OrhtoContext.texCoord(float u, float v);
OrthoContext.startQuad(); // or strips
OrthoContext.endQuad();
OrthoContext.startTriangle(); // or strings
OrthoContext.endTriangle();

Or you could make it a bit more Graphics2D like with

OrthoContext.drawRect(float x, float y, float width, float height);

It’d be more work initially but it would also make Xith very easy to understand when working with GUIs. You could just draw whatever you wanted to over the top of the scene in an accelerated way. Naive implementation would be just to proxy the methods onto a GL context configured for orthographic projection - more complicated might be to cache the calls into arrays and spit them to card in batches.

If someone came along an implemented a DirectX layer you just translate the calls into whatever it needs to be for DirectX - which I seem to remember is pretty similiar at this basic level anyway.

Re: Contribute - I don’t use Xith active and I have plenty of other stuff to do at the moment. I’m also not too keen on the style of responses I’ve seen with respect to contributions recently.

Kev

I’ve just finished adding a Description class to all Widgets that need one. Now the Widget handling should be even simpler. And it helped me a lot in theming.

Additionally we now have a RadioButton Widget and a Checkbox Widget. In org.xith3d.ui.hud.util there is a new class called StateGroup. One should always add RadioButtons to an instance of StateGroup, which manages the activation state of all members such that only one RadioButton in the group can be activated at a time.

Marvin

StateGroup is called ButtonGroup in Swing/AWT.

[quote="<MagicSpark.org [ BlueSky ]>,post:43,topic:28006"]
StateGroup is called ButtonGroup in Swing/AWT.
[/quote]
Renamed.

And I’ve added a Frame Widget, which can be dragged with the mouse. It is not entirely ready but is is already usable.

The Frame Widget is complete now. Well, it is not yet movable. But this is lower priority.

I just added the new HIAL version (1.4) to xith-tk which adds support for the mouse wheel and the possibility to monitor a “mouse-stopped” event, which is useful for tooltips. This event is fired, when this feature is enabled and the mouse hasn’t moved for a certain amount of time. Additionally the pressed and released events get the current mouse x and y position as parameters.

For the new events the listeners needed to be enhanced. This is done in new, separate listeners (postfix “2”), such that the old ones still exist and the whole thing is fully backwards compatible.

This version still has problems with an AWT event bug on Linux which is discussed in this thread.

Marvin