mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
There are no longer separate animation files, they are now inside the skeleton file. This means there is just one file to manage, which is cleaner. Now that animations are stored in SkeletonData, they can be looked up by name which leads to cleaner runtime APIs. cocos2d and cocos2d-x runtimes got a cleaner ObjC/C++ API.
22 lines
529 B
C++
22 lines
529 B
C++
#include "main.h"
|
|
#include "../Classes/AppDelegate.h"
|
|
#include "CCEGLView.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
|
HINSTANCE hPrevInstance,
|
|
LPTSTR lpCmdLine,
|
|
int nCmdShow)
|
|
{
|
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
|
|
// create the application instance
|
|
AppDelegate app;
|
|
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
|
|
eglView->setViewName("SpineExample");
|
|
eglView->setFrameSize(960, 640);
|
|
return CCApplication::sharedApplication()->run();
|
|
}
|