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

Interface with the user, graphically

Sign in to follow this  
Stephen R


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  


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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!