Ricardo Quesada
d7590affda
Merge branch 'develop' into dictionary_array_fixes
...
Conflicts:
cocos2dx/cocoa/CCArray.cpp
cocos2dx/cocoa/CCArray.h
cocos2dx/label_nodes/CCLabel.cpp
extensions/CCArmature/datas/CCDatas.cpp
extensions/CCArmature/display/CCDisplayManager.cpp
2013-08-21 21:27:44 -07:00
Ricardo Quesada
2e221ee6cc
Array & Dictionary fixes
...
In many places `Dictionary` and `Array` are not being initialized. In fact `Dictionary` doesn't have the `init()` method creating potential leaks.
Also in objects like `Armature` and the new `LabelTTF`, the `Array` object is not being used a pointer. So it doesn't use the 2 phase initialization, creating potential leaks.
This patch fixes all those issues.
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-21 20:12:09 -07:00
Ricardo Quesada
4104cdc20e
Better destructors logs
...
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-21 20:08:51 -07:00
minggo
2de8963a0a
fix warnings caused by deprecating some functions of Array
2013-08-22 10:45:47 +08:00
James Chen
c97e2d3562
issue #2488 : Fixing a warning in CCFontFreeType.cpp.
2013-08-15 21:39:03 +08:00
James Chen
c29a8bb2a0
issue #2488 : The declare fix: class FontLetterDefinition; --> struct FontLetterDefinition;
2013-08-15 21:38:27 +08:00
James Chen
9d226aa746
issue #2488 : Removing unused 'include'.
2013-08-15 21:00:44 +08:00
James Chen
4c698a60a9
issue #2488 : Adding 'override' keyword for new Label classes.
2013-08-15 21:00:06 +08:00
James Chen
5b227743ee
issue #2488 : Fixing typo: #include "CCFontFreeType.cpp" --> "CCFontFreeType.h".
2013-08-15 20:59:05 +08:00
carlo morgantini
afd0e88284
Clean up as for code review
2013-08-14 12:37:59 -07:00
carlo morgantini
47be4ff58a
Merge remote-tracking branch 'originGithub/develop' into new_develop_merge_clean
...
Conflicts:
cocos2dx/label_nodes/CCFontAtlas.cpp
cocos2dx/label_nodes/CCFontAtlas.h
cocos2dx/label_nodes/CCFontAtlasCache.cpp
cocos2dx/label_nodes/CCFontAtlasFactory.cpp
cocos2dx/label_nodes/CCFontAtlasFactory.h
cocos2dx/label_nodes/CCFontDefinition.cpp
cocos2dx/label_nodes/CCFontFreeType.cpp
cocos2dx/label_nodes/CCLabel.cpp
cocos2dx/label_nodes/CCLabel.h
cocos2dx/label_nodes/CCStringBMFont.h
cocos2dx/label_nodes/CCStringTTF.cpp
samples/Cpp/TestCpp/Classes/LabelTest/LabelTest.cpp
2013-08-13 11:28:54 -07:00
carlo morgantini
026b3e90b8
clean up
2013-08-12 16:16:34 -07:00
carlo morgantini
35b5e30190
alignment added to new label creation
2013-08-12 15:41:29 -07:00
carlo morgantini
d15d84c05f
samples cleaned up
2013-08-12 15:09:28 -07:00
carlo morgantini
097a5c488a
New Label tests plus bug fixing
2013-08-12 13:29:54 -07:00
carlo morgantini
83b2377a76
some more clean up and removed CCStringTTF
2013-08-07 16:36:04 -07:00
carlo morgantini
ef919aea91
more cleanup
2013-08-06 14:37:19 -07:00
carlo morgantini
fbe615f292
remove classes not used anymore
2013-08-06 13:49:24 -07:00
carlo morgantini
16412fc885
more cleanup
2013-08-06 13:43:29 -07:00
carlo morgantini
66c5721fc7
clean up
2013-08-05 18:03:52 -07:00
carlo morgantini
c7c0b0e07a
more cleanup
2013-08-05 17:49:20 -07:00
carlo morgantini
eeffc76bb8
more cleanup
2013-08-05 16:52:24 -07:00
carlo morgantini
a1168512f6
cleanup
2013-08-05 16:41:23 -07:00
carlo morgantini
03b1c0142b
refactoring
2013-08-05 16:35:15 -07:00
carlo morgantini
d1915d47cc
some more refactoring and cleaning up
2013-08-05 15:56:18 -07:00
carlo morgantini
b14f9f83e9
New label stuff cleanup and re factoring
2013-08-05 15:11:07 -07:00
James Chen
c61da90441
Merge branch 'new_develop_merge' of https://github.com/carlomorgantinizynga/cocos2d-x into carlomorgantinizynga-new_develop_merge
2013-08-05 13:40:59 +08:00
James Chen
a2fbf0c2b8
issue #2179 : Fixing compilation errors on Linux.
2013-08-05 10:29:20 +08:00
carlo morgantini
73286ad76b
some more clean up (code review)
2013-08-02 16:11:20 -07:00
James Chen
67d710a41c
Adding Android support for new label.
2013-08-02 13:46:26 +08:00
carlo morgantini
833a45d1af
Some more clean up
2013-08-01 17:54:08 -07:00
carlo morgantini
08d8179a0e
Clean up (see code review)
2013-08-01 17:49:51 -07:00
carlo morgantini
4904e0f31f
Clean up (as requested by code review)
2013-08-01 17:08:57 -07:00
carlo morgantini
6cac521d1b
fix some more problems with the new label stuff (as for code review)
2013-08-01 16:29:39 -07:00
carlo morgantini
f30ec5f428
(not used) global variables removed form CCFontAtlas.cpp
2013-08-01 15:55:46 -07:00
carlo morgantini
2fb2916bae
some more cleanup
2013-08-01 14:36:34 -07:00
carlo morgantini
972ae78295
Clean up for the new Label stuff
2013-08-01 11:02:32 -07:00
carlo morgantini
ba4a48ec7a
CCTexture2D interface changed
2013-07-31 13:59:08 -07:00
carlo morgantini
95f8fe7690
fix bugs
2013-07-31 12:11:56 -07:00
carlo morgantini
ff56ad5435
fix bugs with new Label stuff and add new sample for unicode
2013-07-30 16:41:26 -07:00
carlo morgantini
9de1ef3f97
New label TTF. New text alignment sample.
2013-07-30 10:27:22 -07:00
carlo morgantini
023b46154f
Fix problems with missing glyphs in .ttf file
2013-07-29 13:43:23 -07:00
carlo morgantini
6e4aafdacf
fix a problem with the new Label and colors
2013-07-26 16:30:36 -07:00
carlo morgantini
23575f0a68
New Label stuff merged and Label::Alignment replaced with TextVAlignment and TextHAlignment
2013-07-26 16:04:21 -07:00
carlo morgantini
8416e7cf6d
Merge remote-tracking branch 'cocos2d/develop' into developNewLabelMergeDevelop
...
Conflicts:
cocos2d_libs.xcodeproj/project.pbxproj
scripting/javascript/bindings/generated
tools/bindings-generator
2013-07-26 15:54:50 -07:00
carlo morgantini
be47a6da52
Merge remote-tracking branch 'ricorigin/label_merge' into developNewLabelForRiq
...
Conflicts:
cocos2dx/label_nodes/CCFontAtlasFactory.cpp
samples/Cpp/TestCpp/Classes/LabelTest/LabelTest.cpp
2013-07-26 11:58:18 -07:00
carlo morgantini
e34a0affa8
more cleaning
2013-07-26 10:43:17 -07:00
carlo morgantini
76ebeb0676
some more clean up for CCLabel
2013-07-26 10:29:29 -07:00
carlo morgantini
7d141a3f57
the new label system now uses only CCStringTTF (CCStringBMFont is still here, but not used anymore)
2013-07-25 17:58:13 -07:00
Ricardo Quesada
16d0b43181
Constant fixes
...
Director::PROJECTION_2D, 3D,... -> Director::Projection::_2D, _3D, ...
Label::TEXT_ALIGNMENT_... -> Label::HAlignment::...
Label::TEXT_VERTICAL_ALIGNMENT_... -> Label::VAlignment::...
Texture2D::PIXEL_FORMAT_... -> Texture2D::PixelFormat::...
BlendFunc::BLEND_FUNC_DISABLE -> BlendFunc::DISABLE
Also adds more constant for BlendFunc
2013-07-25 13:36:19 -07:00