登录
首页 » OpenGL图像 » OpenGL的一个小迷宫

OpenGL的一个小迷宫

于 2022-04-16 发布 文件大小:2.08 kB
0 246
下载积分: 2 下载次数: 1

代码说明:

使用二维数组随机的产生一个迷宫,有详细的注释,通过调整最前面的常数可以调节迷宫的行数和列数(一定要互相匹配,不然出来的结果很丑),然后用stack写出来了迷宫的解法,通过OpenGL画出了迷宫

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

发表评论

0 个回复

  • opengl小程序
    关于3d俄罗斯方块的一个opengl的源代码,小程序很精美很好玩。不是原创的,在网上找的,与大家分享
    2023-03-15 11:05:03下载
    积分:1
  • 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
  • 3D编程 OpenGL 书
    3D编程 OpenGL 书-OpenGL 3D programming book
    2022-04-28 01:02:12下载
    积分:1
  • opengl rendering profile line source code
    opengl绘制剖面线源代码-opengl rendering profile line source code
    2022-02-04 00:03:43下载
    积分:1
  • 对于球体之间,球体和平面,球体和圆柱体的碰撞进行模拟。...
    对于球体之间,球体和平面,球体和圆柱体的碰撞进行模拟。-Between the spheres, sphere and plane, sphere and cylinder to simulate the collision.
    2022-07-25 11:17:57下载
    积分:1
  • Opengl加载3DS格式的代码。使用的是GLUT。
    Opengl加载3DS格式的代码。使用的是GLUT。-Opengl load 3DS format code. Using GLUT.
    2022-05-06 09:45:06下载
    积分:1
  • 2D reduction algorithm, OpenGL
    二维裁减算法,OPENGL-2D reduction algorithm, OpenGL
    2022-05-17 04:32:36下载
    积分:1
  • 利用vc++调用opengl接口函数,在窗口中显示二维彩色字体
    利用vc++调用opengl接口函数,在窗口中显示二维彩色字体-use vc called opengl interface function, in the window display 2D color fonts
    2022-03-26 05:26:27下载
    积分:1
  • ① 通过几何变换函数实现场景的平移、缩放、旋转,从而实现从各个角度观察场景,即视点固定,场景变化。 本实验目的不在于建模,因此场景可以通过调用glut库中的...
    ① 通过几何变换函数实现场景的平移、缩放、旋转,从而实现从各个角度观察场景,即视点固定,场景变化。 本实验目的不在于建模,因此场景可以通过调用glut库中的函数直接绘制,如立方体 。 -① through the geometric transformation function realize scenes of translation, scaling, rotation, and thus realize the scene from various angles, that is a fixed point of view, the scene changes. The purpose of this experiment does not lie in modeling, so scenes can be by calling the library function glut direct mapping, such as the cube.
    2022-04-17 17:40:33下载
    积分:1
  • 这是OPENGL的第三个例子,实现了鼠标移动来使物体旋转的且透明处理
    这是OPENGL的第三个例子,实现了鼠标移动来使物体旋转的且透明处理-This is the third example OPENGL, realize the mouse to make rotating objects and transparent treatment
    2022-02-24 22:44:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载