Sign in to follow this  
  • entries
    223
  • comments
    165
  • views
    79178

Interface with the user, graphically

Sign in to follow this  
Stephen R

74 views

Got more done in the engine today. Finished off the immediate mode functionallity of the Input kernel. I'm going to have to get the buffered input running soon enough though because thats going to have to link into the GUI system.

Most of what I was doing today with the GUI code was really figuring out how it was going to work. I had two main options. One was to work things like wxWindows - where I would create all my objects with ID codes and their messages would be passed back to the frame, or to let most of the work take place within the actual object classes. I choose the second option in the end because I didn't want to deal with huge switch statements to sort the messages. So now if the user creates a wants to make a button to do something, like exit, they would make a class CExitButton : public CGUIButton, and then just overload the one relevent function.

I think this method should work well, considering that the GUI for this game won't be too complex. But it should allow me to rig up interfaces quickly.
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