Commit Graph

884 Commits

Author SHA1 Message Date
James Chen 94e056d964 fixed #1160: Renamed 'CGFloat' to 'CCFloat'. 2012-04-13 14:09:02 +08:00
James Chen 91b4d52c31 Merge pull request #838 from dumganhar/gles20
fixed #1159: Updated "CallFuncND + auto remove" test demo.
2012-04-12 20:56:05 -07:00
James Chen 47af0886d3 fixed #1159: Updated "CallFuncND + auto remove" test demo. 2012-04-13 11:54:29 +08:00
minggo 028cf7874e issue #1156: remove unneeded macros and functions 2012-04-13 11:22:17 +08:00
minggo 7cf16dbb32 Merge pull request #836 from minggo/touch_case
fix TouchesTest crashed on Android and iOS
2012-04-12 18:47:41 -07:00
minggo 3fbfeeb7e8 fixed #1142: fix TouchesTest crashed on Android and iOS 2012-04-13 09:45:31 +08:00
James Chen 2b5af66974 updated win32 projects configuration release version. 2012-04-10 23:09:58 +08:00
James Chen ba37e0e42f Merge pull request #834 from dumganhar/gles20
fixed #1138: Fixed a memory leak in CCTextureCache::addPVRImage.
2012-04-10 03:45:27 -07:00
James Chen b6cc0658f3 invalid pointer check in void TexturePVRRGB888::onEnter(). 2012-04-10 18:43:00 +08:00
James Chen 429e0bcb46 Merge pull request #832 from dumganhar/gles20
fixed #1136: Fixed some bugs as follows:
1. Using std::string parameter as the key of CCDictionary
2. Deep copy for CCDictionary and CCArray, the classes of elements's type must implement copyWithZone.
3. Added toBool() function to CCString.
4. Retina support for all platforms.
5. Include "CCString.h" and "cocoa/CCNS.h" in cocos2d.h.
6. Added a new constructor(CCArray::CCArray(unsigned int capacity)) for CCArray. And fixed a bug in CCArray.
7. Fixed a memory leak in CCLabelBMFont.cpp.
8. Fixed an error in strings.xml.
2012-04-10 02:46:38 -07:00
James Chen 675f2b5dd0 Updated strings.xml 2012-04-10 16:21:23 +08:00
minggo c9b1943559 create folder for shader 2012-04-10 15:30:11 +08:00
James Chen 6cd69523c8 Merge pull request #829 from dumganhar/iss1094_gles20_particlebat
issue #1094: Make ParticleBatchNode works on win32 and fixed some issues as follows:
1. renamed CCPoolManager::getInstance() to CCPoolManager::sharedPoolManager(), and added CCPoolManager::purgePoolManager() method. Using pointer rather than global variable to make a singleton.
2.fixed a memory leak in CCParticleSystem.
3.init CCSprite::m_pobBatchNode at the beginning of CCSprite::initWithTexture.
4.Add CCAssert in ccArrayRemoveObjectAtIndex.
5.Use new method to allocate CCDirector.
2012-04-08 19:45:38 -07:00
James Chen b4d74700e4 Merge branch 'iss1094_gles20_particlebat' of https://github.com/dumganhar/cocos2d-x into new_ipad
Conflicts:
	tests/tests/ParticleTest/ParticleTest.cpp
2012-04-09 10:28:21 +08:00
James Chen 3d601048c6 Merge pull request #831 from dumganhar/new_ipad
fixed #1095: IOS screen resolution(iphone, iphone-retina, ipad, ipad-retina) support.
2012-04-08 19:02:16 -07:00
Phenix Yu a05757f741 update for msvc2010 2012-04-09 00:10:12 +08:00
minggo 355e27dada merge commit 928a28e37d3469fcd41aff14cb136b1415f2fc86 2012-04-08 14:16:29 +08:00
Walzer 203f40a00d add shader files correctly in test.xcodeproj, fix a warning in CCLabelBMFont.cpp, 2012-04-06 23:33:42 +08:00
James Chen 931c42a621 Updated some files. 2012-04-04 21:58:04 +08:00
James Chen c759f29d76 Merge branch 'gles20' of https://github.com/dumganhar/cocos2d-x into gles20 2012-03-29 10:11:42 +08:00
James Chen c6457dfed8 issue #1056: Updated ios project configuration. 2012-03-29 10:09:41 +08:00
James Chen bb7485621e issue #1056: Updated ParticleTest, CCParticleSystem, CCParticleSystemQuad. 2012-03-28 21:44:28 +08:00
James Chen 0f1ab7ab37 issue #1056: Updated SpriteTest, reverted the last parameter of glDrawElement in CCTextureAtlas.cpp and CCParticleSystemQuad.cpp. 2012-03-27 10:55:13 +08:00
James Chen d36933d542 issue #1056: Update ios project. 2012-03-26 20:29:50 +08:00
James Chen d67ea955f2 Delete some shader files. 2012-03-26 20:03:54 +08:00
James Chen 85c13998ee issue #1056: Added CCTransitionProgress class, Updated Texture2dTest, TileMapTest, TransitionsTest. 2012-03-26 16:46:23 +08:00
James Chen 6f5603cfe6 issue #1056: Updated CCTexture2dTest. Added CCTextureAsyncTest. 2012-03-23 18:16:47 +08:00
James Chen 9c9230a43f #issue #1056: Updated SpriteTest. 2012-03-23 17:31:28 +08:00
James Chen 2a459e23a6 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-23 10:27:35 +08:00
James Chen 0ef65d1ed5 issue #1056: Renamed CC_COCOSNODE_RENDER_SUBPIXEL to CC_NODE_RENDER_SUBPIXEL in CCNode.cpp 2012-03-23 10:26:36 +08:00
minggo 728835c77b Merge pull request #806 from minggo/SpriteTest
Sprite test
2012-03-22 19:25:24 -07:00
minggo ad8d7cdeff SpriteTest 2012-03-23 10:23:02 +08:00
James Chen 900de7328a Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-22 18:29:26 +08:00
James Chen c5d0b1ca6f issue #1056: Updated ParticleTest. 2012-03-22 18:29:07 +08:00
minggo a8eaf85cfb Merge pull request #804 from minggo/RenderTextureTest
Rendertexturetest
2012-03-22 01:37:58 -07:00
minggo 39ba6b4618 issue #1506: RenderTextureTest 2012-03-22 16:36:03 +08:00
minggo 56f27c495b Merge pull request #803 from minggo/MotionStreak
issue #1506: MotionStreakTest
2012-03-21 23:33:03 -07:00
minggo 6b7716770e issue #1506: MotionStreakTest 2012-03-22 14:32:32 +08:00
James Chen 3a50022399 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-22 14:24:08 +08:00
James Chen b1f293e089 issue #1056: Updated MenuTest. Added CCArray::arrayWithObject function. 2012-03-22 14:22:06 +08:00
minggo 2aa61bf798 issue #1506: LyaerTest 2012-03-22 13:59:47 +08:00
minggo 85de198511 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into test_sync 2012-03-22 11:49:04 +08:00
minggo 3d10006d6f issue #1506: implement CCLabelTest 2012-03-22 11:48:37 +08:00
James Chen 925fee4820 issue #1056: Added kazmath license file. Used CCCallFuncN instead of CCCallBlock and updated ActionsTest. 2012-03-22 11:26:39 +08:00
James Chen 3a287db954 issue #1056: Update ActionsTest. 2012-03-22 10:27:28 +08:00
minggo b1607b2106 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into test_sync 2012-03-22 09:41:03 +08:00
minggo e8b7bc7c7e issue #1056: LabelTest 2012-03-22 09:40:32 +08:00
James Chen 2e8bae8ebf issue #1056: Update Android.mk. Make tests project being compiled successfully. 2012-03-21 22:49:58 +08:00
James Chen 6f4a01f454 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-21 17:35:39 +08:00
James Chen f529bcd659 issue #1056: Move some singletons to CCDirector. It is easily managed by CCDirector. 2012-03-21 17:35:20 +08:00
minggo e75e35b23f issue #1506: add ShaderTest source code 2012-03-21 17:27:13 +08:00
minggo 6242656049 issue #1506: fix a confict 2012-03-21 17:23:33 +08:00
minggo 92c30a328e issue #1506: implement ShaderTest 2012-03-21 17:02:52 +08:00
James Chen 159b677dc0 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-21 16:09:26 +08:00
James Chen 8ad598241f issue #1056: Update Tests project for ios platform. 2012-03-21 16:05:24 +08:00
James Chen 9b4a42c494 issue #1056: Update Box2dTest and ChipmunkAccelTouchTest. 2012-03-21 15:54:48 +08:00
James Chen 2ac2da9c97 issue #1056: 1. Removed ChipmunkTest, added ChipmunkAccelTouchTest.
2. Added Box2DTest and Box2DTestBed.
Tested on win32.
2012-03-21 15:43:35 +08:00
minggo bb908f5a5e Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into ActionsEaseTest 2012-03-21 13:36:51 +08:00
minggo f6c113993a issue #1506: rename CocosNodeTest to NodeTest and SC 2012-03-21 13:36:24 +08:00
James Chen 8ef5e4ae3b issue #1056: Update the configuration of ios project.Sort the the project folder. 2012-03-21 11:07:31 +08:00
James Chen 321771a7ea issue #1056: Added gles2.0 support for ios platform. 2012-03-21 10:05:23 +08:00
minggo a3441a39e7 issue #1056: rename EaseTatinosTest to ActionsEaseTest and SC 2012-03-20 18:07:42 +08:00
minggo 7ccb38556e Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into android_gles20 2012-03-20 16:10:53 +08:00
minggo 74aaf4c6ca issue #1056:gles20 runs ok on android 2012-03-20 16:10:12 +08:00
James Chen ae2b3307fa Merge pull request #779 from dumganhar/iss1056_CCDict
issue #1056: Removed CCMutableArray and CCMutableDictionary template, offered CCDictionary to improve the performance of dictionary by 60%, it means that CCDictionary can save about 2/3 time cost.
2012-03-20 00:07:58 -07:00
James Chen 6ce06bd906 issue #1056: Remove CCMutableArray and CCMutableDictionary template, offer CCDictionary to improve the performance of dictionary by 60%, it means that CCDictionary can save about 2/3 time cost. 2012-03-20 15:04:53 +08:00
minggo 39738e4270 issue #1056: implement ActionsProgressTest and run ok on win32 2012-03-19 18:20:32 +08:00
minggo 68809fd5ed Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-19 13:54:34 +08:00
James Chen e021ae9821 #1056: issue #1056: synchronise cocos2d-iphone-2.0-rc0a, update some files. 2012-03-16 17:56:19 +08:00
James Chen 275891dfb0 issue #1056: synchronise cocos2d-iphone-2.0-rc0a 2012-03-16 13:42:53 +08:00
minggo 41fad74017 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-03-15 10:05:42 +08:00
James Chen 8aa3f7f9ae issue #1056: TestCases works ok except Box2dTest and ChipmunkTest. 2012-03-14 18:11:25 +08:00
folecr 6336df4024 Fix test to match newer API 2012-03-13 23:07:42 -07:00
Wartortle 7321d33aaf Added support files for Accelerometer Simulation for iPhone Simulator and
Unimotion
Ref: http://code.google.com/p/accelerometer-simulator/wiki/Home
Ref: https://github.com/gmarik/unimotion
2012-03-08 11:23:47 +00:00
minggo 645d561276 fixed #737: remove view id 2012-03-08 12:40:27 +08:00
minggo 7890333505 fixed #721: cocosdenshion can play local file on android 2012-03-06 16:56:30 +08:00
James Chen d3dedd19f2 fixed #995: Modify project configure for marmalade port after adding extension support and refactor resource folder. 2012-03-01 17:38:31 +08:00
James Chen dfd5adb3bd fixed #994: add support for bbndk2.0 on blackberry platform. 2012-03-01 16:52:17 +08:00
James Chen 7daeb5cd86 fixed #984: Use static library for cocos2dx project on platforms(bada and qnx) that use gcc compiler. Because dynamic_cast may fail if you use a gcc compiler. 2012-02-28 14:59:46 +08:00
James Chen 6d97e3e381 fixed #972: update ios project configures. 2012-02-16 11:48:09 +08:00
James Chen 2c599d31b5 Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into iss972_CCNotificationCenter 2012-02-15 17:02:47 +08:00
James Chen ac98d22367 update ios project configures for ios, and modify xcode4's template 2012-02-15 16:59:47 +08:00
James Chen e1413dff5e update linux project configure 2012-02-15 15:57:09 +08:00
James Chen a2a5af3348 update bada and qnx project settings 2012-02-15 13:52:41 +08:00
James Chen 3422696145 1.modify some project setting for bada
2.rename some files
2012-02-14 22:35:51 +08:00
James Chen abefe50ef7 modify marmalade project setting 2012-02-14 18:25:20 +08:00
James Chen f8ff388e8d rename Resource(in HelloLua and HelloWorld project) and Res(in tests project) to Resources.
test ok on win32 and android
2012-02-14 18:04:56 +08:00
minggo e75dbf2bd9 Merge pull request #724 from minggo/iss957_text_input
fixed #957: avoid to go to background when inputting test
2012-02-14 00:07:51 -08:00
minggo fd9f73f43e fixed #957: avoid to go to background when inputting test 2012-02-14 16:02:41 +08:00
James Chen c3d23a7923 issue #972: Modify project setting for all platforms. Use new icons for ios template. 2012-02-14 15:13:54 +08:00
James Chen 65b1b20c8d Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into iss972_CCNotificationCenter
Conflicts:
	cocos2dx/proj.win32/cocos2d-win32.vcxproj.filters
	tests/test.win32/test.win32.vcxproj.filters
2012-02-14 11:43:04 +08:00
James Chen 4b9ee55145 issue #972: modify project settings for linux and marmalade. 2012-02-10 13:39:39 +08:00
minggo 8b855a917f issue #973: refactor lua support 2012-02-10 12:02:46 +08:00
James Chen 81ec2c8586 issue #972: add support for CCNotificationCenter, and add the test demo for it.
modify the project setting for VS2008 and VS2010
2012-02-10 11:48:33 +08:00
minggo 3c41164b23 Merge pull request #716 from minggo/iss971_rtti
build cocos2dx as static lib and remove some unneeded codes
2012-02-09 18:35:28 -08:00
minggo 6ae40fc12f fixed #971: build cocos2dx as static lib 2012-02-10 10:31:56 +08:00
minggo 481f1c2532 fix a typo error 2012-02-09 18:17:25 +08:00
minggo 357c825fa5 issue #971: set JavaVM at JNI_Onload() 2012-02-09 16:27:15 +08:00
minggo 153d2b8192 issue #971: build cocos2dx as static lib and remove some unneeded codes 2012-02-09 15:49:14 +08:00
minggo ee08c4629e Merge pull request #714 from minggo/ndk_module
fixed #970: use modules in the android ndk build
2012-02-07 19:16:01 -08:00
minggo 52de292e20 fixed #970: use modules in the android ndk build 2012-02-08 11:14:47 +08:00
minggo 29c18c67ca Merge pull request #712 from minggo/ndk_module
Use modules in the Android NDK build
2012-02-06 22:36:45 -08:00
minggo 9249328afb fixed #970: use modules in the Android NDK build 2012-02-07 14:34:30 +08:00
dumganhar ee2139023a Merge pull request #708 from Wartortle/master
fixed #969: Addition of Accelerometer Simulation for Win32.
2012-02-06 18:57:41 -08:00
minggo a7c96b5371 fixed #954: correct accelerometer data when set orientation to portrait in tablet 2012-02-07 10:19:40 +08:00
Wartortle aa06de2fb3 Second half of commit for adding Accelerometer simulation to Win32. 2012-02-06 11:38:53 +00:00
minggo 591b7d0619 fixed #933: profile CCUserDefault 2012-02-02 14:18:13 +08:00
minggo 1ae8f001b8 Merge pull request #702 from minggo/iss947_closed_loop
fixed #947: fixed a closed loop
2012-02-01 02:22:02 -08:00
minggo 5e39489c71 fixed #947: fixed a closed loop 2012-02-01 18:18:31 +08:00
minggo 56677be235 Merge pull request #701 from minggo/iss964_label
fixed #964: compute correct height of a charactor
2012-02-01 02:05:50 -08:00
minggo 7b67c04f2f fixed #964: compute correct height of a charactor 2012-02-01 18:04:12 +08:00
dumganhar 64c892de79 Merge pull request #697 from dducharme/dalebranch
fixed #962: Updating the following:
CocosDenshion - now using OpenAL exclusively for audio, added ogg/vorbis support there
Accelerometer - fixing the accelerometer for different initial orientations of the device
Application - paying attention to the locale of the device and setting the current language accordingly
CCEGLView - paying attention to navigator events (menu, application go to background, application enters foreground), fixed up orientation code, fixed up screen event pointer code
2012-01-31 18:44:09 -08:00
minggo a2efab73a0 fixed #959: make touch id correct on android 2012-01-31 14:49:02 +08:00
Dale Ducharme 32e4cc1af2 Updating the following:
CocosDenshion - now using OpenAL exclusively for audio, added ogg/vorbis support there
Accelerometer - fixing the accelerometer for different initial orientations of the device
Application - paying attention to the locale of the device and setting the current language accordingly
CCEGLView - paying attention to navigator events (menu, application go to background, application enters foreground), fixed up orientation code, fixed up screen event pointer code
2012-01-30 20:27:58 -05:00
minggo 6c2277757a fixed #958: delete SelectorProtocol and implement it in CCObject 2012-01-30 17:47:47 +08:00
gzito fe79a2c5d2 Merge branch 'master' of git://github.com/cocos2d/cocos2d-x 2012-01-28 10:54:31 +01:00
dumganhar a23893507d fixed 952: make CCLabelBMFont support other language, such as chinese, korean, japanese. 2012-01-18 18:43:41 +08:00
gzito 9e180e9c01 Added true type fonts file for Marmalade version 2012-01-17 10:53:47 +01:00
gzito c87881ff94 Added Marmalade support to TextInputTest and HelloLua samples 2012-01-15 15:57:10 +01:00
dumganhar 3f7ab5a58f Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into modify_linux_port 2012-01-12 19:17:31 +08:00
dumganhar ef753afb6b modify eclipse project setting for linux port 2012-01-12 19:15:23 +08:00
minggo df668c9785 Merge pull request #675 from minggo/test
fixed #930: linux supports jpg format file
2012-01-12 01:51:16 -08:00
minggo 0e03c8ca21 fixed #930: linux supports jpg format file 2012-01-12 17:46:53 +08:00
minggo 3905e5a47b Merge pull request #670 from minggo/test
fixed #941: limit background music volume in [0, 1.0]
2012-01-11 01:57:27 -08:00
minggo 40b1798f41 fixed #941: limit background music volume in [0, 1.0] 2012-01-11 17:56:11 +08:00
dumganhar 4848dc9c46 fix a bug in SimpleAudioEngine.cpp on bada platform
use float value to change volume
2012-01-11 17:24:46 +08:00
minggo 86997d6709 fixed #940: replace icons and background pictures 2012-01-10 16:45:49 +08:00
dumganhar 317f23f498 fixed #939: Add create_qnx_project.vbs and add project references 2012-01-09 19:06:49 +08:00
minggo 1bd3601b11 fixed #937: use gnustl_static instead of stlport_static to resolve compiling error on android x86 platform 2012-01-04 18:02:32 +08:00
minggo 08e0be754b fixed #926: retain/release in Paddle 2011-12-28 15:13:02 +08:00
minggo d82471478d add run permition 2011-12-23 11:17:20 +08:00
minggo edbbe25a98 issue #888: remove the setting for android building 2011-12-23 10:40:02 +08:00
minggo b7fbd4fc13 issue #919: supporting global variable 2011-12-20 16:50:39 +08:00
minggo 857ce1d505 fixed #921: fix a bug that accelerometer axes inverted in android tablet 2011-12-19 16:29:26 +08:00
dumganhar af221f8710 fixed #918: modify filter of airplay to marmalade. 2011-12-16 11:08:37 +08:00
dumganhar 8298e0b6ff Merge branch 'master' of https://github.com/styck/cocos2d-x into pullrequest#611
Conflicts:
	tests/test.marmalade/test.mkb
2011-12-15 13:03:07 +08:00
dumganhar 265558d9c7 Merge branch 'dev' of https://github.com/guavagames/cocos2d-x into pullrequest#619 2011-12-15 11:36:42 +08:00
Didiet Noor 0f8da500c2 Restored Accidentally removed marmalade line from CocosDenshion Test 2011-12-15 02:05:25 +08:00
Didiet Noor 8c69c70fc3 Fixed Path Issues on QNX, CocosDenshion Test back to original 2011-12-15 00:31:17 +08:00
Didiet Noor f5d41d21b2 Added CDT Project and Modifying CocosDenshion for QNX 2011-12-14 21:26:47 +08:00
Walzer 7d01aa0c74 HelloWorld, Test and HelloLua can succefully compiled by xcodebuild commenline with -sdk iphonesimulator4.3 now. The key is GCC_VERSION="", you can not skip this null value, otherwise the commendline will use GCC4.2 as default, can generate tons of errors. 2011-12-13 22:25:51 +08:00
dumganhar 4b9cbb85ff #issue 908: Merge marmalade to latest cocos2d-x source
Merge branch 'master' of https://github.com/gzito/cocos2d-x into marmalade

Conflicts:
	cocos2dx/platform/CCFileUtils.cpp
	cocos2dx/platform/CCPlatformConfig.h
	cocos2dx/support/zip_support/ioapi.cpp
2011-12-12 17:46:21 +08:00
dumganhar baf3755142 remove some '__QNX__' macros 2011-12-12 16:14:12 +08:00
dumganhar dea2713f51 fixed #907: add blackberry port
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into blackberry

Conflicts:
	cocos2dx/platform/CCSAXParser.h
2011-12-12 11:49:49 +08:00
minggo 95b43ac563 Merge pull request #614 from minggo/issue892_RTTI
Use RTTI to simplify codes
2011-12-11 19:40:34 -08:00
minggo 8c5c3300aa Merge pull request #612 from dumganhar/issue904
Issue904
2011-12-11 19:33:07 -08:00
styck b1cdb6543d Updated ccLanguageType CCApplication::getCurrentLanguage() to return the current language
Added tests for Marmalade and enabled language and font testing
2011-12-11 17:18:01 -08:00
gzito 47e108a8c5 Added marmalade support, removed airplay 2011-12-11 10:19:41 +01:00
styck bcf63d0e96 Merged from gitbub.gom/gzito, marmalade support, remove airplay 2011-12-10 20:59:48 -08:00
gzito f27f9180ff Merge remote-tracking branch 'remotes/styck/master' 2011-12-10 11:10:59 +01:00