Implementing a GUI in DirectX

Lycaon

Newcomer
Joined
Oct 20, 2004
Messages
6
I'm messing around with DX9c + VB.NET 2005, and am fishing around for the best (as in most efficient) way to implement a custom GUI in a fullscreen DirectX game.

The drawing isn't much of a problem, though currently ugly visually, I have an ObjectManager class that holds all the windows (and other game objects that need to be drawn) and each window has it's own control collection to handle labels, textboxes, etc.

What I'm looking for is a decent way to add in mouse / keyboard events. I'm using DirectInput to handle them at the moment, however, I'm not sure how to go about 'redirecting' input to the topmost form that I've got drawn over the game GUI, and of course, that means I've got no clue how to do anything as involved as events...

So... Any suggestions? :)
 
Hello,

RetinaX has clean and easily understandable window/widget framework with event and input implementation. You can find the project in source forge:

http://sourceforge.net/projects/retinax/

best regards,
Tommi Laukkanen

PS. If you are interested in UI development with Managed DirectX maybe we could join forces.

Lycaon said:
I'm messing around with DX9c + VB.NET 2005, and am fishing around for the best (as in most efficient) way to implement a custom GUI in a fullscreen DirectX game.

The drawing isn't much of a problem, though currently ugly visually, I have an ObjectManager class that holds all the windows (and other game objects that need to be drawn) and each window has it's own control collection to handle labels, textboxes, etc.

What I'm looking for is a decent way to add in mouse / keyboard events. I'm using DirectInput to handle them at the moment, however, I'm not sure how to go about 'redirecting' input to the topmost form that I've got drawn over the game GUI, and of course, that means I've got no clue how to do anything as involved as events...

So... Any suggestions? :)
 
For a really good example of a GUI System in Managed code you should look at www.c-unit.com, on the site Chad has a tutorial for creating a GUI System simular to the one used in the sample framework that is supplied in the SDK.
 
Back
Top