Description: 这一些OpenGL在MFC中实现的一些小的例程,可以实现抗锯齿,纹理映射,纹理照明,纹理透明度等。
这些例程创建一种方法实现以下功能:
在一个对话框中画一个简单的立方体并使用OpenGL进行渲染。
可以用鼠标右键菜单操纵物体,改变纹理等。
一个定时器控制的自动旋转。
纹理文件必须是2^n*2^m*24bits的BMP位图。-This is the smallest example to make :
Antialiasing
Gouraud
Texture mapping
Texture lighting
Texture transparency
This sample create an OpenGL rendering context in a dialog box and draw a simple cube. We can manipulate the object with the mouse, and change texture file with a popup menu item. A timer animate a rotation. Texture files are .BMP files (2^n* 2^m* 24 bits). Platform: |
Size: 1108992 |
Author:李平 |
Hits: