Commit Graph

2105 Commits

Author SHA1 Message Date
minggo 2dd08a4945 Merge pull request #3769 from michaelcontento/android-fix-opengl-config
[ci skip]add EGL_RENDERABLE_TYPE to OpenGL attributes
2013-09-23 19:08:55 -07:00
minggo 5f2c94ee3c Merge pull request #3768 from michaelcontento/android-fix-null-access
[ci skip]wrong variable used which could crash the whole app
2013-09-23 19:07:22 -07:00
minggo 0c5e5cbf0c Merge pull request #3767 from michaelcontento/android-add-runOnGLThread-back-again
[ci skip]re-introduce Cocos2dxHelper.runOnGLThread(Runnable)
2013-09-23 19:00:36 -07:00
Ricardo Quesada 769a7ea1ed Logs when software decoder is being used
Logs when software decoder is being used in `Image`
2013-09-23 17:03:28 -07:00
Michael Contento 4211cc7fd1 re-introduce Cocos2dxHelper.runOnGLThread(Runnable)
It's crucial to execute various tasks synchonized with the rendering loop /
thread, but this ability (runOnGLThread) got removed with the NativeActivity
transitions a few days ago. This patch adds this method back again.

Why can't we just use runOnUiThread()? Because it seems not to be synchronized
properly and can cause broken OpenGL textures or even the whole app to crash.

Isn't there a better way to get into the mainloop? I hope so! But I'm not a
experienced Android developer and this solution is quite simple / the only one
that worked without any problems.
2013-09-23 11:53:12 +02:00
Michael Contento 09543a0aac wrong variable used which could crash the whole app 2013-09-23 11:50:34 +02:00
Michael Contento c9fe2c5107 add EGL_RENDERABLE_TYPE to OpenGL attributes
This patch adds EGL_RENDERABLE_TYPE=EGL_OPENGL_ES2_BIT to the OpenGL attributes.
The default value for this setting is EGL_OPENGL_ES_BIT and, as we require ES 2.0,
cause some problems on various Android devices (e.g. Amazon Kindle 2.Gen).
2013-09-23 11:44:14 +02:00
minggo 261f0e4f05 rename some files 2013-09-21 14:40:54 +08:00
minggo bcb171e3c9 fix line end in windows 2013-09-20 22:23:13 +08:00
minggo 4c9771ba3c rename some class names to obey cocos2d-x coding style 2013-09-20 19:19:31 +08:00
Dhilan007 2504b8e029 restore AccelerometerTest 2013-09-19 19:05:52 +08:00
Dhilan007 479355ee32 Unify Accelerometer coordinate on IOS and Android. 2013-09-19 00:04:50 +08:00
James Chen e697b0fc0b issue #2087: Updating the constructor of XXXEvent. 2013-09-18 18:16:14 +08:00
minggo ff3fcf5eb7 Merge pull request #3690 from dabingnn/release30_bug_hot_fix
glfw EGLView alloc on the stack to prevent memory leak
2013-09-18 02:44:34 -07:00
Huabing.Xu 768828ec29 add term logic of application to prevent memory leak (for desktop such as linux, mac, windows) 2013-09-18 17:16:31 +08:00
samuele3hu 71b03ecdb9 replace tabs with spaces 2013-09-18 17:09:08 +08:00
samuele3hu 1ee7f72276 Modify handle_key_input function for responding the onKeyReleased 2013-09-18 17:02:32 +08:00
James Chen 5a65ef7488 Merge pull request #3686 from dumganhar/iss2087-new-event-dispatcher
Fixing crash after changing Dictionary::createWithContentOfFile() to return autorelease object. [ci skip].
2013-09-18 01:05:11 -07:00
James Chen cfb5de2900 Fixing crash after changing Dictionary::createWithContentOfFile() to return autorelease object. [ci skip]. 2013-09-18 16:06:39 +08:00
James Chen 40a6f84585 Merge pull request #3680 from Dhilan007/develop
1.android platform:handle key event and fix Accelerometer value error [ci skip]
2013-09-18 00:01:32 -07:00
Dhilan007 fd3a03a6ee 1.android platform:handle key event
2.android platform:fix Accelerometer value error
2013-09-18 12:04:35 +08:00
minggo 75d31b3c5c Merge pull request #3603 from ktaobo/disable-nslog
Disable log output on release build
2013-09-17 18:37:09 -07:00
minggo b91b350f2b Merge pull request #3666 from Dhilan007/develop
android platform:fix EditBox not show input box and crash.
2013-09-17 18:33:43 -07:00
Dhilan007 a3524f420d . 2013-09-17 23:22:16 +08:00
Dhilan007 509bea531a android platform:fix EditBox not show input box and crash. 2013-09-17 23:16:32 +08:00
James Chen aaf4a6a81b [win32] clear keycode map before init eglview. 2013-09-17 22:37:16 +08:00
James Chen 7d94878173 [win32] glfw keyboard callback is enabled now. Enables KeyboardTest for win32. 2013-09-17 22:34:20 +08:00
James Chen cdcfda1f2c issue #2087: [dispatcher] Removing unused codes. 2013-09-17 17:00:37 +08:00
minggo b42c2fc487 remove dependence of sdl 2013-09-17 13:39:16 +08:00
minggo 3072144ad5 implement Cocos2dxHelperListener 2013-09-17 11:44:33 +08:00
James Chen 9981aecddf Removing unneeded log in win32/CCEGLView.cpp. 2013-09-16 20:41:03 +08:00
boyu0 c726765b4a closed #2745: fix bug: _dataLen not set at Image::initWithString() and Image::initWithStringShadowStroke() 2013-09-16 17:13:44 +08:00
minggo 2a315e53b8 Merge pull request #3402 from j4m3z0r/develop-emscripten
Port my variant of font-rendering over to dev branch -- adds correct ali...
2013-09-15 22:52:33 -07:00
minggo e4f8929898 Merge pull request #3606 from dabingnn/issue_2808_glfw_bug_enhancement
Issue 2808 glfw bug enhancement
2013-09-15 20:18:02 -07:00
minggo 81a26d44f6 Merge pull request #3596 from dumganhar/new-event-dispatcher-rename
[New Event Dispatcher] Using rename registerEventListener to addEventListener, unregisterEventListener to removeEventListener.
2013-09-15 20:13:51 -07:00
Keita Obo e0b13e8836 Disable log output on release build 2013-09-15 13:07:58 +09:00
Huabing.Xu 9440aa7a99 issue #2808: refractor setFrameZoomFactor() access, change init() parameter (linux windows version) 2013-09-14 22:48:14 +08:00
samuele3hu 85ca0136f0 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into Bridge 2013-09-14 19:53:08 +08:00
James Chen dd7bfd7b60 Merge branch 'develop' of git://github.com/cocos2d/cocos2d-x into new-event-dispatcher-rebase
Conflicts:
	cocos2dx/CCDirector.h
	cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.h
	cocos2dx/keypad_dispatcher/CCKeypadDelegate.h
	cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h
	cocos2dx/layers_scenes_transitions_nodes/CCLayer.h
	cocos2dx/menu_nodes/CCMenu.h
	cocos2dx/platform/CCAccelerometerDelegate.h
	cocos2dx/platform/android/CCAccelerometer.h
	cocos2dx/platform/ios/CCAccelerometer.h
	cocos2dx/platform/mac/CCAccelerometer.h
	cocos2dx/platform/win32/CCAccelerometer.h
	cocos2dx/script_support/CCScriptSupport.h
	cocos2dx/touch_dispatcher/CCTouchDelegateProtocol.h
	cocos2dx/touch_dispatcher/CCTouchDispatcher.h
	cocos2dx/touch_dispatcher/CCTouchHandler.h
	extensions/CocoStudio/Components/CCInputDelegate.h
