![]() |
Multimedia »
OpenGL »
General
Intermediate
The GLU functions and hit testing using OpenGL and MFCBy Masoud SamimiThis sample teaches you how to create an OpenGL based 3D Drawing application and demonstrates the GLU functions and hit testing using OpenGL and MFC |
VC6Win2K, MFC, OpenGL, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

This sample teaches you how to create an OpenGL based 3D Drawing application using the MFC library. It shows how to setup the View's class for OpenGL by using special setup methods that would enable the view window to show 3D shapes.
The sample MFC program demontrates how to setup OpenGL with MFC. It also demonstrates how
to make 3D Shapes using the glu... and aux... functions, for example 3D Sphere
or 3D Teapot. It also shows the very important Hit Selection process in MFC with OpenGL. You can click the
shape you want to select it, then it is selected and reported with a message dialog.
The source code for the Camera, Scene and Co-Ordinate axis classes are from the sample application posted on www.codeguru.com's OpenGL link. Please ckeck the sample.
The application requires opengl32.dll for windows which can be obtained from www.opengl.org.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 1 Oct 2000 Editor: Chris Maunder |
Copyright 2000 by Masoud Samimi Everything else Copyright © CodeProject, 1999-2010 Web10 | Advertise on the Code Project |