摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
以前,我从某些书籍上有看到编译器在优化代码的时候会改变C++代码的执行顺序;其实CPU为了优化执行的效率也可能会动态改变代码执行顺序。 以下内容来自《程序员的自我修养--链接、装载与库》 一段典型的double-check的singleton代码如下: volatile T* pInst = 0; T* GetInstance() { if (pInst == NULL... 阅读全文
摘要:
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... 阅读全文
摘要:
To calculate the rectangle area of a projected sphere, here we could try with two different solutions: 1) project the center of sphere into screen first, then approximate the radius in the screen s... 阅读全文