摘要: 原文地址http://www.songho.ca/opengl/gl_fbo.html 但有改动。 OpenGL Frame BufferObject(FBO) Overview: 在OpenGL渲染管线中,几何数据和纹理经过多次转化和多次测试,最后以二维像素的形式显示在屏幕上。OpenGL管线的最 阅读全文
posted @ 2016-10-05 16:07 Dai Hanlong 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 关于 unicode utf8 文章来自于 http://blog.csdn.net/tge7618291/article/details/7599902 ascii 主要来表示英文.但是要全世界那么多语言符号文字,ascii就不够使用了,为了统一,unicode出现了. unicode 包含全世界 阅读全文
posted @ 2016-08-29 22:58 Dai Hanlong 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 使用 nvm 管理node版本. nvm类似 python virtualenv. 使用起来更加方便. 安装nvm 参见:https://www.jianshu.com/p/622ad36ee020 使用cnpm 代替 npm 安装cnpm: sudo npm registry=https://re 阅读全文
posted @ 2016-08-07 12:42 Dai Hanlong 阅读(138) 评论(0) 推荐(0) 编辑
摘要: pyqt5 pycharm mac下开发环境 1. brew install python3 安装python3 2. brew install pyqt5 3. 配置pycharm http://blog.csdn.net/a359680405/article/details/45074761 即 阅读全文
posted @ 2016-08-05 01:29 Dai Hanlong 阅读(128) 评论(0) 推荐(0) 编辑
摘要: cmake的常用命令 cmake_minimum_required message project set add_executable add_compile_options add_subdirectory add_library target_link_libraries include_di 阅读全文
posted @ 2016-07-11 00:17 Dai Hanlong 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 一些可能常用的工具函数 返回当前的微秒数, 1s = 1000ms,1ms = 1000us 将文件内容读到 string 里面 阅读全文
posted @ 2016-07-07 23:51 Dai Hanlong 阅读(155) 评论(0) 推荐(0) 编辑
摘要: mac 下 用 glfw3 搭建opengl开发环境 1. 下载编译 glfw3 2. Build Setting 里面, 1. Library Search Paths 设置好编译 glfw 库的路径 2. Header Search Paths 添加 glfw 头文件路径 3. other li 阅读全文
posted @ 2016-07-07 17:58 Dai Hanlong 阅读(1432) 评论(0) 推荐(0) 编辑
摘要: [TOC] 基本配置 user.name user.email git config global user.name "myname" git config global user.email "myemail@qq.com" git config list //显示配置 git help // 阅读全文
posted @ 2016-07-03 19:41 Dai Hanlong 阅读(141) 评论(0) 推荐(0) 编辑
摘要: static_cast、dynamic_cast、reinterpret_cast、const_cast 之间的区别 static_cast 用法:static_cast (expression) 说明:该运算符把expression转换为typeid类型,但没有运行时类型检查来确保转换的安全性。 阅读全文
posted @ 2016-06-01 18:03 Dai Hanlong 阅读(331) 评论(0) 推荐(0) 编辑
摘要: npm install 不能安装模块 + 先卸载npm,然后再重新安装 如果上面卸载不了,则进入到npm的安装目录(which npm): + 到 "https://npmjs.com/install.sh" 下载,执行就可以了 npm 网站: https://www.npmjs.com/ 阅读全文
posted @ 2016-05-27 17:29 Dai Hanlong 阅读(408) 评论(0) 推荐(0) 编辑