Граф коммитов

1426 Коммитов

Автор SHA1 Сообщение Дата
Alon Zakai 3eac624d13 use closure-exported FS API for preloading 2012-06-11 11:33:09 -07:00
Alon Zakai fa3225e331 export some filesystem commands through closure 2012-06-11 10:46:31 -07:00
Alon Zakai 947a504fe1 make cubegeom_normal_dap_far_glda more robust 2012-06-05 10:30:44 -07:00
Alon Zakai fcc38a207c fix glDrawArrays with non-zero start 2012-06-04 16:13:55 -07:00
Alon Zakai 2f145f84d8 glDrawRangeElements 2012-06-02 15:36:29 -07:00
Alon Zakai 0ce0d91f99 return correct values for GL_SHADER_COMPILER and GL_NUM_SHADER_BINARY_FORMATS 2012-06-02 12:41:50 -07:00
Alon Zakai 148de83015 scan indices when necessary to figure out what vertex data to push, when no buffers are being used. allows use of vertex data from arbitrary parts of the vertex data range, not just the beginning 2012-06-02 10:16:56 -07:00
Alon Zakai 4925628851 handle pointers to clientside data in glDrawElements when emulating GL 2012-06-01 15:31:39 -07:00
Alon Zakai 642b9c8c6a make strtod properly handle .5 etc 2012-05-31 17:16:59 -07:00
Alon Zakai 358260eefc Merge pull request #460 from adetaylor/llvm_uadd_with_overflow_i16
Adding LLVM intrinsic llvm_uadd_with_overflow_i16.
2012-05-31 14:39:18 -07:00
Alon Zakai b0b7cee27f treat -s not before OPT=VALUE as a linker option 2012-05-31 11:59:42 -07:00
Adrian Taylor 60766db449 Adding LLVM intrinsic llvm_uadd_with_overflow_i16.
With -O1, sometimes LLVM generates code which calls its intrinsic
llvm_uadd_with_overflow_i16, which was previously missing in
emscripten's library.

