Vladimír Vondruš
06a8341e9b
Support for EXT_disjoint_timer_query ES2 extension.
13 years ago
Vladimír Vondruš
f85f067192
Greatly simplified Query implementations.
...
All work is now done in AbstractQuery, subclasses define only
strongly-typed interface around it. No heap allocations, no virtual
destructors needed. Added also asserts into result(), begin() and end()
to harden the implementation.
13 years ago
Vladimír Vondruš
5f00a1926d
Split Query into PrimitiveQuery and TimeQuery.
...
It's better to group the queries on functionality and not common code.
13 years ago
Vladimír Vondruš
a191e1287f
Added some more Doxygen workarounds.
...
Forgotten in 3f891cfa7c .
13 years ago
Vladimír Vondruš
35eb876303
Various other compilation fixes for OpenGL ES target.
13 years ago
Vladimír Vondruš
4bb919e138
Don't define Query constructors & destructors in header.
...
AbstractQuery is virtual class, thus the constructors & destructors are
heavier than it looks.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
2d2d1c07f4
Using new type aliases in whole root Magnum namespace.
13 years ago
Vladimír Vondruš
4bfc745970
Updated OpenGL ES support in queries.
14 years ago
Vladimír Vondruš
2595974fae
Refactoring of internal OpenGL object names.
14 years ago
Vladimír Vondruš
f15906b28b
Fixed linking errors when only OpenGL ES 2 is available.
...
This is currently toggled with TARGET_OPENGLES2 option, which is enabled
by default when TARGET_OPENGLES is enabled.
14 years ago
Vladimír Vondruš
7a066672cd
Queries (except for timing ones) are available in OpenGL ES 3.0.
14 years ago
Vladimír Vondruš
c7bb153d0a
Port to OpenGL ES 2.
...
Desktop OpenGL and OpenGL ES 2 support can be switched using CMake
TARGET_GLES option. All functionality not supported in ES is marked in
documentation.
If targetting OpenGL ES, GLES2/gl2.h is included instead of GLEW.
Mesh class now uses VAOs only in desktop OpenGL, in ES the buffers are
bound on each draw call.
14 years ago
Vladimír Vondruš
fed3f9351f
Don't use 0 as null pointer constant.
14 years ago
Vladimír Vondruš
74449f8e13
Classes for querying primitive count, passed sample count etc.
14 years ago