Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    5
  • comments
    2
  • views
    5479

OpenGL UI Development

Sign in to follow this  
Jenison

433 views

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

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!