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

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

OpenGL ES Programming Guide for iOS

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, JavaScriptNative Client - C/C++ code in the sandbox, with Native Client SDKAdobe Flash - depend on flash plug-inA 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---