axmol/samples/Cpp/HelloCpp/proj.linux/main.cpp

21 lines
415 B
C++
Raw Normal View History

2012-08-02 13:02:59 +08:00
#include "../Classes/AppDelegate.h"
#include "cocos2d.h"
2012-08-24 17:55:29 +08:00
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string>
2012-08-02 13:02:59 +08:00
USING_NS_CC;
2012-08-24 17:55:29 +08:00
int main(int argc, char **argv)
{
2012-08-02 13:02:59 +08:00
// create the application instance
AppDelegate app;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(800, 480);
2012-11-01 15:38:48 +08:00
return CCApplication::sharedApplication()->run();
2012-08-02 13:02:59 +08:00
}