diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-02-20 23:02:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-02-20 23:02:47 -0300 |
commit | b62ec387f340220e11902daab8484fcb85d28cda (patch) | |
tree | fd62ea164cd1cb5a656df529f554ed8d4bf3301b /platform | |
parent | f2a068984c36de1f77940ae9d5dc0d017b8e642d (diff) | |
parent | 287a6347e66e530350f09f3d66b3ef8e7e868a0b (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'platform')
-rw-r--r-- | platform/isim/SCsub | 22 | ||||
-rw-r--r-- | platform/isim/detect.py | 18 | ||||
-rw-r--r-- | platform/osx/os_osx.mm | 14 | ||||
-rw-r--r-- | platform/server/logo.h | 2 | ||||
-rw-r--r-- | platform/windows/stream_peer_winsock.cpp | 5 |
5 files changed, 44 insertions, 17 deletions
diff --git a/platform/isim/SCsub b/platform/isim/SCsub index 6fb568465e..e7de935b2e 100644 --- a/platform/isim/SCsub +++ b/platform/isim/SCsub @@ -5,11 +5,14 @@ iphone_lib = [ '#platform/iphone/os_iphone.cpp', #'#platform/iphone/rasterizer_iphone.cpp', '#platform/iphone/audio_driver_iphone.cpp', + '#platform/iphone/sem_iphone.cpp', '#platform/iphone/gl_view.mm', '#platform/iphone/main.m', '#platform/iphone/app_delegate.mm', '#platform/iphone/view_controller.mm', - '#platform/iphone/scoreloop_ios.mm', + '#platform/iphone/game_center.mm', + '#platform/iphone/in_app_store.mm', + '#platform/iphone/Appirater.m', ] @@ -17,14 +20,25 @@ iphone_lib = [ #iphone_lib = env.Library('iphone', iphone_lib) -obj = env.Object('#platform/iphone/godot_iphone.cpp') +env_ios = env.Clone(); + +if env['ios_gles22_override'] == "yes": + env_ios.Append(CPPFLAGS=['-DGLES2_OVERRIDE']) + +if env['ios_GLES1_override'] == "yes": + env_ios.Append(CPPFLAGS=['-DGLES1_OVERRIDE']) + +if env['ios_appirater'] == "yes": + env_ios.Append(CPPFLAGS=['-DAPPIRATER_ENABLED']) + +obj = env_ios.Object('#platform/iphone/godot_iphone.cpp') prog = None if env["target"]=="release": - prog = env.Program('#bin/godot_iphone_opt', [obj] + iphone_lib) + prog = env_ios.Program('#bin/godot_opt', [obj] + iphone_lib) #action = "dsymutil "+File(prog)[0].path+" -o ../build/script_exec/build/Debug-iphoneos/script_exec.app.dSYM" #env.AddPostAction(prog, action) else: - prog = env.Program('#bin/godot', [obj] + iphone_lib) + prog = env_ios.Program('#bin/godot', [obj] + iphone_lib) #action = "dsymutil "+File(prog)[0].path+" -o ../build/script_exec/build/Debug-iphoneos/script_exec.app.dSYM" #env.AddPostAction(prog, action) diff --git a/platform/isim/detect.py b/platform/isim/detect.py index 8deabbf311..196d269deb 100644 --- a/platform/isim/detect.py +++ b/platform/isim/detect.py @@ -21,8 +21,14 @@ def get_opts(): return [ ('ISIMPLATFORM', 'name of the iphone platform', 'iPhoneSimulator'), - ('ISIMPATH', 'the path to iphone toolchain', '/Developer/Platforms/${ISIMPLATFORM}.platform'), - ('ISIMSDK', 'path to the iphone SDK', '$ISIMPATH/Developer/SDKs/${ISIMPLATFORM}4.3.sdk'), + ('ISIMPATH', 'the path to iphone toolchain', '/Applications/Xcode.app/Contents/Developer/Platforms/${ISIMPLATFORM}.platform'), + ('ISIMSDK', 'path to the iphone SDK', '$ISIMPATH/Developer/SDKs/${ISIMPLATFORM}7.0.sdk'), + ('game_center', 'Support for game center', 'yes'), + ('store_kit', 'Support for in-app store', 'yes'), + ('ios_gles22_override', 'Force GLES2.0 on iOS', 'yes'), + ('ios_GLES1_override', 'Force legacy GLES (1.1) on iOS', 'no'), + ('ios_appirater', 'Enable Appirater', 'no'), + ('ios_exceptions', 'Use exceptions when compiling on playbook', 'no'), ] def get_flags(): @@ -31,6 +37,8 @@ def get_flags(): ('lua', 'no'), ('tools', 'yes'), ('nedmalloc', 'no'), + ('webp', 'yes'), + ('module_FacebookScorer_ios_enabled', 'no'), ] @@ -50,12 +58,12 @@ def configure(env): env['AR'] = 'ar' import string - env['CCFLAGS'] = string.split('-arch i386 -fobjc-abi-version=2 -fobjc-legacy-dispatch -fmessage-length=0 -fpascal-strings -fasm-blocks -Wall -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -isysroot $ISIMSDK -mmacosx-version-min=10.6 -DCUSTOM_MATRIX_TRANSFORM_H=\\\"build/iphone/matrix4_iphone.h\\\" -DCUSTOM_VECTOR3_TRANSFORM_H=\\\"build/iphone/vector3_iphone.h\\\"') + env['CCFLAGS'] = string.split('-arch i386 -fobjc-abi-version=2 -fobjc-legacy-dispatch -fmessage-length=0 -fpascal-strings -fasm-blocks -Wall -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -isysroot $ISIMSDK -mios-simulator-version-min=4.3 -DCUSTOM_MATRIX_TRANSFORM_H=\\\"build/iphone/matrix4_iphone.h\\\" -DCUSTOM_VECTOR3_TRANSFORM_H=\\\"build/iphone/vector3_iphone.h\\\"') env.Append(LINKFLAGS=['-arch', 'i386', - #'-miphoneos-version-min=2.2.1', + '-mios-simulator-version-min=4.3', '-isysroot', '$ISIMSDK', - '-mmacosx-version-min=10.6', + #'-mmacosx-version-min=10.6', '-Xlinker', '-objc_abi_version', '-Xlinker', '2', diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 8dcba61c74..dda3527618 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -845,18 +845,17 @@ void OS_OSX::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi /*** OSX INITIALIZATION ***/ /*** OSX INITIALIZATION ***/ /*** OSX INITIALIZATION ***/ - - current_videomode=p_desired; + window_delegate = [[GodotWindowDelegate alloc] init]; // Don't use accumulation buffer support; it's not accelerated // Aux buffers probably aren't accelerated either - unsigned int styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | (current_videomode.resizable?NSResizableWindowMask:0); + unsigned int styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | (p_desired.resizable?NSResizableWindowMask:0); window_object = [[GodotWindow alloc] - initWithContentRect:NSMakeRect(0, 0, current_videomode.width,current_videomode.height) + initWithContentRect:NSMakeRect(0, 0, p_desired.width, p_desired.height) styleMask:styleMask backing:NSBackingStoreBuffered defer:NO]; @@ -865,6 +864,13 @@ void OS_OSX::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi window_view = [[GodotContentView alloc] init]; + current_videomode = p_desired; + + // Adjust for display density + const NSRect fbRect = convertRectToBacking(NSMakeRect(0, 0, p_desired.width, p_desired.height)); + current_videomode.width = fbRect.size.width; + current_videomode.height = fbRect.size.height; + #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) { [window_view setWantsBestResolutionOpenGLSurface:YES]; diff --git a/platform/server/logo.h b/platform/server/logo.h deleted file mode 100644 index bb383145f5..0000000000 --- a/platform/server/logo.h +++ /dev/null @@ -1,2 +0,0 @@ - /* AUTOGENERATED FILE, DO NOT EDIT */ - static const unsigned char _server_logo[]={0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa,0x0,0x0,0x0,0xd,0x49,0x48,0x44,0x52,0x0,0x0,0x0,0x20,0x0,0x0,0x0,0x20,0x8,0x6,0x0,0x0,0x0,0x73,0x7a,0x7a,0xf4,0x0,0x0,0x0,0x6,0x62,0x4b,0x47,0x44,0x0,0xff,0x0,0xff,0x0,0xff,0xa0,0xbd,0xa7,0x93,0x0,0x0,0x0,0x9,0x70,0x48,0x59,0x73,0x0,0x0,0xb,0x12,0x0,0x0,0xb,0x12,0x1,0xd2,0xdd,0x7e,0xfc,0x0,0x0,0x0,0x7,0x74,0x49,0x4d,0x45,0x7,0xdd,0x9,0x8,0x10,0x20,0x27,0x86,0x78,0xdd,0x76,0x0,0x0,0x7,0xff,0x49,0x44,0x41,0x54,0x58,0xc3,0xe5,0x97,0x5b,0x6c,0x5c,0xc5,0x19,0xc7,0x7f,0x67,0xe6,0xac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bc,0x82,0x8a,0x4b,0xde,0x1,0x0,0x0,0x0,0x0,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82}; diff --git a/platform/windows/stream_peer_winsock.cpp b/platform/windows/stream_peer_winsock.cpp index 2c3a8db7b1..eabfb30599 100644 --- a/platform/windows/stream_peer_winsock.cpp +++ b/platform/windows/stream_peer_winsock.cpp @@ -337,8 +337,9 @@ Error StreamPeerWinsock::connect(const IP_Address& p_host, uint16_t p_port) { }; void StreamPeerWinsock::set_nodelay(bool p_enabled) { - - + ERR_FAIL_COND(!is_connected()); + int flag=p_enabled?1:0; + setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, (char*)&flag, sizeof(int)); } |