登录
首页 » OpenGL图像 » A c++, opengl program for creating a spinning a cube

A c++, opengl program for creating a spinning a cube

于 2023-06-07 发布 文件大小:1.06 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

//显示旋转立方体的程序

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 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
  • 有了基础,那么尝试着提高吧!
    有了基础,那么尝试着提高吧!-basis, then try to improve!
    2022-01-26 02:38:37下载
    积分:1
  • 3个齿轮相互咬合运动的程序
    3个齿轮相互咬合运动的程序-3 gear mutual occlusal movement procedures
    2022-01-26 02:46:33下载
    积分:1
  • 一个机器人
    一个简单的机器手模拟 是自己做的 希望会有用啊 -one single robot do by myself which is not pefect
    2022-01-26 04:30:57下载
    积分:1
  • opengl 编程实例。用于opengl的学习和使用
    opengl 编程实例。用于opengl的学习和使用-opengl cases used for study ddddddddddd
    2022-01-25 14:26:42下载
    积分:1
  • Virtual roaming a small example of the realization of a robot roaming process
    虚拟漫游的小例子,实现了机器人的漫游过程-Virtual roaming a small example of the realization of a robot roaming process
    2022-07-23 18:28:49下载
    积分:1
  • 可以根据不同的椭球参数进行空间坐标系向大地坐标系的转换...
    可以根据不同的椭球参数进行空间坐标系向大地坐标系的转换-Can be based on different parameters of the ellipsoid to the earth coordinate system of space coordinates conversion
    2022-03-07 13:24:36下载
    积分:1
  • OpenGL※※VC框架,包含单文档,多文档,对话框。
    OpenGL※※VC框架,包含单文档,多文档,对话框。-OpenGL** VC framework consists of a single file, multi-file, the dialog.
    2022-02-20 16:25:38下载
    积分:1
  • opengl terrain editor Focus On 3D Terrain__ Programming
    opengl地形编辑 Focus On 3D Terrain__ Programming-opengl terrain editor Focus On 3D Terrain__ Programming
    2022-06-28 20:34:54下载
    积分:1
  • OPengl程序,基于VC的MFC库设计实现,主要实现一个在单文档视图中绘制一个颜色渐变三角形...
    OPengl程序,基于VC的MFC库设计实现,主要实现一个在单文档视图中绘制一个颜色渐变三角形-OPengl procedures, the MFC-based VC Design Library, a major achievement in a single document View Drawing a triangular gradient colors
    2022-05-16 03:47:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载