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:

Titanium 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() {}; };    --- 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:

Google style guide


OpenGL ES Programming Guide for iOS

Apple provides different implementations of OpenGL ES for different hardware platforms. PowerVR Series5 Graphics

Fractal Lab

Fractal Lab is a WebGL based web application for rendering 2D and 3D fractal in real-time

Chrome web app and first web app

    Chrome web store let you can publish your app and charge it. Overview: Build option: 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": [         ""     ],   "launch": {     "web_url": ""     }   },    "icons": {      "128": "logo.png"    } }  Prepare a icon--- Put them into a folder --- ellison-ap