-
MFC Opengl三维控件
应用背景
1当二维自定义控件的绘制效果无法满足图形需求时,需要考虑三维控件的可行性;
2在三维控件中,可绘制立体的效果;
3 可在二维图形程序中,绘制三维的图表,如饼图。曼哈顿图等;
关键技术
1 mfc自绘制控件的技术实现;
2 opengl基本绘制图形
3 opengl图形框架,包括编辑,旋转,视图缩放等
4 提供了三维投影,拾取基础类的代码;
5 自定义控件派生自static控件;
void COpenglWnd::Paint()
{
InitOpengl();
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
//////////////////////////////////////////////////////////////////////////
glPushMatrix();
glTranslated(0,0, -m_OpenglSize.GetEyeDistance() );
RenderOpengl();
glPopMatrix();
HDC m_hgldc = ::GetDC(m_hWnd);
::SwapBuffers(m_hgldc);
}
- 2023-04-10 06:30:03下载
- 积分:1
-
程序中作用是简单几何物体在visual c++ 下 opengl 实现 采用OpenGL API编写的一个多彩的立方体...
程序中作用是简单几何物体在visual c++ 下 opengl 实现 采用OpenGL API编写的一个多彩的立方体
- 2022-02-07 19:21:14下载
- 积分:1
-
用opengl编写而成,点击左上角的图标,可以看到模拟水面涟漪的效果,已调试!...
用opengl编写而成,点击左上角的图标,可以看到模拟水面涟漪的效果,已调试!-prepared using opengl Click the upper left corner of the icon, we can see the simulation of surface ripple effect Debugging has!
- 2022-03-18 06:47:23下载
- 积分:1
-
使用C语言构造一个可以显示OpenGL程序的源代码,基本属于框架类别,如需使用则要编写相应的实现代码。基于单文档。...
使用C语言构造一个可以显示OpenGL程序的源代码,基本属于框架类别,如需使用则要编写相应的实现代码。基于单文档。-The use of C language constructs a OpenGL program can display the source code, the basic framework of the categories are for the use of will realize the preparation of the corresponding code. Based on Single Document.
- 2022-04-17 11:56:40下载
- 积分:1
-
OpenGL初级学习的经典例程,用于实现反馈功能,有助于对反馈功能的理解。...
OpenGL初级学习的经典例程,用于实现反馈功能,有助于对反馈功能的理解。-OpenGL junior studying classical routines for the feedback function, contribute to the understanding of feedback function.
- 2022-02-06 15:38:30下载
- 积分:1
-
经典碰撞检测程序
Jeff lander 经典质点弹簧系统,可以采用欧拉积分法、中点法和四阶龙格库塔法进行运动方程求解,包含完整的碰撞检测程序,采用包围球的方法,可以进行进一步的开发
- 2022-04-17 08:15:13下载
- 积分:1
-
利用OPENGL做出简单的3D 射击游戏
利用OPENGL 做出简单的3D 射击游戏,包括人物的移动、视野以及发射子弹与障碍物的碰撞。
- 2022-02-04 13:27:56下载
- 积分:1
-
关于OPENGL光照的程序
关于OPENGL光照的程序-OpenGL light on the process
- 2022-03-30 17:23:27下载
- 积分:1
-
实例40 毫秒级的控制
实例40 毫秒级的控制-example 40 millisecond control
- 2022-09-24 18:55:03下载
- 积分:1
-
基于ati显卡使用shader实现的运动模糊效果。需要ogl的扩展和最新的显卡才能运行。开发环境使vc6+ogl2.0...
基于ati显卡使用shader实现的运动模糊效果。需要ogl的扩展和最新的显卡才能运行。开发环境使vc6+ogl2.0-ati cards based on the use of shaders to achieve the motion blur effect. T needed for the expansion and the latest graphics card to run. The development environment makes vc6+ ogl2.0
- 2023-07-17 12:35:03下载
- 积分:1