-
image processing to the needs and would like to achieve th ree
本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。 编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。 本代码在Windows2000下编译通过。-image processing to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documen
- 2023-02-17 05:45:03下载
- 积分:1
-
OpenGL编写的烟花屏保
利用OpenGL编写的烟花屏幕保护,烟花升空时还有烟花燃放的声音和鞭炮声,程序里利用FMOD库实现了播放MP3等声音文件的功能。屏幕保护程序的关键是对以下两个入口函数的编写:1、屏幕保护处理程序入口函数LRESULT WINAPI ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)2、屏幕保护设置对话框BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
- 2022-02-03 17:33:40下载
- 积分:1
-
bouncing ball game
创新的游戏,用鼠标控制。航天器球周围的屏幕和拾取速度路过你从墙上反弹。目标 isAn 创新游戏,用鼠标控制。航天器球周围的屏幕和拾取速度路过你从墙上反弹。
- 2022-02-04 07:04:55下载
- 积分:1
-
OpenGL的使用指南,系统全面的讲解了OpenGL的函数库的各个函数的功能,是学习OpenGL不错的知道书...
OpenGL的使用指南,系统全面的讲解了OpenGL的函数库的各个函数的功能,是学习OpenGL不错的知道书 -OpenGL, User Guide, systematic and comprehensive explanations of the OpenGL-library functions of the various functions, is to know a good book to learn OpenGL
- 2023-02-05 03:15:04下载
- 积分:1
-
我学习opengl时的东西,希望对大家
有所帮助!!!
我看了,还不错,听荣毅如们!...
我学习opengl时的东西,希望对大家
有所帮助!!!
我看了,还不错,听荣毅如们!-opengl I am learning things that help you right! ! ! I read, quite good, as heard Rong-yi!
- 2022-10-03 07:20:03下载
- 积分:1
-
Game Exchange 2 File Loader GE2 ge2loader
Game Exchange 2 File Loader GE2 ge2loader
- 2022-02-06 03:43:39下载
- 积分:1
-
一个基于OPENGL技术创建立体模型的实例
一个基于OPENGL技术创建立体模型的实例- Founds the three-dimensional model based on the OPENGL
technology the example
- 2023-03-20 11:35:03下载
- 积分:1
-
基于OPENGL的OpenVG实现,用c实现的OpenVG的硬加速算法,在SVG、2D图形显示等方面有参考价值。...
基于OPENGL的OpenVG实现,用c实现的OpenVG的硬加速算法,在SVG、2D图形显示等方面有参考价值。-OPENGL based on the realization of the OpenVG, c achieved by OpenVG hardware to accelerate the algorithm, in SVG, 2D graphics, such as have reference value.
- 2022-06-14 19:12:20下载
- 积分:1
-
这是一个教你如何在vc+OpenGL中读取.obj文件的程序
这是一个教你如何在vc+OpenGL中读取.obj文件的程序-teach you how to read vc OpenGL. Obj documentation procedures
- 2022-12-20 19:30:09下载
- 积分:1
-
with vc++ and borders to achieve a rainbow of simulation. In the world coordinat...
用vc++和borders实现了彩虹的模拟。在世界坐标系中使用的数学模型,有七色彩虹。
- 2023-07-18 16:55:03下载
- 积分:1