Click here to Skip to main content
11,639,126 members (64,089 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ OpenGL
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
good
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 http://www.codeproject.com/Messages/4260392/Re-How-does-Pixel-Shader-choose-the-Edge-Points.aspx
  Permalink  
Rate this: bad
good
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
Stop.
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[^]
  Permalink  
v2

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

  Print Answers RSS
0 Suvendu Shekhar Giri 280
1 Sergey Alexandrovich Kryukov 279
2 Richard Deeming 200
3 CPallini 187
4 PIEBALDconsult 175
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,812
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,600
4 F-ES Sitecore 2,548


Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 23 May 2012
Copyright © CodeProject, 1999-2015
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