上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 27 下一页
摘要: This sample shows us how to draw some primitives and some simple geometries with OpenGL. Building the geometry from the source code is not a good idea, the interactive video games development always r... 阅读全文
posted @ 2012-12-29 21:36 opencoder 阅读(149) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to build a OpenGL framework for windows, ubuntu and android with C++. Before you could use the source code here, you need to make sure that you already have installed Visual S... 阅读全文
posted @ 2012-12-27 23:32 opencoder 阅读(257) 评论(0) 推荐(0) 编辑
摘要: There is no glu libraries for android ndk, so I need re-implement one for it. After some time research, I grab some ideas and re-implement glPerspective and gluLookAt function. Both of them works pret... 阅读全文
posted @ 2012-12-24 22:17 opencoder 阅读(826) 评论(0) 推荐(0) 编辑
摘要: Previously, for those assets like model, textures I will use ‘adb push’ command to upload them into a separate folder /data, and load them in native code. It is not good way, because I need to keep th... 阅读全文
posted @ 2012-12-24 22:05 opencoder 阅读(590) 评论(0) 推荐(0) 编辑
摘要: The Advantage of Compress texture Note, the texture compress method here means some formats that also be supported by our display card. So compress texture will take less storage, less band... 阅读全文
posted @ 2012-12-15 14:50 opencoder 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: Here are several tools that I used usually, and they are tools that could improve your work efficient greatly. TotalCommand, a convenient tool to help explore, search folders and files. Could open m... 阅读全文
posted @ 2012-12-11 21:56 opencoder 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 1. fatal error: <GLES/gl.h>: No such file or directory. File “GLES/gl.h”located under the android ndk platform directory, but you will notice that there are several versions exists. What you need to ... 阅读全文
posted @ 2012-12-11 21:40 opencoder 阅读(486) 评论(0) 推荐(0) 编辑
摘要: Here are some methods that could help you fix the bugs, all of them are come from my experiences. 1) Observe and try to get information as more as possible. Those could be the program run crash infor... 阅读全文
posted @ 2012-11-10 15:43 opencoder 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 以前,我从某些书籍上有看到编译器在优化代码的时候会改变C++代码的执行顺序;其实CPU为了优化执行的效率也可能会动态改变代码执行顺序。 以下内容来自《程序员的自我修养--链接、装载与库》 一段典型的double-check的singleton代码如下: volatile T* pInst = 0; T* GetInstance() { if (pInst == NULL... 阅读全文
posted @ 2012-10-28 08:21 opencoder 阅读(539) 评论(0) 推荐(0) 编辑
摘要: This sample shows how to build some texture mapping primitives with catcake, and do some interactive with the GLSurfaceView with Android Gesture recognize feature. Build customized catcake pri... 阅读全文
posted @ 2012-10-28 08:19 opencoder 阅读(377) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 27 下一页