Posts

Showing posts from May, 2011

xcode precompiler header

In your xcode proj. You can see a other sources group. there is a xxx_Prefix.PCH. In this *.PCH, If you write the cpp code, you should add #if defined __cplusplus #include "MUtils.h" #endif Then the precompiler header function would be worked. Reference: http://www.facebook.com/note.php?note_id=220473491312585 http://forum.soft32.com/mac/Xcode-precompiled-header-files-problem-ftopict47632.html

Titanium Appcelerator vs. PhoneGap vs. Adobe Air

http://savagelook.com/blog/portfolio/appcelerator-vs-phonegap-vs-adobe-air

C++ template in Objective C++

Vector3D.h template(class Type) class cMVector3D { public:     Type x;     Type y;     Type z;     public:     //--------------------------------     // @breif: Constructor     //--------------------------------     cMVector3D(): x(0), y(0), z(0) {};         //--------------------------------     // @breif: Destructor     //--------------------------------     ~cMVector3D() {}; }; main.mm    --- if your program is objective c  hybrid with c++, you need to rename your file ext. from *.m to *.mm. #import "MVector3D.h" int main(int argc, char *argv[]) {         NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];         cMVector3D(float)   testV;     ~~~template success                int retVal = UIApplicationMain(argc, argv, nil, nil);     [pool release];     return retVal; }  Reference: http://hi.baidu.com/184367426/blog/item/4324263a5ac76e2f71cf6c7c.html

Google style guide

google-styleguide http://code.google.com/p/google-styleguide/

OpenGL ES Programming Guide for iOS

Apple provides different implementations of OpenGL ES for different hardware platforms. http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html#//apple_ref/doc/uid/TP40008793-CH106-SW1 PowerVR Series5 Graphics http://www.imgtec.com/powervr/insider/docs/PowerVR%20Series5%20Graphics.SGX%20architecture%20guide%20for%20developers.1.0.8.External.pdf

Fractal Lab

Image
Fractal Lab is a WebGL based web application for rendering 2D and 3D fractal in real-time http://www.creativeapplications.net/webapp/fractal-lab-webapp/

Chrome web app and first web app

Image
    Chrome web store let you can publish your app and charge it. Overview:  http://code.google.com/intl/zh-TW/chrome/webstore/docs/index.html#charging Build option:  http://code.google.com/intl/zh-TW/chrome/webstore/articles/launching.html HTML5 - HTML5, CSS, JavaScript Native Client - C/C++ code in the sandbox, with Native Client SDK Adobe Flash - depend on flash plug-in A mix - mix these technologies The first web app: Make a manifest.json   write ---  {   "name": "Ellison's WebApp",   "description": "First App on the chrome web.",   "version": "1.0",   "app": {     "urls": [         "http://coderellison.blogspot.com/"     ],   "launch": {     "web_url": "http://coderellison.blogspot.com/"     }   },    "icons": {      "128": "logo.png"    } }  Prepare a icon--- Put them into a folder --- ellison-ap