Click here to Skip to main content
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 20: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 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 BillWoodruff 220
4 Mathew Soji 195
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,817
2 DamithSL 5,461
3 Manas Bhardwaj 4,946
4 Maciej Los 4,475


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