This commit adds that intrinsic, and also adds a test which
causes LLVM to call that intrinsic (only in 'o1'). This test
previously failed in 'o1' but now passes.
2012-05-31 16:29:26 +01:00
Alon Zakai f842201ace make test_sdl_mouse more robust 2012-05-30 19:58:50 -07:00
Alon Zakai 68d23c61c9 properly identify function pointers that return things like [64 x i16]* 2012-05-30 18:49:03 -07:00
Alon Zakai c0555446e5 Merge pull request #450 from caiiiycuk/openttd
strndump function implementation
2012-05-30 11:19:36 -07:00
Alon Zakai ac7ad44cba tweak emcc caching test numbers 2012-05-30 09:51:30 -07:00
Alon Zakai 530e64611c tweak caching test sizes 2012-05-30 08:37:21 -07:00
Alon Zakai 2b6a3dbadf fix bindings generator bug with overloaded functions whose parameters differ in type between class and non-class 2012-05-29 17:31:25 -07:00
Aleksander Guryanov edb0920e82 Fix behavior strndup whern size <= 0, in this case strndup returns empty string 2012-05-29 20:07:28 +07:00
Alon Zakai 0b222be053 fix string detection regexp and add test 2012-05-28 14:59:04 -07:00
Alon Zakai 0be34770ad throw on writes to absolute memory addresses; fixes #451 2012-05-28 14:38:29 -07:00
Aleksander Guryanov 2134a33a61 Add implementation of strndup function and test for it 2012-05-28 21:35:04 +07:00
LCID Fire e9dd4ca2fa Merge branch 'incoming' of https://github.com/kripken/emscripten into incoming 2012-05-28 14:09:38 +02:00
LCID Fire e5622fed87 Only use C++ flags for C++ code 2012-05-28 14:08:49 +02:00
Alon Zakai 506de96842 test for scons integration and stop using emld there 2012-05-28 05:07:56 -07:00
LCID Fire 678832aaed Add C file to test, to be sure that the correct linker is used. 2012-05-28 14:07:52 +02:00
LCID Fire 659baab3da Add small test project for SCons integration. 2012-05-28 13:46:24 +02:00
Alon Zakai e38d9980c4 fix strtod behavior on non-ints 2012-05-26 19:45:05 +02:00
Alon Zakai dfe1749127 allow - in globals, aliases and types 2012-05-25 15:50:10 +02:00
Alon Zakai 937b9b570a Merge branch 'incoming' into llvmsvn 2012-05-24 16:12:40 +02:00
Alon Zakai 9662b116ce make fgetc return the char value as unsigned (in a signed int) 2012-05-24 13:59:46 +02:00
Alon Zakai 7b9855c062 update year in emcc 2012-05-24 11:15:06 +02:00
Alon Zakai a6d312ccb9 Merge branch 'master' into llvmsvn 2012-05-24 10:13:42 +02:00
Ehsan Akhgari 1be33be6ca Fix the SDL mouse motion events 2012-05-22 15:44:16 -04:00
Alon Zakai a0c963f9d4 WARN_ON_UNDEFINED_SYMBOLS 2012-05-18 12:21:28 -07:00
Alon Zakai d4cfd7a658 support emcc -v with no further arguments 2012-05-18 11:47:41 -07:00
Alon Zakai 26def19538 Merge pull request #427 from juj/vs2010
Vs2010
2012-05-16 18:10:49 -07:00
Ehsan Akhgari 7140877789 Fix the incorrect initial value of GL.immediate.currentMatrix 2012-05-16 15:03:58 -04:00
Alon Zakai 1169a930d7 Merge pull request #428 from ehsan/fixes
A bunch of random fixes
2012-05-15 17:10:29 -07:00
Alon Zakai aec9ccfeac browser gc test 2012-05-15 17:04:07 -07:00
Ehsan Akhgari af56b35e0f Fix IMG_Load to work with absolute paths 2012-05-15 19:52:55 -04:00
Alon Zakai dec9d8fbc4 skip test_gc in s_x_x 2012-05-15 16:03:25 -07:00
Alon Zakai 499ace020e fix test_gc for o1 and o2 2012-05-15 16:01:35 -07:00
Alon Zakai 8331c32384 gc tests for object scanning and atomics 2012-05-15 14:18:56 -07:00
Alon Zakai 46f641bf1e working early gc test 2012-05-15 13:37:09 -07:00
Jukka Jylänki 25ecb68e56 Added Visual Studio 2010 solution and project files for the applications in tests/.
Building from VS2010 requires the vs-tool plugin, available at https://github.com/juj/vs-tool .
2012-05-15 21:17:05 +03:00
Alon Zakai c0f7841101 move test_emconfig to other 2012-05-15 10:59:30 -07:00
Alon Zakai 997ae35917 Merge pull request #426 from ehsan/em-config
Add the em-config tool
2012-05-15 10:58:20 -07:00
Ehsan Akhgari 2b2add4854 Add the em-config tool
This tool is useful to use in shell scripts, etc in order to access
variables defined in the ~/.emscripten file without depending on the
details on how to read and parse it.
2012-05-14 20:32:56 -04:00
Alon Zakai 2ad92403e5 allow nonexistent phis in another location + add test 2012-05-14 15:31:28 -07:00
Alon Zakai e1ea1076ab do not fail on -fcatch-undefined-behavior 2012-05-14 11:02:20 -07:00
Alon Zakai f09211d8ee fix active client attribute counting and add test 2012-05-13 21:17:23 -07:00
Alon Zakai 6b9545c1d2 fix order in gl_ModelViewProjectionMatrix and add working cube_explosion test 2012-05-13 15:13:18 -07:00
Alon Zakai b90a590f02 misc tweaks and add wip cube_explosion test 2012-05-13 13:01:45 -07:00
Alon Zakai 805574ef51 unenabled experimental registerization pass in js optimizer 2012-05-11 17:07:10 -07:00
Alon Zakai 8fe89680cb fix bug with missing entry labels being misused between original labels and numeric label ids, and add test 2012-05-11 14:42:25 -07:00
Alon Zakai dcb1a7a14c FS.createPreloadedFile 2012-05-11 10:42:53 -07:00
Alon Zakai 0941e64c4b support for gl_TextureMatrixes 2012-05-10 14:06:06 -07:00
Alon Zakai a7ef69ec6f allow adding runDependencies in preRun 2012-05-09 21:36:08 -07:00
Alon Zakai bb9317e1eb sscanf support for negative integers 2012-05-09 18:41:13 -07:00
Alon Zakai fe0e611026 various fixes and improvements to sscanf 2012-05-09 18:08:03 -07:00
Alon Zakai 0518ee039d fix bug with using color and normal even when not enabled, if they were enabled in the past 2012-05-09 11:17:21 -07:00
Alon Zakai a7590b8609 handle absolute paths in file preloading 2012-05-08 20:35:37 -07:00
Alon Zakai 053bb451f0 make test_cubegeom_mt a proper test of multitexturing 2012-05-07 18:45:05 -07:00
Alon Zakai 65e50a4c0c make glEnableClientState aware of the client active texture, and add a temporary fix for handling textures of size 2 in emulation 2012-05-07 17:29:51 -07:00
Alon Zakai be6481bc72 support for gl_Normal 2012-05-07 12:18:30 -07:00
Alon Zakai a4507e931b add full support for glColorX both in glBegin/End and out 2012-05-07 10:27:52 -07:00
Alon Zakai ccf2e41978 emscripten_pause_main_loop and resume 2012-05-06 18:04:12 -07:00
Alon Zakai 747ab04f39 make sdl event handling work in closure, and add testing 2012-05-05 20:13:27 -07:00
Alon Zakai efc736eccb refactor getProcAddress for closure 2012-05-05 18:45:10 -07:00
Alon Zakai 642819024e refactor gl code for closure compiler, and add more testing 2012-05-05 18:05:42 -07:00
Alon Zakai 09d02eb1fa color support in shaders and emulation 2012-05-05 15:26:13 -07:00
Alon Zakai 3651e7c0c0 support for SDL channels and channelFinished 2012-05-04 17:33:51 -07:00
Alon Zakai c9cf387c03 define proper endianness for endian.h and add working but slow-compiling sha1 test 2012-05-03 17:26:03 -07:00
Alon Zakai cc6763ec4e undef __linux__, fixes SDL endianness detection 2012-05-01 19:55:09 -07:00
Alon Zakai 50d59708df use requestAnimationFrame 2012-05-01 13:28:40 -07:00
Alon Zakai ec6ce2baf4 correct coordinate type in glRotate and add testing 2012-04-29 14:01:37 -07:00
Alon Zakai 4d3ceaac75 add working cubegeom test 2012-04-28 16:00:48 -07:00
Alon Zakai 6733bb59e4 fix handling of non-float client attributes, and add test_cubegeom_pre3 2012-04-28 15:57:10 -07:00
Alon Zakai 6f0dc01e47 disable debug in test_cubegeom_pre 2012-04-28 13:26:55 -07:00
Alon Zakai 4ef4193134 add test_cubegeom_pre2 2012-04-28 13:25:44 -07:00
Alon Zakai 13f90869ae fix prepareClientAttributes bugs: handle non-packed vertex attributes properly 2012-04-28 13:22:18 -07:00
Alon Zakai 30bf9d7005 add cubegeom_pre test, a more webgl-friendly cubegeom 2012-04-27 16:13:58 -07:00
Alon Zakai 29166d6252 handle GL_INFO_LOG_LENGTH 2012-04-27 14:28:08 -07:00
Alon Zakai 21b80fd96a gl_Color workaround, and add gl_ps test which uses client pointers + a shader 2012-04-25 20:19:25 -07:00
Alon Zakai 6f0decb1c5 fix a_texCoord* usage, and use current program texture setup if present ; some texture rendering in cubegeom test 2012-04-25 11:09:15 -07:00
Alon Zakai c7bed7ab29 cubegeom matrix stuff 2012-04-24 20:55:23 -07:00
Alon Zakai d526babf96 clean up gl emulation flush, remove unneeded and incorrect bindings 2012-04-24 18:15:58 -07:00
Alon Zakai 3ef18246fc gix glLoadMatrix and related functions and add testing 2012-04-24 14:40:06 -07:00
Alon Zakai 25893baacf fix cubegeom shader compilation error 2012-04-24 11:44:48 -07:00
Alon Zakai a32ac16a6c clean up cubegeom 2012-04-23 20:41:48 -07:00
Alon Zakai 41bc8a9c14 Merge pull request #381 from SiggyBar/library
Added strtold and strtod_l/strtold_l stubs.
2012-04-23 18:26:46 -07:00
Alon Zakai 4d70c93726 make cubegeom build both natively and with emscripten 2012-04-23 17:50:11 -07:00
Alon Zakai 7a066b458e finish current immediate+shader work, add sdlglshader test 2012-04-23 17:30:21 -07:00
Alon Zakai 3dae3f640d improve new browser test syntax 2012-04-23 16:19:55 -07:00
Alon Zakai 8246b58cf7 stop disabling spidermonkey -n in test runner 2012-04-23 11:59:48 -07:00
Alon Zakai d0f65558b6 start of nicer browser test boilerplate 2012-04-23 11:36:44 -07:00
Alon Zakai 5a56a30886 get something to show up in cubegeom native build 2012-04-23 10:30:11 -07:00
Sigmund Vik 1f56294205 Fix to strtod_l and add test case for strtold.
(The test case is reusing test_strtod, when we implement real support
for long double we should add a separate test case for this.)
2012-04-23 16:13:43 +02:00
Alon Zakai 37d587c3aa fix sdl key stuff and more more support 2012-04-22 20:53:30 -07:00
Alon Zakai fe509fc32f clean up cubegeom 2012-04-22 18:37:03 -07:00
Alon Zakai e2fe212ee7 add second texture to cubegeom test 2012-04-22 18:28:49 -07:00
Alon Zakai 5659fe6a94 more sdl keys 2012-04-22 18:17:16 -07:00
Alon Zakai 019463d050 improve sqlite test 2012-04-22 15:43:06 -07:00
Alon Zakai b20dc26624 fix cubegeom compilation errors 2012-04-22 12:37:09 -07:00
Alon Zakai e9f38148db annotate cubegeom a little 2012-04-22 12:30:11 -07:00
Alon Zakai cde3be6b08 add buffer data to cubegeom test 2012-04-22 11:39:56 -07:00
Alon Zakai 050d86c3d4 wip cubegeometry test 2012-04-22 10:04:19 -07:00
Alon Zakai cc6a068830 support extraction of i64 values in ta2, and partial support for llvm_uadd_with_overflow_i64 2012-04-21 12:18:21 -07:00
Alon Zakai 872f6a4fb1 clean up immediate mode code and optimize to not use indexes when not necessary 2012-04-19 17:32:54 -07:00
Alon Zakai bfc6f99f7d add single-color immediate mode test (with wrong color, but better than nothing) 2012-04-19 16:48:32 -07:00
Alon Zakai 8303c637cd refactor immediate mode code 2012-04-19 16:35:14 -07:00
Alon Zakai 3d706595b2 Merge pull request #359 from prenaux/develop
library.js, added llvm_invariant_start/end & llvm_bswap_i16 ; hello_world_gles.c, added F11 for fullscreen ;
2012-04-19 13:51:33 -07:00
Alon Zakai a00c76524c zext sign correction for bitcasting from <32 bits to i64 2012-04-19 11:06:23 -07:00
Alon Zakai 8cbede32db clearer warnings on casts that change the number of function parameters 2012-04-19 10:36:01 -07:00
Alon Zakai 3b725e2f95 add emscripten_async_run_script 2012-04-19 09:50:32 -07:00
Alon Zakai c3570e2549 adjust test_emcc_caching for llvm 3.1: libc++ is smaller now 2012-04-19 08:14:54 -07:00
Pierre Renaux cceaa759b4 [tests/hello_world_gles.c]: Added F11 to go in fullscreen mode (to test the glutFullScreen implementation) ; 2012-04-19 11:48:57 +08:00
Alon Zakai 1c11fdd985 merge 2012-04-18 19:22:09 -07:00
Alon Zakai adde613fd2 do not exit the runtime if doing anything async 2012-04-18 18:13:27 -07:00
Alon Zakai 327b6f859e some support for SDL_PeepEvents 2012-04-17 21:18:17 -07:00
Alon Zakai 735637e9a1 add emscripten_async_call 2012-04-17 20:32:14 -07:00
Alon Zakai 99da134048 fix closure issues with exception handling, and add test coverage 2012-04-17 11:14:58 -07:00
Alon Zakai 396cb4f707 fix sscanf handling of ends of %s 2012-04-16 21:19:28 -07:00
Ehsan Akhgari d0f27efe13 Build the lzma-native binary if needed 2012-04-16 12:08:39 -04:00
Alon Zakai c24e5c28db add working test_sdl_ogl_p 2012-04-15 21:12:05 -07:00
Alon Zakai 1166d8bb90 add disabled sdl_ogl_p test as the next target 2012-04-15 15:36:23 -07:00
Alon Zakai 2fe9f7e20d fix sdl_ogl.c for native builds 2012-04-15 15:19:45 -07:00
Alon Zakai 953323e80a fix makeSetValue on complex structural types, fixes #386 2012-04-14 20:51:13 -07:00
Alon Zakai e2802c2f72 support js arrays as inputs in ccall 2012-04-14 20:13:28 -07:00
Alon Zakai 2886822f48 fix for test_sdl_ogl 2012-04-14 13:28:43 -07:00
Alon Zakai 0d3524b29e retrieve pixel data from IMG_Load, for maximum compatibility 2012-04-14 11:41:23 -07:00
Alon Zakai 21b34fed2d support for GL_TRIANGLE_STRIP 2012-04-14 10:28:17 -07:00
Alon Zakai b5e53f4e17 --js-library option to make it easy to add additional library_*.js files 2012-04-13 18:57:41 -07:00
Alon Zakai ef59099ffc sdl pageup/down 2012-04-13 17:54:28 -07:00
Ehsan Akhgari 0e234f6c2e Merge remote-tracking branch 'upstream/incoming' into glmatrix
Conflicts:
	src/library_gl.js
