上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 1.今天在[segmentfault](http://segmentfault.com/blog/pezy/1190000002513126)上看到了一个C++虚函数的新用法,先上代码```#include using namespace std;class B {public: virtua... 阅读全文
posted @ 2015-01-28 20:15 zyh_think 阅读(165) 评论(0) 推荐(0) 编辑
摘要: ## 1.protobuf 编译过程> * 前提: 确保自己电脑上已经安装了cygwin + ndk, 并且NDK能够编译hello-jni成功 ### 1.1 把protobuf 压缩包解压到protobuf文件夹下### 1.2 在protobuf文件夹下新建jni文件下### 1.3 把pro... 阅读全文
posted @ 2015-01-10 23:50 zyh_think 阅读(3607) 评论(0) 推荐(0) 编辑
摘要: ---## 1. 先上代码> 头文件glCommon.h``` #include #include #include #define MAX_LEN 2048void GLLog(const char *pszFormat, ...);void SetupPixelFomat( HWND hWnd,... 阅读全文
posted @ 2014-12-19 19:48 zyh_think 阅读(1598) 评论(0) 推荐(0) 编辑
摘要: TexturePacker是一款功能非常强大的图片制作工具。是一款付费软件,但是TexturePacker的作者Andreas Löw先生也给出获得免费key 的方法。。。大家可以到这个网站去申请http://www.codeandweb.com/request-free-license 在此感谢... 阅读全文
posted @ 2014-12-18 20:21 zyh_think 阅读(2414) 评论(0) 推荐(0) 编辑
摘要: ## 问题描述:> 给定N个整数的序列{a1,a2,...,an},求函数 ![](http://images.cnitblog.com/blog/688912/201412/181630070325065.png) 的最大值## 问题解决:### 1.正规的遍历```int MaxSubseqS... 阅读全文
posted @ 2014-12-18 16:21 zyh_think 阅读(200) 评论(0) 推荐(0) 编辑
摘要: ## 1.C++自动提供的函数包含如下:> * 默认构造函数> * 默认析构函数> * 复制构造函数> * 赋值运算符> * 地址运算符> * 移动构造函数(**C11 添加**)> * 移动赋值运算符(**C11 添加**)## 2. 默认构造函数> 默认构造函数分为带参和无参的构造函数## 3.... 阅读全文
posted @ 2014-11-25 14:56 zyh_think 阅读(242) 评论(0) 推荐(0) 编辑
摘要: ## 1.Const用途| No. | 用途 | 使用范围 | 参考代码 ||-----|-------------|---------------| ------------------ ||1 |类型检... 阅读全文
posted @ 2014-11-19 11:17 zyh_think 阅读(162) 评论(3) 推荐(0) 编辑
摘要: 1.在CCDiretor.h中有如下说明``` /** This object will be visited after the main scene is visited. This object MUST implement the "visit" selector. Usef... 阅读全文
posted @ 2014-11-12 13:48 zyh_think 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1.每个Vertex Shader都有用户定义的输入属性,例如:位置,法线向量和纹理坐标等。Vertex Shaders也接收一致变量(**uniform variables**).> * uniform variables:一个只读的全局变量是为所有的顶点绘制调用2.除了用户定义的输入变量,GLS... 阅读全文
posted @ 2014-11-12 12:58 zyh_think 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: #GLSL Core Tutorial – Pipeline (OpenGL 3.2 – OpenGL 4.2)> * **GLSL 是一种管道,一种图形化的流水线**### 1.GLSL 的具体工作流程: ![工作流程](http://www.lighthouse3d.com/wp-content... 阅读全文
posted @ 2014-11-11 22:40 zyh_think 阅读(318) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页