tags:

views:

259

answers:

1

hi.. i m trying to make an editor using Open GL.. similar to MS paint you can say, with a panel and all.. problem is i m not able to find material on how to create Buttons and icons..

P.S - i did find out about GLUI that provides such entities.. but i am not allowed to use anythiing other than GLUT..

Source code, if provided, will be very helpful..

thank you..

+2  A: 

On this site is an example wit the name "Creating Simple Buttons using function pointers (+ source)"

This is a step by step tutorial showing how to create basic buttons in openGL and C using linked lists and function pointers.

Possibly it helps you.

Peter