[AppDelegate.cpp]에서
#include "AppDelegate.h"
#include "HelloWorldScene.h"
typedef struct tagResource
{
cocos2d::CCSize size;
char directory[100];
} Resource;
static Resource resource1 = { cocos2d::CCSizeMake(480, 320), "iphone3" };
static Resource resource2 = { cocos2d::CCSizeMake(960, 640), "iphone4" };
static Resource resource3 = { cocos2d::CCSizeMake(1024, 768), "ipad" };
static Resource resource4 = { cocos2d::CCSizeMake(2048, 1536), "ipadhd" };
static cocos2d::CCSize designResolutionSize = cocos2d::CCSizeMake(480, 320);
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
CCDirector* pDirector = CCDirector::sharedDirector();
CCEGLView* pEGLView = CCEGLView::sharedOpenGLView();
pDirector->setOpenGLView(pEGLView);
pEGLView->setDesignResolutionSize(designResolutionSize.width,
designResolutionSize.height,
kResolutionNoBorder);
해상도 문제 해결! ㅎㅎ
댓글 없음:
댓글 쓰기