Vladimír Vondruš
45c6265ef7
Attempt to fix build without assertions no. 3.
11 years ago
Vladimír Vondruš
0ca141d431
Attempt to fix build without assertions no. 2.
11 years ago
Vladimír Vondruš
f42ef9098d
Attempt to fix build without assertions.
11 years ago
Vladimír Vondruš
dc2433c35f
Fix Mesh test build on ES.
11 years ago
Vladimír Vondruš
36c40e5b27
package/ci: test also build without asserts in Jenkins.
11 years ago
Vladimír Vondruš
4ce2875262
Disable glDrawRangeElements() on WebGL 2.
...
It currently crashes Firefox (38) on "Not Implemented" assert, so just
call glDrawElements() instead until it is properly implemented.
11 years ago
Vladimír Vondruš
aa31c0e0f5
Use glGetString(GL_EXTENSIONS) instead of glGetStringi() on WebGL 2.
...
Or at least until Emscripten has implementation for it.
11 years ago
Vladimír Vondruš
cb6299458c
Don't query GL_{MMAJOR,MINOR}_VERSION on WebGL 2.
...
It doesn't make any sense -- WebGL 2 doesn't provide any equivalent
functionality for this and so I don't even know what values should this
return (3.0? 2.0?). Instead I just check for "WebGL 2" string prefix and
treat it as ES 3.0.
11 years ago
Vladimír Vondruš
226974bf2c
TextureTools: work around compiler warning.
11 years ago
Vladimír Vondruš
20d09aad09
Fix Emscripten build.
11 years ago
Vladimír Vondruš
58907e41e5
Properly check extension availability in transform feedback test.
11 years ago
Vladimír Vondruš
ea1c335a2b
Ability to wrap and release existing OpenGL objects.
...
Allows for better interaction with third-party libraries. I should
probably write a new documentation page about OpenGL wrapping.
11 years ago
Vladimír Vondruš
362f53f94c
Cleanup.
11 years ago
Vladimír Vondruš
0e81a96121
Instantiate whole class instead of each function separately.
11 years ago
Vladimír Vondruš
13ca01c826
Minor code reorganization.
11 years ago
Vladimír Vondruš
e84bcde790
Fix type conversion errors in Mesh test shader code.
...
Reported by latest NVidia drivers (352.09), apparently worked until now.
Huh.
11 years ago
Vladimír Vondruš
23eeca3ed0
TgaImporter, TgaImageConverter: doc++
11 years ago
Vladimír Vondruš
2424d47567
Try to not use MAGNUM_TARGET_GLES3.
...
It's confusing and should be removed (what if we have ES4?).
11 years ago
Vladimír Vondruš
bd107a2290
modules: EGL is not Sdl2Application dependency on WebGL.
11 years ago
Vladimír Vondruš
db65e56e1c
package/archlinux: added WebGL 2.0 Emscripten PKGBUILD.
11 years ago
Vladimír Vondruš
5e7593e7af
package/ci: enable WebGL 2.0 in Emscripten Jenkins configuration.
11 years ago
Vladimír Vondruš
c525d7c896
package: don't use Ninja for Emscripten as it cannot handle deps somehow.
...
Stuff that's depending on particular header is not recompiled after
changing the header. With make it works.
11 years ago
Vladimír Vondruš
bbbe99b786
Audio, Trade: fixed compilation with GCC 5.1.
...
Huh.
11 years ago
Vladimír Vondruš
d3e83f797d
Expose CHROMIUM_map_sub only for NaCl.
...
It's not even in official registry.
11 years ago
Vladimír Vondruš
93147d896d
Initial support for WebGL 2.
...
The actual WebGL 2 distinction was done as a part of previous WebGL
cleanup. It compiles, but is completely broken, as Emscripten has some
missing bits to go through at least Context class creation.
11 years ago
Vladimír Vondruš
92e923d056
First-class WebGL support, part 14: reduced available extensions.
...
This was the actual problem. Most of ES extensions are not available in
WebGL, thus the GL headers and the code was far more bloated than it
needed to be. The GL header is now reduced and the previous 13 commits
were disabling features that aren't actually available in WebGL.
The final executable size is reduced by ~50 kB, which actually isn't
much, but still something.
Some ES extensions (ANGLE_depth_texture and ANGLE_instanced_arrays) have
now WEBGL_* prefix. I'm still using the original prefix in the
implementation because there are headers for these, but in public docs
and elsewhere they are exposed with WEBGL_*.
11 years ago
Vladimír Vondruš
61d9697f00
First-class WebGL support, part 13: reduce version enum.
11 years ago
Vladimír Vondruš
a7806d97ec
First-class WebGL support, part 12: reduced transform feedback functionality.
11 years ago
Vladimír Vondruš
9f96ed4658
First-class WebGL support, part 11: no context flags.
11 years ago
Vladimír Vondruš
cab484050b
First-class WebGL support, part 10: reduced mesh functionality.
...
Actually properly supporting ANGLE_instanced_arrays. Emscripten
currently has the functions without the ANGLE suffix. Only causes linker
warnings when not used, need to fill a bugreport and fix properly.
11 years ago
Vladimír Vondruš
23444ffb61
First-class WebGL support, part 9: reduced renderer functionality.
11 years ago
Vladimír Vondruš
4e75b2fb83
First-class WebGL support, part 8: reduced query functionality.
11 years ago
Vladimír Vondruš
90b89c6f3d
First-class WebGL support, part 7: reduced color formats.
11 years ago
Vladimír Vondruš
567a2569a2
First-class WebGL support, part 6: reduced shader functionality.
11 years ago
Vladimír Vondruš
c77848ffac
First-class WebGL support, part 5: reduced framebuffer functionality.
11 years ago
Vladimír Vondruš
cb16c932a4
First-class WebGL support, part 4: reduced texture functionality.
11 years ago
Vladimír Vondruš
af9ef80c91
First-class WebGL support, part 3: reduced buffer functionality.
11 years ago
Vladimír Vondruš
1f985dfec6
First-class WebGL support, part 2: no debug output.
11 years ago
Vladimír Vondruš
4f90760598
First-class WebGL support, part 1: initial infrastructure.
11 years ago
Vladimír Vondruš
33bb57ac74
Provide TARGET_WEBGL variable in CMake.
11 years ago
Vladimír Vondruš
b95749797d
Reorganized and cleaned-up list appending in CMakeLists.
11 years ago
Vladimír Vondruš
dde630e7f8
Hide internal function declaration on ES2 builds.
...
The implementation was already hidden so this is not needed too.
11 years ago
Vladimír Vondruš
5175805762
Common format for preprocessor #error messages.
...
Similarly to other compiler errors: first letter lowercase, no period
after.
11 years ago
Vladimír Vondruš
9192554ecd
Don't use MAGNUM_TARGET_GLES3 where the condition will pass also for ES4.
11 years ago
Vladimír Vondruš
48d8499486
Cleanup.
11 years ago
Vladimír Vondruš
93a31ce9ef
Properly error-out if using deprecated header on non-deprecated build.
11 years ago
Vladimír Vondruš
295b909c1c
Print error if transform feedback header is used in OpenGL ES 2.0 build.
11 years ago
Vladimír Vondruš
eaf849f659
Undef privately used macro in all cases.
11 years ago
Vladimír Vondruš
ee9dae968b
Reordered aliases in Doxyfile.
11 years ago
Vladimír Vondruš
aef5353bee
Fixed comment.
11 years ago