coda
December 6th, 2003, 07:20 AM
I using opengl rendering to draw 2D objects in my dialog view. I wish to add a button to allow user to view the object as 3D. How do i proceed? any tutorial or sample on this will be greatly appreciated.:)
|
Click to See Complete Forum and Search --> : how to use dialog button to change a 2D object to 3D? coda December 6th, 2003, 07:20 AM I using opengl rendering to draw 2D objects in my dialog view. I wish to add a button to allow user to view the object as 3D. How do i proceed? any tutorial or sample on this will be greatly appreciated.:) Deniz December 8th, 2003, 06:22 PM If you want to use openGL, your best off going to the OpenGL.org (http://www.opengl.org) website to find a tutorial. cwc36 December 11th, 2003, 03:28 AM Hi, You can create a button and keep track on the button by gluPickMatrix() (gluPickMatrix() demo is linked as http://myopendemo.hypermart.net/opengl2.htm). Then you will display it in 3D view. void Display() { if(!CLICK) { //Draw the 2D object Draw2DObject(); } else { //Draw the 3D object Draw3DObject(); } glutPostRedisplay(); } Hope it can help codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |