mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#include <cocos2d.h>
|
|
|
|
using namespace cocos2d;
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(disable : 4273)
|
|
|
|
CCKeyboardDispatcher* CCKeyboardDispatcher::get() {
|
|
return CCDirector::get()->getKeyboardDispatcher();
|
|
}
|
|
|
|
CCTouchDispatcher* CCTouchDispatcher::get() {
|
|
return CCDirector::sharedDirector()->getTouchDispatcher();
|
|
}
|
|
|
|
CCApplication* CCApplication::get() {
|
|
return CCApplication::sharedApplication();
|
|
}
|
|
|
|
CCDirector* CCDirector::get() {
|
|
return CCDirector::sharedDirector();
|
|
}
|
|
|
|
CCEGLView* CCEGLView::get() {
|
|
return CCDirector::sharedDirector()->getOpenGLView();
|
|
}
|
|
|
|
CCFileUtils* CCFileUtils::get() {
|
|
return CCFileUtils::sharedFileUtils();
|
|
}
|
|
|
|
CCSpriteFrameCache* CCSpriteFrameCache::get() {
|
|
return CCSpriteFrameCache::sharedSpriteFrameCache();
|
|
}
|
|
|
|
CCTextureCache* CCTextureCache::get() {
|
|
return CCTextureCache::sharedTextureCache();
|
|
}
|
|
|
|
CCScene* CCScene::get() {
|
|
return CCDirector::get()->getRunningScene();
|
|
}
|
|
|
|
CCScheduler* CCScheduler::get() {
|
|
return CCDirector::get()->getScheduler();
|
|
}
|
|
|
|
#pragma warning(pop)
|