James Gregory
dafd1e6ceb
Add note on origin of libxml binary.
2013-05-01 13:33:53 -07:00
James Gregory
e58fff202e
Don't set animation interval on emscripten builds since that is driven by the request frame API.
2013-05-01 13:33:53 -07:00
James Gregory
9033dd011e
Add libxml2 build for Emscripten.
2013-05-01 13:33:53 -07:00
James Gregory
056ff5b5e6
Remove redundant -l flags from emscripten build -- it doesn't have fontconfig, and GL stuff is linked in automatically.
2013-05-01 13:33:52 -07:00
James Gregory
a7a7b3c919
Move GL server-side buffer code into a separate class and use multiple inheritance to deploy only to classes that need it.
2013-05-01 13:33:52 -07:00
James Gregory
abeeb4a105
Switch to using GL_DYNAMIC_DRAW.
2013-05-01 13:33:52 -07:00
James Gregory
b60f740e90
Remove debug print statement
2013-05-01 13:33:52 -07:00
James Gregory
e4a0f18696
Switch makefile over to using Emscripten headers for freetype.
2013-05-01 13:33:52 -07:00
James Gregory
303c5a0ab0
More client side buffer fixes.
2013-05-01 13:33:52 -07:00
James Gregory
8861ee8b3f
More client side buffer fixes.
2013-05-01 13:33:52 -07:00
James Gregory
61146d17e8
More client side buffer fixes.
2013-05-01 13:33:52 -07:00
James Gregory
1ca7cac40a
Add warning messages if any of the raw primitive drawing methods are used (they seem not to be, in pratice).
2013-05-01 13:33:52 -07:00
James Gregory
54560fb966
Add freetype2 headers that match the .a we're using.
2013-05-01 13:33:51 -07:00
James Gregory
aa8499e69f
Switch to slot-based GL buffer loading code for CCSprite.
2013-05-01 13:33:51 -07:00
James Gregory
169d5b3102
Add missing Makefile reference to file utils for Emscripten.
2013-05-01 13:33:51 -07:00
James Gregory
2455cf943c
Increase heap size for Emscripten binaries, add in missing linkages.
2013-05-01 13:33:51 -07:00
James Gregory
dd9e82c068
Add pre-build dependencies for Emscripten libpng, libz.
2013-05-01 13:33:51 -07:00
James Gregory
934a21dcf1
Hack: use 800x500 resolution for window for emscripten so that mouse roughly lines up.
2013-05-01 13:33:50 -07:00
James Gregory
7fe614c1b4
Enable texture caching with emscripten.
2013-05-01 13:33:50 -07:00
James Gregory
20b7ea87ba
Fix Motion streak client side buffers
2013-05-01 13:33:50 -07:00
James Gregory
85ac1bc42e
Add platform files for Emscripten.
2013-05-01 13:33:50 -07:00
James Gregory
a3f064983e
Get CCGrid to work.
2013-05-01 13:33:50 -07:00
James Gregory
7a140c618e
Add method to CCNode class to allow uploading data to GPU. Call it from CCSprite.
2013-05-01 13:33:50 -07:00
James Gregory
c14773128e
Update build process for HelloCpp to build .js and .data files separately, pulling both in from index.html
2013-05-01 13:33:50 -07:00
James Gregory
6417812802
Build fixes for emscripten, add linkage to libfreetype.a
2013-05-01 13:33:50 -07:00
James Gregory
e6c9fb79a0
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-01 13:33:50 -07:00
James Gregory
0d9574066d
ifdef tango around some symbols that aren't defined in Emscripten (nor a bunch of other platforms, it seems).
2013-05-01 13:33:48 -07:00
James Gregory
5e85d27d96
Add #defines for Emscripten platform
2013-05-01 13:33:48 -07:00
James Gregory
03836f3198
Add Makefiles for Emscripten + Emscripten external
2013-05-01 13:33:48 -07:00
Romain Tisserand
15d4e75cdb
JNI fixes, added missing JNIEXPORT / JNICALL declarations
...
This is needed if compiling with custom visibility settings (example :
-fvisibility=hidden)
2013-04-02 22:15:12 +02:00
minggo
3d0a5e52c6
Merge pull request #2267 from nickveri/master
...
Added some missing function for setting integer shader uniforms in CCGLProgram
2013-04-01 19:52:11 -07:00
Darragh Coy
7f565bb2fa
Fix CCUserDefault.cpp compiling on Android.
...
CCUserDefault.cpp shouldn't compile on Android.
2013-03-31 22:24:10 -07:00
Andre Rudlaff
89f08bb441
[Linux] fixed font rendering crash for certain fonts
...
face->size->metrics->ascender seems to be unreliable for some fonts,
additionally the freetype documentation says that it may be used
differently for different fonts.
Therefore it may happen that the ascender of a font face is less then
the glyphs bounding box resulting in accessing invalid memory.
The fix is to use the bbox attribute instead of the ascender
2013-03-28 00:54:11 +01:00
nickveri
fd35ebd4d4
Added support for setting integer uniforms
2013-03-26 18:20:38 +00:00
James Chen
f7b2ca2125
Fixing compilation errors when enable CC_ENABLE_PROFILERS.
2013-03-25 11:47:27 +08:00
James Chen
92f278657e
Merge branch 'fix_profiler_compile_error_android' of https://github.com/gelldur/cocos2d-x
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2013-03-25 11:46:02 +08:00
billy1380
cdfe693583
- changed cocos2d mac project to support universal build and x86
...
- fixed issues associated with that
2013-03-23 16:04:51 +00:00
James Chen
636f07a43f
Merge pull request #2243 from sbc100/fix_linux_build
...
Fix linux compilation of CCTexturePVR.cpp
2013-03-22 19:07:24 -07:00
Sam Clegg
fe86b9d6df
Fix linux compilation of CCTexturePVR.cpp
...
On linux (and possibly other platforms)
GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG is simply not defined since we don't
include GLES/gl2ext.h.
2013-03-22 10:40:35 -07:00
minggo
71659f4aa9
Merge pull request #2247 from hailongiPhone/master
...
release && set nil
2013-03-22 04:09:47 -07:00
minggo
1538c72581
Merge pull request #2197 from dumganhar/ios-default-font
...
[iOS] Using system font by `[UIFont systemFontOfSize]` when font name wasn't found.
2013-03-22 00:10:09 -07:00
hailong
2ea447dbfd
Update CCDirectorCaller.mm
...
First destroy CCDirector instance with cocos2d::CCDirector::sharedDirector()->end()
Then create new CCDirector instance with
cocos2d::CCApplication::sharedApplication()->run();
APP will crash at
CCApplication::setAnimationInterval
[[CCDirectorCaller sharedDirectorCaller] setAnimationInterval: interval ];
2013-03-22 15:02:46 +08:00
Dawid Drozd
21cab34029
Fixing profiling compile error
2013-03-22 07:58:57 +01:00
minggo
949700ca1a
issue #1848:use CCConfiguration::supportsPVRTC() to determine if the device support powertc format
2013-03-21 15:50:41 +08:00
James Chen
e2e9bc8ce0
Fixing memoryleaks.
2013-03-21 09:00:55 +08:00
minggo
406ea3f69d
Merge https://github.com/cocos2d/cocos2d-x into test-before-release
2013-03-20 15:19:19 +08:00
James Chen
9336ab710f
fix a logic error and a memory leak in CCLabelBMFont.
2013-03-20 13:55:43 +08:00
minggo
9afc6729dc
fix build error caused by libcurl on android x86
2013-03-20 11:53:19 +08:00
James Chen
ac509f70db
[iOS] Using system font by `[UIFont systemFontOfSize]` when font name wasn't found.
2013-03-19 13:11:33 +08:00
James Chen
f52e56be20
Merge pull request #2184 from dumganhar/iss1837-jsb-schedule
...
fixed #1837 : Refactoring schedule binding codes.
1) We need bind cc.Node.scheduleUpdate and cc.Scheduler.scheduleUpdate manually since schedules need to be associated with _schedFunc_target_ht and _schedObj_target_ht.
2) Bind cc.Scheduler.unscheduleCallbackForTarget.
2013-03-18 00:35:33 -07:00