//======================================================================== int main( ){ #if TARGET_OS_IPHONE ofAppiOSWindow * window = new ofAppiOSWindow(); if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ){ ofSetupOpenGL(window, 768,1024, OF_FULLSCREEN); } else{ CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat width = MIN(screenRect.size.width,screenRect.size.height); CGFloat height = MAX(screenRect.size.width,screenRect.size.height); ofSetupOpenGL(window, width, height, OF_FULLSCREEN); } ofRunApp(new testApp()); #elif TARGET_OS_MAC ofAppGLFWWindow window; ofSetupOpenGL(&window, 1024,768, OF_WINDOW); ofRunApp( new testApp()); #else ofAppGlutWindow window; ofSetupOpenGL(&window, 1024,768, OF_WINDOW); ofRunApp( new testApp()); #endif }
void FLaunchDaemonMessageHandler::HandlePingMessage(const FIOSLaunchDaemonPing& Message, const IMessageContextRef& Context) { if (MessageEndpoint.IsValid()) { FMessageAddress MessageSender = Context->GetSender(); MessageEndpoint->Send(new FIOSLaunchDaemonPong(FString(FPlatformProperties::PlatformName()) + (TARGET_IPHONE_SIMULATOR ? FString(TEXT("Simulator:")) : FString(TEXT("@"))) + FString(FPlatformProcess::ComputerName()) , FPlatformProcess::ComputerName() , "ULD_Ready" , UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone? "Phone" : "Tablet" , false , false , false ), MessageSender); } }
CCBReader::CCBReader(CCNodeLoaderLibrary * pCCNodeLoaderLibrary, CCBMemberVariableAssigner * pCCBMemberVariableAssigner, CCBSelectorResolver * pCCBSelectorResolver, CCNodeLoaderListener * pCCNodeLoaderListener) { this->mRootNode = NULL; this->mRootCCBReader = true; this->mCCNodeLoaderLibrary = pCCNodeLoaderLibrary; this->mCCNodeLoaderLibrary->retain(); this->mCCBMemberVariableAssigner = pCCBMemberVariableAssigner; this->mCCBSelectorResolver = pCCBSelectorResolver; this->mCCNodeLoaderListener = pCCNodeLoaderListener; this->mResolutionScale = 1; #ifdef __CC_PLATFORM_IOS /* iPad */ if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { this->mResolutionScale = 2; } #endif }