views:

342

answers:

2

I am looking for a book that discusses about how to write a GUI libray.

+3  A: 

Don't bother reinventing the wheel. It will probably end up being a square one. Rather use widget APIs like Gtk+ or Qt. Both APIs allows you to create widgets which are drawn with OpenGL-enabled 'painters'. That means that you can use Qt and Gtk widgets just like usual, only within an OpenGL context. The whole process is completely transparent after the initial boilerplate code.

Mads Elvheim
A: 

In terms of design you might want to look at the design patterns book. This uses the design of a Windowing system for many examples.

You might also want to refer to other OpenGL GUI libraries, e.g.

Nick