OpenGL UI Development

Published September 20, 2004
Advertisement
I've spent some time some time developing a "Window Manager" for developing UI's in OpenGL. My goal was to make a flexible programmable UI with a familure object interface such as a Microsoft Windows developer would be familure with.

Within my window manager is a list of available controls that can be placed on a window. As of right now all I have

Button
Checkbox
Radio Button (Option list)
Spin List

Controls that are 'on the list to create'
-----------------------------------------

- Drop down menus
- Grids
- List boxes (with single and multi select)
- Slider bars
- Scrolling Text Boxes

Features on the list
--------------------

- Modal Windows
- Predefined Window list (things like Message boxes / Yes - No Boxes / Input Boxes
- Window Stacking - When you place a window ontop of another they 'combine' and could be easily switched.
- Hotkeys

This will expand to more but for a demo I wanted at least these controls. Obviously I still need text boxes and such, but I wanted text handling to be its own monster thats inherited by a control.

This handler is contained is static library developed in C++. The only limitation in terms of rendering is the user may not change the faces (ie the shape) of the window. They can change the texture coords and define how they want to render the window. The library has predefined render functions but those do not have to be used. Windows can be 'skinned' and that image and the coords where to find each skin area can be defined by the user.

The hardest thing about developing this UI has been simply adding too much. I came up with this grand scheme on how I wanted everything to work. But I soon realized that those features simply are not needed. One being handling windows that were of various shapes. I had come up with something, but I really didn't like the uncertainty of this customization. At that point I said 'well if I want windows that are weird shapes I'll just write a library that handles only that. Personally I don't even like windows that are weird shapes.


Screen Shot


UI Texture

Previous Entry GDNet + Member!
Next Entry My first demo
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

MMO Risk vs Reward

1034 views

RenderMonkey

1276 views

My first demo

965 views

GDNet + Member!

1059 views
Advertisement