James Gregory
d52aa420e8
Switch to slot-based GL buffer loading code for CCSprite.
2013-05-06 20:59:47 -07:00
James Gregory
87daf9d3eb
Add missing Makefile reference to file utils for Emscripten.
2013-05-06 20:59:47 -07:00
James Gregory
764dffc822
Increase heap size for Emscripten binaries, add in missing linkages.
2013-05-06 20:59:47 -07:00
James Gregory
5138fb66fd
Add pre-build dependencies for Emscripten libpng, libz.
2013-05-06 20:59:47 -07:00
James Gregory
7d563a818a
Hack: use 800x500 resolution for window for emscripten so that mouse roughly lines up.
2013-05-06 20:59:47 -07:00
James Gregory
19c6a50d50
Enable texture caching with emscripten.
2013-05-06 20:59:46 -07:00
James Gregory
a1c628f80a
Fix Motion streak client side buffers
2013-05-06 20:58:46 -07:00
James Gregory
edcd0f12e4
Add platform files for Emscripten.
2013-05-06 20:58:46 -07:00
James Gregory
9500448f87
Get CCGrid to work.
2013-05-06 20:58:46 -07:00
James Gregory
089a47d937
Add method to CCNode class to allow uploading data to GPU. Call it from CCSprite.
2013-05-06 20:58:45 -07:00
James Gregory
aa2739a109
Update build process for HelloCpp to build .js and .data files separately, pulling both in from index.html
2013-05-06 20:58:45 -07:00
James Gregory
77e9f4902e
Build fixes for emscripten, add linkage to libfreetype.a
2013-05-06 20:58:45 -07:00
James Gregory
1d307d676d
Remove freetype source and add libfreetype.a as built by the Emscripten test-suite.
...
Revert "Add freetype 2.4.11 to repo"
This reverts commit 418906d2612b59ead6826d8395b69168bdff0ca4.
2013-05-06 20:58:45 -07:00
James Gregory
955ba1bfd3
ifdef tango around some symbols that aren't defined in Emscripten (nor a bunch of other platforms, it seems).
2013-05-06 20:58:43 -07:00
James Gregory
4f56f93269
Add #defines for Emscripten platform
2013-05-06 20:58:43 -07:00
James Gregory
c45e5797cf
Add Makefiles for Emscripten + Emscripten external
2013-05-06 20:58:02 -07:00
minggo
80dfd4d493
Merge pull request #2407 from sergey-shambir/attribute_format
...
Added __attribute__(__format__()) for CCLog and CCString
2013-05-06 20:06:52 -07:00
Adrien Béraud
6a5559da7f
Check for 0 length in CCPoint::normalize()
2013-05-07 03:15:28 +10:00
Adrien Béraud
f71798a35b
Check for 0 length in CCPoint::normalize()
2013-05-07 02:59:38 +10:00
Adrien Béraud
49474f5194
documentation
2013-05-07 02:53:13 +10:00
minggo
d395d26e1d
Merge pull request #2417 from sergey-shambir/disable_copy
...
Added CC_DISABLE_COPY macro
2013-05-06 03:02:48 -07:00
minggo
bbf0f9d1bd
Merge pull request #2513 from savdalion/const-methods
...
Added const methods for classes - purer code!
2013-05-05 23:55:37 -07:00
James Chen
fead37eab3
fixed #2105 : Adding Travis build support for linux and NaCl.
2013-05-06 10:55:39 +08:00
Adrien Béraud
3661e34695
Bug fix: width and height reversed in CCSize operators
2013-05-05 19:51:44 +10:00
Romain Tisserand
d2690d8942
Fix iOS 4.3 JPEG loading (darken picture, alpha issue)
2013-05-04 19:14:23 +02:00
Adrien Béraud
637cc1a9ed
CCPoint::getDistance() implemented, CCPoint::length() renamed to getLength(), bug fixes
2013-05-05 02:58:46 +10:00
minggo
1a0db3749e
Merge pull request #2496 from mchinen/mchinensedit
...
Fix missing protocol method warning for iOS 6.0 addition
2013-05-04 08:55:07 -07:00
savdalion
5f549dd011
Added const modifier for classes CCArray, CCObject - fine code!
2013-05-04 15:05:06 +03:00
Adrien Béraud
6fb586028e
Revert unrelated change commited by mistake
2013-05-04 17:20:59 +10:00
Adrien Béraud
b9fe35901a
Moved most CCPointExtension functions to CCPoint OO-equivalents
2013-05-04 17:18:22 +10:00
Ricardo Quesada
ea30d21799
updates Xcode project to detect more warnings
2013-05-03 11:59:44 -07:00
Michael Chinen
d47759cc32
EAGLView.mm: fix indent
2013-05-03 19:46:58 +09:00
Adrien Béraud
b34dc25346
Cleaner constructors and overloads for CCSize; Cross-assignement and conversion constructors between CCPoint and CCSize.
2013-05-03 13:24:52 +10:00
Adrien Béraud
b627cd4674
overloading operators +-*/ in CCPoint
2013-05-02 15:13:03 +10:00
Adrien Béraud
9fb0081add
direct constructor for CCPoint
2013-05-02 14:59:50 +10:00
Darragh Coy
212feb8d8c
Add CCDirector::popToSceneStackLevel(int level)
...
This replicates a change made to cocos2d-iphone in the following commit:
59c5272bff
The cocos2d-iphone change was originally discussed in the following pull request:
http://github.com/cocos2d/cocos2d-x/pull/2210
2013-04-30 23:33:22 +01:00
Michael Chinen
be2f20e213
Fix missing protocol method warning for iOS 6.0 addition
2013-05-01 00:35:17 +09:00
minggo
d1506326ba
Merge pull request #2484 from sergey-shambir/bit_more_verbose
...
Logging: More verbose output in removeChildByTag and getActionByTag
2013-04-29 08:06:53 -07:00
minggo
1a598a8c68
update version
2013-04-28 13:48:18 +08:00
Sergey Shambir
44a6be80d2
More verbose logging in removeChildByTag and getActionByTag
...
Tags are often hardcoded, so tag value will be useful to detect problem.
2013-04-27 23:15:00 +04:00
tiantian
2ba5035e5a
Make sure XMLDocument is deleted; Code clean up; Add test;
2013-04-28 00:36:37 +08:00
minggo
cb8f069ae6
Merge pull request #2466 from Weeds/fix-loadAsyncImage
...
don't use named semaphore for syncing image loading thread
2013-04-27 08:47:48 -07:00
Andre Rudlaff
43615fe0a7
don't use named semaphore in HttpClient
...
this patch removes using named semaphores for Http requests.
This also destroys the mutexes from CCTextureCache when the thread is
destroyed
2013-04-27 17:44:33 +02:00
James Chen
edc8444ca4
Updating blackberry project configurations.
2013-04-27 14:07:54 +08:00
Andre Rudlaff
5e12d9f8fe
don't use named semaphore for syncing image loading thread
...
Named semaphores are unique across process bounds, therefore a semaphore
left in an invalid state may cause locks on other processes.
The code has been exchanged by using pthread mutex and condition variables
2013-04-26 18:55:36 +02:00
James Chen
d1afe6cfa6
Fixing a bug in CCFileUtilsIOS::isFileExist().
2013-04-25 22:02:20 +08:00
James Chen
93a8b60111
If file path is an empty string, return false directly in CCFileUtils::isFileExist.
2013-04-25 21:51:13 +08:00
Ed Bartley
b2b10ba5f7
CCLayerColor::_realOpacity is not set in ::initWithColor(…) causing unexpected behavior if a ::runAction(CCFadeTo::create(…)) applied to the LayerColor.
2013-04-25 10:32:03 +08:00
minggo
d89792fdc6
fixed #2073 : fix memory leak in CCUserDefault
2013-04-22 16:43:05 +08:00
Sergey Shambir
41f5538ff4
Added CC_DISABLE_COPY macro
2013-04-20 15:13:19 +04:00
Sergey Shambir
3ae98978d4
Added CC_FORMAT_PRINTF to CCString
...
Added for CCString::initWithFormat() and CCString::createWithFormat().
Fixed warnings.
2013-04-19 14:00:16 +04:00
Sergey Shambir
5541816ef6
Fixed GCC warning on narrowing conversion
2013-04-19 12:09:26 +04:00
Sergey Shambir
e5b2f300f9
Added CC_FORMAT_PRINTF(x,y) macro to warn on CCLog() format errors
...
Uses printf format. Enabled for GCC and clang.
2013-04-19 11:54:08 +04:00
James Chen
d37a43e100
Merge pull request #2398 from lgb/float_comparison_issue
...
fixed #1935 : Float comparison must not use "==" in the equal function of CCPoint and CCSize, we should compare float number by using epsilon and absolute difference.
2013-04-18 19:44:17 -07:00
James Chen
ec50d34622
fixed #2068 : Tab ~> 4 spaces.
2013-04-19 09:59:08 +08:00
James Chen
9ecaacf59b
fixed #2068 : Updating source format.
2013-04-19 09:55:29 +08:00
James Chen
b91c5f099c
fixed #2068 : Fixing a compilation error on win32 since "•" couldn't be recognized by vs compiler.
2013-04-19 09:49:55 +08:00
James Chen
861e8e42f7
Merge branch 'master' of https://github.com/MarcelBloemendaal/cocos2d-x into MarcelBloemendaal-master
2013-04-18 16:21:17 +08:00
James Chen
612a8a309f
Merge pull request #2193 from Weeds/feature-screen-dimensions
...
fixed #2065 : Adding kResolutionFixedHeight and kResolutionFixedWidth resolution policy.
2013-04-18 00:31:13 -07:00
minggo
724402750b
Merge pull request #2390 from scoyo/master
...
Fix for spaces at the beginning of wrapped lines
2013-04-17 19:10:19 -07:00
Jaroslaw Lewandowski
20e102bc46
Fixed setAccelerometerInterval signature in setAccelerometerIntervalJNI function.
2013-04-18 01:27:33 +01:00
Oleg Baluk
271f90e744
compare using epsilon and absolute difference
2013-04-18 02:16:49 +04:00
Kristiaan De Jongh
81e4178a42
fix for spaces when wrapping
2013-04-17 13:09:48 +02:00
James Chen
63ce8adfad
fixed #2059 : Fix complication errors on Android.
2013-04-17 17:05:39 +08:00
James Chen
ddd6d9d155
fixed #2059 : cc.FileUtils.getInstance().getStringFromFile(filename) doesn't return a whole string.
2013-04-17 16:08:48 +08:00
minggo
72f1fadca2
Merge pull request #2380 from NatWeiss/patch-2
...
Properly resets the tile's Y flipping
2013-04-17 00:42:08 -07:00
minggo
78d3c7f048
fixed #1613:not reload resources on Android platform after return from background
2013-04-17 15:34:57 +08:00
James Chen
e07d11d1e2
Merge pull request #2381 from lgb/blackberry-compile-fix
...
fix compilation error in cocos2dx for BlackBerry PlayBook
2013-04-16 22:00:08 -07:00
James Chen
694c47f5d6
Merge pull request #2382 from wedteam/keypad-support
...
fixed #2057 : [JSB] Adding response for back and menu keypad event for Android.
2013-04-16 21:56:37 -07:00
James Chen
1eb79530c6
fixed #1847 : -DCC_ENABLE_BOX2D_INTEGRATION ~> -DCC_ENABLE_BOX2D_INTEGRATION=1,
...
-DCC_ENABLE_CHIPMUNK_INTEGRATION ~> -DCC_ENABLE_CHIPMUNK_INTEGRATION=1.
2013-04-17 12:49:25 +08:00
akira_cn
e1f9e1a300
update keypad support
2013-04-17 10:40:46 +08:00
NatWeiss
f875366cc6
Properly resets the tile's Y flipping
...
This bug caused many tiles to be Y flipped if only one tile was actually intended to be flipped.
2013-04-16 15:01:22 -07:00
Oleg Baluk
af71b881df
fix wrong buffer name
2013-04-17 01:59:23 +04:00
tianTian
9a04eee8d1
do it atomically;
2013-04-16 12:38:53 +08:00
tianTian
91ddfe7382
Add support for CCDictionary contains CCArray;
2013-04-16 12:34:09 +08:00
Sam Clegg
ffb7360e46
Enable easy swithing between Box2D and chipmunk in linux and nacl
...
The ENABLE_BOX2D/ENABLE_CHIPMUNK defines were previously
hardcoded in the Makefiles. Now you get chipmunk by default
on both platforms and can enble Box2D by setting USE_BOX2D in
your environment.
Also remove erroneous -D__CC_PLATFORM_FILEUTILS_CPP__ and
-D__CC_PLATFORM_IMAGE_CPP__ from linux Makefiles. These should
never be defined globally like this.
2013-04-15 07:35:50 -07:00
Sam Clegg
87f57d6ca6
Fix CCPhysicsSprite getPosition variants
...
CCPhysicsSprite was overriding only some of the getPosition
methods on a node resulting in, for example, getPositionX
and getPositionY not working for physics nodes.
This change also makes this overloads shared between box2d
and chipmunk implementations.
2013-04-15 07:35:49 -07:00
Marcel Bloemendaal
76b222978c
Changed some property names to match conventions.
...
Changed m_pSecureTextEntry to m_bSecureTextEntry and renamed
getSecureTextEntry to isSecureTextEntry
2013-04-15 09:11:04 +02:00
James Chen
bfa766f705
Merge pull request #2356 from MarkEHenderson/master
...
Fix variable initialization in SpriteBatchNode and LabelBMFont to allow JS extension
2013-04-14 22:37:46 -07:00
James Chen
ca2f203947
Merge pull request #2343 from Yodesoft/master
...
fixed #2053 : [Linux] Setting writable path to "<user's home>/.config/<app name>".
2013-04-14 20:10:23 -07:00
James Chen
84b4c5ac2b
fixed #2051 : Comment update, int ~> intptr_t.
2013-04-14 16:05:54 +08:00
James Chen
ea78ee9bb7
fixed #2051 : TestCpp/ExtensionsTest/CocosbuilderTest crashes under x86_64 target.
2013-04-14 16:00:50 +08:00
James Chen
2757962748
Merge branch 'master' of https://github.com/billy1380/cocos2d-x into billy1380-master
2013-04-14 14:49:02 +08:00
tianTian
b7f0b2a8e0
Use CCLOG instead of CCLog;
2013-04-13 18:20:17 +08:00
tianTian
96359950cf
Implement CCDictionary::writeToFile();
...
Use NSDictionay to do the job for iOS and Mac, and using tinyxml2 for other platform;
2013-04-13 16:55:24 +08:00
tianTian
edf1e53d2d
fix syntax error;
2013-04-13 15:18:54 +08:00
Mark Henderson
9c82c39978
remove duplicate default variable definition
2013-04-12 10:11:26 -07:00
billy1380
493d1d90ed
fixed a bug that was causing x86_64 tests to crash while loading
...
ccbuilder files
2013-04-12 14:37:28 +01:00
Mark Henderson
038a04c05b
Fixing SpriteBatchNode and LabelBMFont to prevent error when release is called without calling init
2013-04-11 15:02:09 -07:00
yodesoft
5952597c1a
Set writable path to XDG_CONFIG_HOME if it exists.
2013-04-11 09:20:25 +08:00
yodesoft
cda864b597
Read app name from /proc/self/exe
2013-04-11 08:58:48 +08:00
yodesoft
db5df829fb
Restore codes of init m_strDefaultResRootPath
2013-04-10 18:39:01 +08:00
yodesoft
85c932112f
Merge remote-tracking branch 'upstream/master'
2013-04-10 17:54:50 +08:00
James Chen
862d4d6316
Merge pull request #2195 from folecr/androidlinkerflags
...
fixed #2047 : Clean up linked libraries for Android.
2013-04-10 00:53:00 -07:00
James Chen
32406efec2
Merge branch 'newlines_in_cclog' of https://github.com/sbc100/cocos2d-x into sbc100-newlines_in_cclog
...
Conflicts:
cocos2dx/proj.linux/cocos2dx.mk
2013-04-10 14:17:23 +08:00
James Chen
68867b8798
Merge pull request #2212 from rogerzanoni/linux_link
...
fixed #2044 : Fix linux build, libpthread and libGL libraries need to be linked on linux.
2013-04-09 21:50:54 -07:00
yodesoft
e193dbc4cf
Linux: Set writable path to "<user's home>/.config/<app name>"
2013-04-10 11:45:55 +08:00
minggo
a0dc39ca38
fixed #2034:use previous path to get UserDefault.xml
2013-04-10 11:39:01 +08:00
yodesoft
d03b95ca46
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
cocos2dx/platform/linux/CCFileUtilsLinux.cpp
2013-04-10 11:16:04 +08:00
yodesoft
ba591b0980
Linux: Set writable path to "<user's home>/.config/<app name>"
2013-04-10 10:55:50 +08:00