axmol/samples/TestJavascript/proj.linux/main.cpp

25 lines
632 B
C++
Raw Normal View History

2012-08-02 13:02:59 +08:00
#include "main.h"
#include "../Classes/AppDelegate.h"
#include "cocos2d.h"
#include "CCEGLView.h"
USING_NS_CC;
int main(int argc, char **argv) {
// create the application instance
AppDelegate app;
CCEGLView * pMainWnd = new CCEGLView();
if(! pMainWnd || ! pMainWnd->Create("cocos2d: Hello World", 480, 320 ,480, 320)){
return -1;
}
CCFileUtils::sharedFileUtils()->setResourcePath("../Resources/");
// CCEGLView& eglView = CCEGLView::sharedOpenGLView();
// eglView.setViewName("Hello World");
// eglView.setFrameSize(480, 320);
return CCApplication::sharedApplication().run();
}