随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

随笔分类 -  OpenGL

gl.h included before glew.h
摘要:So I'm trying to move my OpenGL code from Main() into a specific class that will handle the 3D graphics only when necessary. Previously, the top of my main.cpp file looked like this: #define GLEW_ST... 阅读全文
posted @ 2017-07-09 10:26 今夜太冷 阅读(2347) 评论(0) 推荐(0) 编辑
GLFW_KEY_KP_ADD和GLFW_KEY_KP_SUBTRACT
摘要:这两个键的代码分别为: GLFW_KEY_KP_ADD(334) GLFW_KEY_KP_SUBTRACT(333) 对应的是键盘右侧数字面板上的+ -键。 阅读全文
posted @ 2017-07-04 14:04 今夜太冷 阅读(644) 评论(0) 推荐(0) 编辑
OPENGL: WHY IS YOUR CODE PRODUCING A BLACK WINDOW?
摘要:Introduction One of the most common problems for novice, and sometimes experienced, OpenGL programmers is that they write new rendering code, run it, and it displays… nothing at all. Being more acti... 阅读全文
posted @ 2017-07-04 13:35 今夜太冷 阅读(440) 评论(0) 推荐(0) 编辑
编译GSLSDevil的全过程
摘要:GLSLDevil是调试OpenGL程序的工具。 GLSLDevil的新版本已经改名为GLSL-Debugger, github的地址在这里:http://glsl-debugger.github.io/ 从github下载zip文件,解压缩, 目录结构如下: 然后按照github上的build步骤来编译。我的编译环境是Windows7, Visual Studio2013. 详细的... 阅读全文
posted @ 2017-06-15 17:36 今夜太冷 阅读(988) 评论(0) 推荐(0) 编辑
OpenGL中的原子操作需要注意的地方
摘要:OpenGL中的原子操作需要注意的地方 仔细阅读看画红线的部分 阅读全文
posted @ 2017-03-20 11:30 今夜太冷 阅读(309) 评论(0) 推荐(0) 编辑
图形转换的组合(注意从右向左读)
摘要:图形转换的组合(注意从右向左读) 阅读全文
posted @ 2017-02-24 15:00 今夜太冷 阅读(226) 评论(0) 推荐(0) 编辑
以sb7code为基础创建一个基本的OpenGL项目
摘要:以sb7code为基础创建一个基本的OpenGL项目 从github上面下载sb7code代码: https://github.com/openglsuperbible/sb7code 打开HOWTOBUILD.TXT(在 GITHUB网页上直接打开格式比较友好). 根据这个文档中说的,在本地编译第一步中下载的sb7code代码,编译是为了得到我们需要的.lib文件。 在VS... 阅读全文
posted @ 2017-02-14 10:36 今夜太冷 阅读(1503) 评论(0) 推荐(0) 编辑
Creating OpenGL 4.3 window fails with GLFW3
摘要:I set up a minimal application to open a blank window with GLFW3: #include #include #include void glfwErrorCallback(int error, const ... 阅读全文
posted @ 2017-02-13 16:11 今夜太冷 阅读(2004) 评论(0) 推荐(0) 编辑
如何检查显卡类型,DirectX和OpenGL的版本
摘要:How To: Check the graphics card type and OpenGL version From: http://support.esri.com/technical-article/000011375 Summary OpenGL is an industry standard 3D graphics API. OpenGL 2.x or higher is requi... 阅读全文
posted @ 2017-02-13 11:22 今夜太冷 阅读(3626) 评论(0) 推荐(0) 编辑
OpenGL book list
摘要:From: https://www.codeproject.com/Articles/771225/Learning-Modern-OpenGL A little guide about modern OpenGL and why it gives us so much value. Shaders + Cube Env Map + Phong Lighting Introduc... 阅读全文
posted @ 2017-02-07 10:34 今夜太冷 阅读(352) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示