opengl/c++贪吃蛇.rar

上传者: 44562141 | 上传时间: 2021-03-22 08:56:57 | 文件大小: 21.28MB | 文件类型: RAR
VS工程奉上,运行逻辑应该无问题,用六面体代表贪吃蛇的身体,绘制用一个数组保存所有的顶点,用一个数组保存顶点的序号。但最后绘制的时候,不是编写循环语句逐个的指定顶点了,而是通知OpenGL,”保存顶点的数组”和”保存顶点序号的数组”所在的位置,由OpenGL自动的找到顶点,并进行绘制。但是没有调gluLookAt和glRotatef,运行起来是二维的。c++和opengl都是初学,请大家指正。

文件下载

资源详情

[{"title":"( 24 个子文件 21.28MB ) opengl/c++贪吃蛇.rar","children":[{"title":"贪吃蛇","children":[{"title":"opengltest","children":[{"title":"opengl.cpp <span style='color:#111;'> 7.77KB </span>","children":null,"spread":false},{"title":"opengltest.vcxproj.filters <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"opengltest.vcxproj <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"opengltest.vcxproj.user <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"opengltest.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 68.39KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 6.99KB </span>","children":null,"spread":false},{"title":"opengltest.lastbuildstate <span style='color:#111;'> 214B </span>","children":null,"spread":false}],"spread":true},{"title":"opengl.obj <span style='color:#111;'> 97.92KB </span>","children":null,"spread":false},{"title":"vc141.idb <span style='color:#111;'> 595.00KB </span>","children":null,"spread":false},{"title":"opengltest.log <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 508.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".vs","children":[{"title":"opengltest","children":[{"title":"v15","children":[{"title":"Browse.VC.db <span style='color:#111;'> 35.66MB </span>","children":null,"spread":false},{"title":"Browse.VC.opendb <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 35.00KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"b5de8ebafe9ef7d6","children":[{"title":"OPENGL.ipch <span style='color:#111;'> 70.69MB </span>","children":null,"spread":false}],"spread":true},{"title":"921065164ffb760e","children":[{"title":"OPENGL.ipch <span style='color:#111;'> 3.69MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"opengltest.sln <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"opengltest.pdb <span style='color:#111;'> 740.00KB </span>","children":null,"spread":false},{"title":"opengltest.ilk <span style='color:#111;'> 499.01KB </span>","children":null,"spread":false},{"title":"opengltest.exe <span style='color:#111;'> 69.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明