摘要: 以前,我从某些书籍上有看到编译器在优化代码的时候会改变C++代码的执行顺序;其实CPU为了优化执行的效率也可能会动态改变代码执行顺序。 以下内容来自《程序员的自我修养--链接、装载与库》 一段典型的double-check的singleton代码如下: volatile T* pInst = 0; T* GetInstance() { if (pInst == NULL... 阅读全文
posted @ 2012-10-28 08:21 opencoder 阅读(543) 评论(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) 编辑
摘要: 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... 阅读全文
posted @ 2012-10-28 08:17 opencoder 阅读(287) 评论(0) 推荐(0) 编辑
摘要: This sample shows how to build a simple 3d world with Catcake, and make the camera walk around. The 3D world built from the NeHe OpenGL Lesson10. To make all stuffs become much easier, I tried to... 阅读全文
posted @ 2012-10-28 08:14 opencoder 阅读(393) 评论(0) 推荐(0) 编辑
摘要: With the objcopy command, we could embed some external files into the executable target file on Linux. Here objcopy used as a tool that convert the a external file into some a target file with some se... 阅读全文
posted @ 2012-10-28 08:11 opencoder 阅读(297) 评论(0) 推荐(0) 编辑
摘要: In the last year, I have spent some time to write some plugins with MAYA MEL. The most hardest part for MEL plugins programming was not the MEL language itself, was the MAYA node graphics structure... 阅读全文
posted @ 2012-10-28 08:03 opencoder 阅读(298) 评论(0) 推荐(0) 编辑