2012-04-13 18:27:37 -04:00
Ehsan Akhgari 51a81a7ccf Enable test_sdl_ogl 2012-04-13 18:25:58 -04:00
Ehsan Akhgari 5edc8d89a3 Lock and unlock the surface to access the raw pixel data 2012-04-13 18:18:23 -04:00
Sigmund Vik 8a93b915fc Make more browser tests work for Windows. 2012-04-13 15:51:19 +02:00
YeZhongWen 336f05f369 Add test case for strlwr/strupr 2012-04-13 13:36:34 +08:00
Alon Zakai 3818506c0f add glReadPixels and sdl/gl test for it 2012-04-12 20:36:39 -07:00
Alon Zakai bcb3d31c4c prepare for sdl/ogl test 2012-04-12 17:14:21 -07:00
Alon Zakai 8e915a87f3 files for sdl/ogl immediate mode test 2012-04-12 17:13:00 -07:00
Alon Zakai 5301539180 fix EM_SAVE_DIR 2012-04-12 14:05:21 -07:00
Alon Zakai 064b0c7d73 nicer browser test harness text 2012-04-12 11:32:39 -07:00
Alon Zakai 619ab111bd Merge pull request #374 from SiggyBar/build-env-2
Make it easier to use emscripten from a build system.
2012-04-12 11:20:34 -07:00
Alon Zakai 69a6582e46 make test_worker completely automatic 2012-04-11 16:09:52 -07:00
Alon Zakai eccc51856e make test_html a reftest 2012-04-11 15:38:30 -07:00
Alon Zakai 319020f107 update test_structbyval 2012-04-11 15:10:06 -07:00
Alon Zakai 9d26ce563f clean up gears tests 2012-04-11 13:31:12 -07:00