Vladimír Vondruš
57eb4ea649
Code cleanup.
12 years ago
Vladimír Vondruš
dd2cac1e8a
Assert on each OES_vertex_array_object function occurence.
...
Until we have extension wrangler set up for ES2.
12 years ago
Vladimír Vondruš
8a865e10a6
Fix version string comparison on desktop GL.
...
I should really read the specs more carefully, this seems to be a very
dark corner of desktop/ES compatibility.
12 years ago
Vladimír Vondruš
a4fa56b36d
Fix ES3 build.
...
Gah. And I tested it seven times.
12 years ago
Vladimír Vondruš
41235c20eb
Fix version checks on OpenGL 2.1 and OpenGL ES 2.0.
...
Both don't have GL_{MAJOR,MINOR}_VERSION enums so we must decide whether
the version is older than OpenGL 3.0 / ES 3.0 either using
MAGNUM_TARGET_GLES2 preprocessor definition or checking for invalid enum
error and then we have to parse version string to ensure that the
version is not too old. On ES2 the version check wasn't present at all
(only optimistic hope), this makes it more hardened.
12 years ago
Vladimír Vondruš
17ae24cee2
It probably isn't good idea to have version checks as assertions.
...
In particular when building with CORRADE_NO_ASSERT the version doesn't
get checked at all, silently failing on null pointer somewhere else.
12 years ago
Vladimír Vondruš
fa4558f5b5
Use version() utility function also internally.
12 years ago
Vladimír Vondruš
deb69d1197
Print more information when cannot retrieve OpenGL version.
...
At least the OpenGL error should be enough to pinpoint what went wrong.
12 years ago
Vladimír Vondruš
370f1bf7e3
Hide yet-unused private function on ES.
12 years ago
Vladimír Vondruš
10669f9e78
Fix class/struct mismatch.
...
Thanks, Clang.
12 years ago
Vladimír Vondruš
a88155a198
Actually make use of EXT_texture_storage on ES2.
...
Currently it was ignored when deciding about *Texture::setStorage()
implementation.
12 years ago
Vladimír Vondruš
a05594bdfd
Doc++
12 years ago
Vladimír Vondruš
97874a15ac
Fix BufferImage test to pass and retrieve data with proper alignment.
12 years ago
Vladimír Vondruš
fc35adaac2
Use *Image::dataSize() instead of manual buggy size computation.
...
BufferImage test currently fails.
12 years ago
Vladimír Vondruš
11522ac0cf
Get rid of pointers in internal texture implementation.
12 years ago
Vladimír Vondruš
932e629456
Actually implement the fallback for Renderer::resetNotificationStrategy().
...
It was documented and all, but wasn't ever implemented.
12 years ago
Vladimír Vondruš
1d218cbed2
Enable Buffer::invalidate*Data() on ES.
...
This smells fishy. The function _does have_ a no-op fallback
implementation to remove the need to wrap everything with an #ifdef
and/or extension check, so why I did exactly that everywhere?
12 years ago
Vladimír Vondruš
57ca8ee909
Removed Buffer::maxVertexAttributeBindings().
...
This queries limit for ARB_vertex_attrib_binding extension, which isn't
and probably won't be implemented in near future.
12 years ago
Vladimír Vondruš
5d938e7f4f
Moved global data from Renderer class to per-context state.
12 years ago
Vladimír Vondruš
1ad8be425f
Moved global data from Mesh class to per-context state.
12 years ago
Vladimír Vondruš
e921a111b5
Moved global data from Buffer class to per-context state.
12 years ago
Vladimír Vondruš
8cdefa1e0b
Moved global data from shader classes to per-context state.
12 years ago
Vladimír Vondruš
37b9f4d846
Moved global data from texture classes to per-context state.
12 years ago
Vladimír Vondruš
c1c71339e4
Moved global data from framebuffer classes to per-context state.
...
On the way to unify and reduce the "Using optional features" messages.
12 years ago
Vladimír Vondruš
28939078e2
Decide about used extensions on only one place.
...
Having the same branch cascade twice for debug output and for actual
feature selection is not good for maintenance. Put the extensions into
some list and then make it unique instead.
12 years ago
Vladimír Vondruš
d140cfd87e
Don't export template class.
...
The explicit instantiations are exported already.
12 years ago
Vladimír Vondruš
49d8c71a59
MagnumFont: mention lineHeight value in documentation.
12 years ago
Vladimír Vondruš
6f0ba96cb6
Happy new year too.
12 years ago
Vladimír Vondruš
2b94a350e7
Platform: fix magnum-info NaCl markup.
...
Somehow XHTML5 is misunderstood here.
12 years ago
Vladimír Vondruš
aec9e63d0d
Platform: display proper application class name in magnum-info.
12 years ago
Vladimír Vondruš
6f58bfd4e3
Platform: fix documentation.
...
The templates arguments were breaking the doc layout badly, hiding them
for documentation.
12 years ago
Vladimír Vondruš
cc9e6c6161
Fix NaCl build.
...
Apparently I enabled the queries for NaCl without testing at all.
12 years ago
Vladimír Vondruš
848d2fe45b
Doc++
...
Somehow explicit references are not working here.
12 years ago
Vladimír Vondruš
072ee4e288
doc: mapping of OpenGL limit and state queries, various improvements.
12 years ago
Vladimír Vondruš
09cc03888b
Skip mipmap generation test cases if required extension is not available.
12 years ago
Vladimír Vondruš
d563d0906f
Buffer::mapAlignment() requires ARB_map_buffer_alignment.
...
Return 0 if the extension is not supported.
12 years ago
Vladimír Vondruš
4820476beb
Doc++
...
Also added new Doxygen alias for more specific GL function links.
12 years ago
Vladimír Vondruš
6e2dcec59c
Platform: better checks for magnum-info compilation.
...
In particular GLX is not available on OS X.
12 years ago
Vladimír Vondruš
412011f2f8
Fixed linker errors on Windows.
13 years ago
Vladimír Vondruš
597a14d760
Fixed OpenGL ES 2.0 and 3.0 build.
13 years ago
Vladimír Vondruš
3df96b5944
Shaders: don't use deprecated header in tests.
13 years ago
Vladimír Vondruš
38ded20b94
SceneGraph: fix documentation of DrawableGroup aliases.
13 years ago
Vladimír Vondruš
9743d2abf3
SceneGraph: fixed compilation of Drawable on GCC 4.6.
...
This error was present since the very beginning but it didn't appear
until we were explicitly instantiating the Drawable class.
13 years ago
Vladimír Vondruš
42b1d26965
Shaders: renamed magnumShadersResourceImport.hpp to resourceImport.hpp.
...
No need to duplicate the namespaces in filename. The old file is alias
to new one, is marked as deprecated and will be removed in future
release.
13 years ago
Vladimír Vondruš
222292239b
Making includes absolute, part 7: fix documentation.
13 years ago
Vladimír Vondruš
7a68362170
Making includes absolute, part 6: better filenames for internal files.
...
As we are now using absolute includes, there is no need to prefix
everything with "magnum<Namespace>" etc. All generated configuration
files are renamed to configure.h and their path is included _before_
everything else to avoid accidental collisions.
13 years ago
Vladimír Vondruš
0616f24f34
Making includes absolute, part 5: absolute includes everywhere.
...
The only places where they aren't absolute are:
- when header is included from corresponding source file
- when including headers which are not part of final installation (e.g.
test-specific configuration, headers from Implementation/)
13 years ago
Vladimír Vondruš
8c2291aa49
Making includes absolute, part 4: using absolute includes for Corrade.
...
Also adapted to some Corrade renames.
13 years ago
Vladimír Vondruš
05b620dd09
Making includes absolute, part 2: make it compile again.
...
Added new root CMakeLists.txt file, the old include paths are used only
if MAGNUM_BUILD_DEPRECATED is set, thus it can now compile and install
only if deprecated build is enabled.
13 years ago
Vladimír Vondruš
45a10cefdf
Making includes absolute, part 1: moving files around.
...
Everything what was in src/ is now in src/Corrade, everything from
src/Plugins is now in src/MagnumPlugins, everything from external/ is in
src/MagnumExternal. Added new CMakeLists.txt file and updated the other
ones for the moves, no other change was made. If MAGNUM_BUILD_DEPRECATED
is set, everything compiles and installs like previously except for the
plugins, which are now in MagnumPlugins and not in Magnum/Plugins.
13 years ago