Vladimír Vondruš
6ce1a939dc
Enable VAOs by default for ES3.
...
The fallback code is kept, as somebody might want to use the "possibly
faster" path sometime.
13 years ago
Vladimír Vondruš
331433effa
Shaders: somehow I need to enable the extension also on ES3.
...
Although the extension is fully implemented in ES3 itself.
13 years ago
Vladimír Vondruš
3854e63f5a
Shaders: fix MeshVisualizer on ES3.
13 years ago
Vladimír Vondruš
d003549328
Platform: fixed compilation of magnum-info on ES3.
13 years ago
Vladimír Vondruš
d2b38b712f
Fixed compilation of tests on ES3.
13 years ago
Vladimír Vondruš
c1282964c5
Verify that version retrieval went right.
...
Sometimes the context is created improperly and all gl* functions are
causing errors. Added check for that case.
13 years ago
Vladimír Vondruš
63a611cd1f
Fix OpenGL ES-related documentation.
13 years ago
Vladimír Vondruš
00dec60d33
Platform: implement ES2 and ES3 support for SDL2 and X-based applications.
...
Currently XEglApplication and GlxApplication were requesting only ES2
context and SDL2 was not requesting anything in particular (but in
theory should work on ES-only systems flawlessly). Now explicitly
requesting ES3 if MAGNUM_TARGET_GLES3 is enabled and also explicitly
requesting ES in SDL2, so it is usable also with
MAGNUM_TARGET_DESKTOP_GLES.
13 years ago
Vladimír Vondruš
cadaed853e
Platform: ability to request context version in *X*Application.
13 years ago
Vladimír Vondruš
e1e21bc9c5
Platform: doc++
13 years ago
Vladimír Vondruš
a96bd348d2
Platform: remove #define None.
...
We need to live without that.
13 years ago
Vladimír Vondruš
7c5762424b
Platform: no-op context version setter in NaClApplication.
...
Included only for compatibility with other platform toolkits.
13 years ago
Vladimír Vondruš
8c39c5f11f
Platform: ability to request context version in GlutApplication.
13 years ago
Vladimír Vondruš
3833478212
Platform: ability to request context version in Sdl2Application.
13 years ago
Vladimír Vondruš
63d4570f6a
Platform: minor code deduplication, documentation and cleanup.
13 years ago
Vladimír Vondruš
49bd0b6ff0
Added version() utility function.
...
Converts Version enum value to and from major/minor version number.
13 years ago
Vladimír Vondruš
ce52f7b62f
Moved Version enum to its own file.
...
There will be many places (e.g. all
Platform::*Application::Configuration classes) where Version will be
used without Context (and all GL stuff brought with it).
13 years ago
Vladimír Vondruš
86e8739bc0
Updated and fixed *Query documentation.
...
Removed misleading "requires_gles30" line for AbstractQuery.
13 years ago
Vladimír Vondruš
3d4db4e2b7
Primitives: set compile flags for proper library.
13 years ago
Vladimír Vondruš
533ff3d3d3
Don't modify CORRADE_CXX_FLAGS, but rather directly CMAKE_CXX_FLAGS.
13 years ago
Vladimír Vondruš
168807ed64
DebugTools: fix warning on MinGW.
13 years ago
Vladimír Vondruš
e6200cc828
Use proper debug callback signature on Windows.
13 years ago
Vladimír Vondruš
c9103b8947
Fix compilation of Shader on MinGW32.
...
Broken during renaming in 5f51652aff .
13 years ago
Vladimír Vondruš
64a1d6be88
Mesh: set VAO id to 0 when the extension is not available.
...
Also expect this case in test.
13 years ago
Vladimír Vondruš
f373b6518e
Disabling strict aliasing on GCC >= 4.8.
...
Causes failure of DebugToolsCylinderRendererTest without any warning,
only in release build, any attempt to add debug print results in issue
disappearing. Not an issue on Clang or GCC < 4.8.
13 years ago
Vladimír Vondruš
cacd4c06eb
NV_read_{depth,depth_stencil} is not available in unextended ES3.
13 years ago
Vladimír Vondruš
5115fb8624
Doc++, added todos.
13 years ago
Vladimír Vondruš
64c1b6cbd4
Text: disable test case if required extension is not available.
13 years ago
Vladimír Vondruš
8c0257e6e8
Abort the application on attempt to use any ES extension function.
...
We don't have extension loader for ES yet, thus we need to abort on
these to avoid undefined behavior. The only exception is NaCl, which
provides _some_ extensions without the need for extension loader. These
extensions are implemented in particular:
CHROMIUM_map_sub
EXT_occlusion_query_boolean
13 years ago
Vladimír Vondruš
ddc7fba391
Fixed compilation of tests on Clang.
13 years ago
Vladimír Vondruš
ce7102df46
GCC 4.6 compatibility: no std::is_assignable.
...
Just disabling it, as it appears only in tests.
13 years ago
Vladimír Vondruš
bd955a77b7
Renamed Sampler::maxAnisotropy() to Sampler::maxMaxAnisotropy().
...
Finally a non-confusing name, hopefully. Sorry it took me too long. The
original Sampler::maxAnisotropy() (and also
Sampler::maxSupportedAnisotropy()) is now alias to the new one, is
marked as deprecated and will be removed in future release.
13 years ago
Vladimír Vondruš
7fe926dcab
Fix AbstractTexture::setWrapping() for rectangle textures.
...
Sampler::Wrapping::ClampToBorder was mistakenly disallowed. All the
tests are now passing again.
13 years ago
Vladimír Vondruš
fac8f7233c
Sampler: remove old ES-specific workaround.
...
It caused Sampler::maxAnisotropy() to return 0.0f on all ES systems. And
I thought this was some driver issue.
13 years ago
Vladimír Vondruš
1f15ac1d92
Added no-op fallback for unsupported EXT_texture_filter_anisotropic.
...
This extension is ubiquitous, but to make users' life even easier we
now provide no-op fallback for both Sampler::maxAnisotropy() and
Texture::setMaxAnisotropy().
13 years ago
Vladimír Vondruš
a8d35fb60f
Testing all *Texture functionality.
13 years ago
Vladimír Vondruš
fcfcc84e19
Platform: show BufferTexture::offsetAlignment() in magnum-info.
13 years ago
Vladimír Vondruš
13692f4895
Added BufferTexture::offsetAlignment() limit query.
13 years ago
Vladimír Vondruš
4a5308ef39
Make BufferTexture::id() public.
13 years ago
Vladimír Vondruš
7dd4cf1ea3
Fixed CubeMapTextureArray::image().
...
This was copypasted from CubeMapTexture and apparently wasn't tested
once. The Coordinate enum is now not needed at all.
13 years ago
Vladimír Vondruš
3bdf405f7f
Fixed GL debug output performance warnings in Buffer test.
13 years ago
Vladimír Vondruš
fa4f090f90
Enabled synchronous debug output for AbstractOpenGLTester.
13 years ago
Vladimír Vondruš
f7a512fae4
Testing Buffer move construction and assignment.
13 years ago
Vladimír Vondruš
34c6565e71
Testing Mesh move constructor and assignment.
13 years ago
Vladimír Vondruš
9a9b5a90e1
Added move constructor/assignment to Query classes.
...
Also updated the test.
13 years ago
Vladimír Vondruš
3fd165e9bb
Added move constructor/assignment to Framebuffer classes.
...
Also updated the tests.
13 years ago
Vladimír Vondruš
17ac78f224
Added missing Framebuffer::id().
13 years ago
Vladimír Vondruš
5f51652aff
Updated, documented and tested Shader and ShaderProgram movement.
...
Added Shader::type() and Shader::sources() accessors for testing
purposes, it involved renaming private members (no functional change).
13 years ago
Vladimír Vondruš
a4aad89cfb
Ability to print Shader::Type enum to Debug output.
13 years ago
Vladimír Vondruš
42c2032d81
Simplified and tested Texture move constructor/assignment.
...
Move constructor and move assignment is now noexcept and it just swaps
the data of the two instances instead of calling GL API, thus it can be
inline. Also removed unneded limitations in BufferTexture.
13 years ago