2013-09-13 19:06:09 +08:00
Huabing.Xu 0af0951c35 issue #2808: refractor setFrameZoomFactor() access, change init() parameter 2013-09-13 18:21:12 +08:00
Huabing.Xu 86306a842d issue #2808: 1. retina support 2. frameZoomFactor 2013-09-13 18:09:11 +08:00
Huabing.Xu 5f1e5c505c issue #2808: when move window, set OpenGL viewport again 2013-09-13 17:11:35 +08:00
samuele3hu d8bd65b2e8 issue #2784:Add class constructor js-binding document 2013-09-13 16:46:31 +08:00
samuele3hu 5ddd9ae23c issue #2784:Delete class destuctor js-binding and lua-binding document 2013-09-13 13:52:42 +08:00
samuele3hu a34ec99014 issue #2784:Add js-binding and lua-binding document 2013-09-13 11:41:20 +08:00
James Chen cb7d090992 [dispatcher] Updating CCDevice.cpp for linux. 2013-09-12 21:39:47 +08:00
James Chen 1702cbd7b2 [dispatcher] Other platforms update. 2013-09-12 20:56:57 +08:00
James Chen fb12c90238 [dispatcher] Using temporary std::vector in handleTouchXXXX. 2013-09-12 20:43:09 +08:00
James Chen ea74c30895 [Dispatcher] Updating ios/CCDevice.mm. 2013-09-12 20:41:59 +08:00
James Chen 24c8438fa6 [Dispatcher] Updating Android.mk, and some refractor. 2013-09-12 17:31:37 +08:00