首页 开发技术 其它     /    最小OpenGL-源码

最小OpenGL-源码

上传者: weixin_42122878 | 上传时间:2016/9/22 10:47:53 | 文件大小:24KB | 文件类型:ZIP
最小OpenGL-源码
最小OpenGL使用GLFW3和GLEW运行OpenGL的最少代码。
该程序仅显示一个蓝色阴影的正方形,但会执行所有次要操作:加载并编译着色器创建一个缓冲区并将数据存储在其中在一个简单的循环中进行调用您可以使用此代码从头开始新项目,而无需编写第一个正在运行的代码。
该代码具有完整的功能,并且可以在非常老的OpenGL版本上运行,最低接受为1.40。
汇编您可以使用cmake编译此项目,代码是多平台的。
mkdirbuild;cdbuildcmake..make在Windows上,您可以指定以后要使用的工具链(Makefile,VisualStudio,MinGW),例如,创建可视化的sutdio项目:cmake..-G"VisualStudio152017x64"您可以使用cmake--help获得所有可用的生成器依存关系

文件下载

资源详情

[{"title":"(15个子文件24KB)最小OpenGL-源码","children":[{"title":"MinimalOpenGL-glfw3","children":[{"title":".github","children":[{"title":"workflows","children":[{"title":"build_cmake.yml <span style='color:#111;'>10.12KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"include","children":[{"title":"Buffer.h <span style='color:#111;'>140B</span>","children":null,"spread":false},{"title":"Program.h <span style='color:#111;'>332B</span>","children":null,"spread":false},{"title":"Shader.h <span style='color:#111;'>528B</span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'>34.33KB</span>","children":null,"spread":false},{"title":"shaders","children":[{"title":"vertex.glsl <span style='color:#111;'>107B</span>","children":null,"spread":false},{"title":"fragment.glsl <span style='color:#111;'>89B</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>270B</span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>1.40KB</span>","children":null,"spread":false},{"title":"source","children":[{"title":"Program.cpp <span style='color:#111;'>744B</span>","children":null,"spread":false},{"title":"Shader.cpp <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>2.13KB</span>","children":null,"spread":false}],"spread":true},{"title":"cmake-modules","children":[{"title":"FindGLEW.cmake <span style='color:#111;'>5.90KB</span>","children":null,"spread":false},{"title":"FindGLFW3.cmake <span style='color:#111;'>1.85KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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