Click here to Skip to main content
15,936,850 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello every one.,
i want to create 3d model viewer application using openGL. there is lot of examples with console application. but i want to create it with interface(buttons...etc). help me.
thank you.

I often creates mfc dialog based application.. there will be a static control, which will be used for initializing rendering context, and all objects drawn in that static window.
Other gui items will be placed in the main dailog, and its events will be handled to change output image. One sample app is
Share this answer
Pretty old but working OpenGL sample GLEasy from MSDN -
OpenGL I: Quick Start Sample[^]
Shows rotating figures (cube, pyramid, dodechahedron) in MFC. No buttons, but with Toolbar, Status bar and Menus.
To make default Debug version, run -
C:>nmake /f GLEASY.MAK 

Otherwise it generates error -
GLEASY.MAK(51) : fatal error U1007: double quotation mark not allowed in name
If you also want to learn a bit of OpenGL programming in Windows, here is it to help -
OpenGL III: Building an OpenGL C++ Class[^]
and OpenGL reference[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900