Click here to Skip to main content
13,199,852 members (72,713 online)
Rate this:
Please Sign up or sign in to 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.
Posted 21-May-12 19:37pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 23 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100