Description: I need to image processing, image to realize the three-dimensional display, two-dimensional wrote this code, then hope and the interested readers. The image of a file, the second is BMP image is from the clipboard. This code in MFC OpenGL library function call to realize the three-dimensional display, two-dimensional image width, height and pixel luminance respectively, the three-dimensional space x, y, z coordinate. Program mainly initialization, drawing, resources and release, these functions in operation, CPP files OGL_MFCView. OpenGL library in this document initialization of the OnCreate, InitScene and DrawScene function, main initialization OpenGL environment variables, the operation of the 3d object, etc, due to the light qualitative introduced OpenGL library initialization document in many, I am not here to say, interested readers can consult the relevant documents. In DrawScene function calls GLDraw3DBMP global function complete drawing parts.
To Search:
File list (Check if you may need any files):
resource.h
SelectColorDlg.cpp
SelectColorDlg.h
StdAfx.cpp
StdAfx.h
ThreeDBMP.exe
UrlLink.cpp
UrlLink.h
res\OGL_MFC.ico
...\OGL_MFC.rc2
...\OGL_MFCDoc.ico
...\Toolbar.bmp
...\使用说明.txt
Bmpfile.cpp
Bmpfile.h
MainFrm.cpp
MainFrm.h
OGL_MFC.plg
OGL_MFC.clw
OGL_MFC.cpp
OGL_MFC.dsp
OGL_MFC.dsw
OGL_MFC.h
OGL_MFC.opt
OGL_MFC.rc
OGL_MFCDoc.cpp
OGL_MFCDoc.h
OGL_MFCView.cpp
OGL_MFCView.h
ReadMe.txt
res