James Gregory
|
cdb63898d9
|
Simplify AsyncStruct slightly -- make it a class, add a constructor.
|
2013-06-12 10:03:12 -07:00 |
James Gregory
|
8b4f5b5853
|
Fix calculation of offsets in font rendering so that we don't scribble all over memory!
|
2013-05-29 21:25:32 -07:00 |
James Gregory
|
09bc00032c
|
Add destructor for CCGLBufferedNode class to delete GL buffers.
|
2013-05-29 17:46:25 -07:00 |
James Gregory
|
6b8966e575
|
Disable debugging symbols for all Emscripten builds. -g is simply too slow to be a useful debugging tool. If someone needs it they should add it back in, but it is not sensible default behavior at this point.
|
2013-05-21 19:05:50 -07:00 |
James Gregory
|
060f60b91f
|
Bump Emscripten version
|
2013-05-21 16:39:25 -07:00 |
James Gregory
|
05ca831e0d
|
Add audio cleanup methods for Emscripten.
|
2013-05-21 16:37:24 -07:00 |
James Gregory
|
da7113a04f
|
Implement audio for Emscripten using SDL. Still needs methods to release samples when we're done with them.
|
2013-05-20 20:09:56 -07:00 |
James Gregory
|
391fb636fa
|
Add a flag to indicate whether raw image data is pre-multiplied or not, and switch to using Emscripten's SDL implementation when loading images from file (much faster)
|
2013-05-17 17:11:52 -07:00 |
James Gregory
|
7cca63130c
|
Pre-multiply text when rendered by Emscripten's SDL implementation (since HTML5 canvas is non-pre-multiplied).
|
2013-05-17 17:10:51 -07:00 |
James Gregory
|
ae5454cffc
|
Remove SDL code from texture cache, and move all image loading code to CCImage.
|
2013-05-17 17:09:28 -07:00 |
James Gregory
|
2bcbf5c2b8
|
Coordinates are already in terms of pixels -- no need to do content scaling
|
2013-05-17 17:08:46 -07:00 |
James Gregory
|
a1ff189854
|
Query the GL canvas for its width and height and use that rather than hardcoding it. Default the frame size to the whole canvas, and update the samples to use iPad resolution (1024x768).
|
2013-05-17 12:39:18 -07:00 |
James Gregory
|
5e3ce3e7a1
|
Update to latest Emscripten incoming, including an SDL fix this branch depends on.
|
2013-05-16 17:53:34 -07:00 |
James Gregory
|
95b5ce2e56
|
Remove freetype since it now works using Emscripten's SDL.
|
2013-05-16 17:34:33 -07:00 |
James Gregory
|
d1922b6086
|
Add experimental (and currently disabled) code for using SDL to load texture data. If I can iron out the kinks, it should be a lot faster.
|
2013-05-15 20:22:43 -07:00 |
James Gregory
|
bdbab7f5cf
|
TTF rendering via SDL now seems to basically work. Not perfect yet, but seems to be about 3X faster on Chrome.
|
2013-05-15 20:21:30 -07:00 |
James Gregory
|
82f1a8e8ff
|
Re-enable mouse-handling.
|
2013-05-15 20:21:02 -07:00 |
James Gregory
|
ab2d94c040
|
First pass at using SDL to render fonts instead of FreeType.
|
2013-05-14 21:38:56 -07:00 |
James Gregory
|
420f2cba68
|
Ignore ctags file.
|
2013-05-14 15:39:11 -07:00 |
James Gregory
|
0daa3adfd6
|
Emscripten changed ABI for .a files. Rebuild all deps, updating to current version. Switch Emscripten to incoming branch as it's not working on master right now. Added simple script for rebuilding deps in case it becomes necessary again. Switch builds to always use -g flag, per Emscripten's warnings. Undefine native client defines so that it builds (Emscripten switched to NaCl alignment, macro got defined as a side-effect).
|
2013-05-14 15:26:48 -07:00 |
James Gregory
|
de1a6340da
|
Add my hacky script to rebuild dependencies, in case this is needed again in the future.
|
2013-05-14 15:14:54 -07:00 |
James Gregory
|
7f03838639
|
Use asm.js by default.
|
2013-05-08 14:59:48 -07:00 |
James Gregory
|
25bded7faf
|
Now validates as asm.js: Disable HttpClient, pthread_cond_signal and eglReleaseThread in Emscripten.
|
2013-05-07 17:25:39 -07:00 |
James Gregory
|
a33e2965af
|
Add libwebp linkage (needed for asm.js validation)
|
2013-05-07 17:24:24 -07:00 |
James Gregory
|
0630e15475
|
Merge remote-tracking branch 'origin/master' into emscriptenate
|
2013-05-06 23:56:16 -07:00 |
James Chen
|
fe5cae77e8
|
Update AUTHORS
|
2013-05-07 14:55:27 +08:00 |
minggo
|
d58f21dc76
|
Merge pull request #2521 from minggo/emscriptenate
fix conflict of #2050
|
2013-05-06 23:51:38 -07:00 |
James Chen
|
a9aafdafac
|
Merge pull request #2490 from coolengineer/pull-request-httpclient
fixed #2119: Introduce HttpResponse callback selector type to resolve #2365, fixed version ;-)
|
2013-05-06 23:44:20 -07:00 |
James Chen
|
eb936b0feb
|
Merge pull request #2522 from dumganhar/fix-building-error
Fix compilation errors for linux port.
|
2013-05-06 23:39:18 -07:00 |
James Chen
|
2418e72a0e
|
Fix compilation errors for linux port.
|
2013-05-07 14:36:01 +08:00 |
minggo
|
1166a02e13
|
resolve conflict for #2505
|
2013-05-07 14:31:00 +08:00 |
minggo
|
90b8dfd383
|
Merge pull request #2504 from wagaf-d/ccpchanges
Move ccpX functions to CCPoint methods and operators
|
2013-05-06 23:22:21 -07:00 |
minggo
|
ea5d7bc5ad
|
Merge pull request #2361 from tiantian20007/dictStuff
Implement CCDictionary::writeToFile();
|
2013-05-06 23:17:11 -07:00 |
James Chen
|
ff610eea2f
|
Update AUTHORS
|
2013-05-07 14:08:13 +08:00 |
James Chen
|
eaad4f52af
|
Merge pull request #2495 from ptekchand/master
fixed #2116: Support negative node scales of CCScrollView.
|
2013-05-06 23:06:54 -07:00 |
James Gregory
|
c7ac6b9d01
|
Add libjpeg linkage.
|
2013-05-06 22:28:13 -07:00 |
James Chen
|
47cff27ecd
|
Merge pull request #2519 from dumganhar/iss2106-js-bytecode
fixed #2106: Fixing wrong display of non-ascii characters. The compiler needs to setUTF8 for compile option.
|
2013-05-06 22:09:27 -07:00 |
James Chen
|
800952a17a
|
fixed #2106: Fixing wrong display of non-ascii characters. The compiler needs to setUTF8 for compile option.
|
2013-05-07 13:07:40 +08:00 |
Adrien Béraud
|
16d2b5a957
|
Assert that the user does not divide by 0 in CCPoint and CCSize
|
2013-05-07 14:58:43 +10:00 |
James Gregory
|
adbc3f7552
|
Add note about Emscripten support to README
|
2013-05-06 21:41:28 -07:00 |
Adrien Béraud
|
ca4c2edc29
|
Clarify CCPoint::rotate & unrotate documentation
|
2013-05-07 14:36:17 +10:00 |
James Gregory
|
14deb7160e
|
Merge branch 'emscriptenate' of github.com:j4m3z0r/cocos2d-x into emscriptenate
Conflicts:
AUTHORS
|
2013-05-06 21:32:46 -07:00 |
James Gregory
|
ce2d97c848
|
Simplify Emscripten makefile a little.
|
2013-05-06 21:30:03 -07:00 |
James Gregory
|
0a4c4b13ef
|
Merge fix
|
2013-05-06 21:30:03 -07:00 |
James Gregory
|
a285117aca
|
Disable unsafe GL opts, enable -O2
|
2013-05-06 21:29:45 -07:00 |
James Gregory
|
d68d0e6d78
|
Add myself to authors so folks know who to blame :)
|
2013-05-06 21:29:44 -07:00 |
James Gregory
|
66acd358fc
|
Remove lua samples from emscripten makefile
|
2013-05-06 21:29:44 -07:00 |
James Gregory
|
fc7a9da304
|
Move to a separate Makefile for Emscripten.
|
2013-05-06 21:29:44 -07:00 |
James Gregory
|
7b04e6b0e7
|
Implement primitive drawing methods for Emscripten
|
2013-05-06 21:29:44 -07:00 |
James Gregory
|
92e4c76f20
|
Move GL server-side buffer code into a separate class and use multiple inheritance to deploy only to classes that need it.
|
2013-05-06 21:29:44 -07:00 |