Alon Zakai
d1b22871c3
use unique temp names for libraries too
2012-06-25 18:31:27 -07:00
Ehsan Akhgari
5940f31897
Implement Mix_QuickLoad_RAW
2012-06-25 19:13:35 -04:00
Alon Zakai
9144e4fe1d
minor emcc bugfix
2012-06-25 12:50:30 -07:00
Alon Zakai
ff674a7489
remove unneeded -O2 in test
2012-06-24 12:39:46 -07:00
Alon Zakai
0f825f760f
Merge pull request #488 from ehsan/fog
...
Fix the fog if the distance is negative
2012-06-24 12:22:14 -07:00
Alon Zakai
d21efe08b3
fix test_fcntl
2012-06-22 21:29:59 -07:00
Alon Zakai
27277383aa
emcc --remove-duplicates option
2012-06-22 20:50:21 -07:00
Alon Zakai
956c997255
enable previous assertion, properly
2012-06-22 20:28:03 -07:00
Alon Zakai
ddd0442f97
disable overly permissive assertion in emcc
2012-06-22 17:17:25 -07:00
Alon Zakai
92987e9dd2
misc library additions/fixes
2012-06-22 17:13:59 -07:00
Ehsan Akhgari
8ffa4e1f6b
Add a test case for negative distances
2012-06-22 15:41:54 -04:00
Ehsan Akhgari
772e930cec
Make sure that the distance is positive
2012-06-22 15:11:36 -04:00
Ehsan Akhgari
746848366b
Use component extractors
2012-06-22 15:11:19 -04:00
Ehsan Akhgari
e127b03c62
Don't hardcode the density into the fragment shader for fogs
...
Instead, read it in as a uniform, so that the same shader can be reused
with different density values.
2012-06-22 14:32:29 -04:00
Alon Zakai
0c3005012e
remove unneeded closure testing
2012-06-21 21:05:22 -07:00
Alon Zakai
5b67262e17
Merge pull request #487 from ehsan/fog
...
Fog support for immediate mode
2012-06-21 20:53:10 -07:00
Alon Zakai
7e24c13447
indentation fixes
2012-06-21 19:50:24 -07:00
Alon Zakai
2abffbd059
Merge pull request #483 from caiiiycuk/emscripten_fs_api
...
Emscripten filesystem api
2012-06-21 19:46:25 -07:00
Alon Zakai
7f40231836
quoting for closure
2012-06-21 18:42:52 -07:00
Ehsan Akhgari
6f3aafb70b
Update the reference images based on 1132ddbfb
2012-06-21 18:24:44 -04:00
Ehsan Akhgari
371eae10fb
Avoid creating garbage by allocating strings
2012-06-21 18:16:03 -04:00
Ehsan Akhgari
1132ddbfbb
Compute the fog in the fragment shader
...
This makes the fog a bit more precise, and matches how native OpenGL
calculates the fog value. But it also means that it would be a bit more
expensive to calculate because it is calculated once per pixel.
2012-06-21 18:14:07 -04:00
Ehsan Akhgari
0a014b6a0a
Take the fog into account when caching renderers
2012-06-21 18:08:39 -04:00
Alon Zakai
b504cd2b53
call Module.onFullScreen when going to full screen (allows the app to do custom behavior like adjusting resolution
2012-06-21 14:20:43 -07:00
Ehsan Akhgari
dfab4e04fc
Implement GL_LINEAR fog mode
2012-06-21 16:01:32 -04:00
Ehsan Akhgari
55a8e9a026
Implement GL_EXP2 fog mode
2012-06-21 15:44:17 -04:00
Ehsan Akhgari
191ea88710
Choose better names for the test files
2012-06-21 15:43:39 -04:00
Ehsan Akhgari
de30f4b064
Add support for fog density
2012-06-21 15:43:35 -04:00
Ehsan Akhgari
8058ce6b85
Add a test for basic fog support
2012-06-21 14:45:55 -04:00
Ehsan Akhgari
a199aa0e1b
Add support for glIsEnabled(GL_FOG)
2012-06-21 14:01:55 -04:00
Ehsan Akhgari
3d8cea93d0
Compute the color involving the shader first and then apply the fog
2012-06-21 13:40:47 -04:00
Ehsan Akhgari
37c6087206
Use only the z component of the distance vector
...
The length of the vector should give us more precise fogs, but ancient
OpenGL only uses the z component, so that's what we need to use here as
well.
2012-06-21 13:38:24 -04:00
Ehsan Akhgari
9d13d40393
Remove two unused variables
2012-06-21 13:37:14 -04:00
Ehsan Akhgari
e766175bbd
Fix a number of typos
2012-06-21 11:38:32 -04:00
Aleksander Guryanov
2c86cbf25b
Implementation for emscripten_async_wget
2012-06-21 20:38:01 +07:00
Ehsan Akhgari
45f1d2d84a
Initial immediate mode fog support
2012-06-20 18:31:40 -04:00
Ehsan Akhgari
54a711d7aa
Respect GL_FOG in glEnable/glDisable
2012-06-20 17:56:01 -04:00
Ehsan Akhgari
fb1d268c89
Fix a typo
2012-06-20 17:53:38 -04:00
Ehsan Akhgari
8c3f4eb956
Stub out the other fog functions
2012-06-20 17:53:38 -04:00
Alon Zakai
4071791bab
Merge pull request #479 from ehsan/explicit_capabilities
...
Check for supported capabilities explicitly
2012-06-20 14:52:24 -07:00
Alon Zakai
67ae1a27f3
support for non-square crunch textures with mipmaps
2012-06-20 10:56:18 -07:00
Alon Zakai
6d34633796
Merge pull request #480 from ehsan/crunch_import_warning
...
Crunch import warning
2012-06-19 20:40:26 -07:00
Alon Zakai
9deb9db1bb
Merge branch 'incoming' of github.com:kripken/emscripten into incoming
2012-06-19 18:50:40 -07:00
Alon Zakai
039db2d816
crunch fix
2012-06-19 18:47:17 -07:00
Ehsan Akhgari
4b5211c882
Only pull CRUNCH from shared.py if --crunch is used
2012-06-19 20:16:13 -04:00
Ehsan Akhgari
5a73bed818
Check for supported capabilities explicitly
...
This prevents a bunch of warning messages for things which we don't
support.
2012-06-19 19:52:46 -04:00
Alon Zakai
06680f3b14
more crunch printouts
2012-06-19 16:39:32 -07:00
Jukka Jylänki
b20f9e0f45
Don't pass the -nostdinc++ parameter to clang from emcc, since it spams the line "clang++: warning: argument unused during compilation: '-nostdinc++'" for each built .cpp file.
2012-06-19 19:16:12 +03:00
Alon Zakai
df16a752c4
remove some unneeding emcc printing
2012-06-18 20:07:56 -07:00
Alon Zakai
44e9dcf1c8
hint at crunch format
2012-06-18 17:50:41 -07:00