Vladimír Vondruš
c5bab9bb52
Added convenience Color3ub and Color4ub typedefs.
13 years ago
Vladimír Vondruš
f31cbccbcc
Default template parameter for Buffer::data(), templated Image::data().
...
To have BufferImage::buffer().data() consistent with Image::data()
(default is unsigned char data type, but it is possible to reinterpret
the data). Saves some ugly code:
Image2D image(ColorFormat::RGB, ColorType::UnsignedByte, ...);
Color3ub a = reinterpret_cast<Color3ub*>(image.data())[0]; // before
Color3ub b = image.data<Color3ub>()[0]; // after
13 years ago
Vladimír Vondruš
f0a8d5d047
Updated documentation of framebuffer classes.
13 years ago
Vladimír Vondruš
5e5b5e9c4c
Updated documentation of mesh classes.
13 years ago
Vladimír Vondruš
4d252ac643
Fully test shader functionality.
13 years ago
Vladimír Vondruš
7530605f29
Documentation update for shader classes.
13 years ago
Vladimír Vondruš
1b9ff6a2df
Test Mesh::indexSize().
...
I wonder if it is possible to test the function even more.
13 years ago
Vladimír Vondruš
18eb3cd0dc
Update and fix documentation, remove obsolete TODO.
...
Don't link to inexistent or deprecated things.
13 years ago
Vladimír Vondruš
18682203ef
Don't expose unneeded ES2 extensions under ES3.
...
They provide the same or slightly different functionality as is present
in ES3 itself, causing confusion. Fortunately this change required only
one modification in Context test and nowhere else.
13 years ago
Vladimír Vondruš
340d020507
Math: make Matrix::Matrix(T) constexpr also under CC 4.6.
13 years ago
Vladimír Vondruš
c3a9f429be
Math: overload Matrix::diagonal() in subclasses to return proper type.
13 years ago
Vladimír Vondruš
01599e7d11
Math: overload RectangularMatrix::diagonal() in subclasses.
...
...to return proper type.
13 years ago
Vladimír Vondruš
b648f9674c
Math: constexpr *Matrix::{fromDiagonal,diagonal}() and also Matrix(T).
...
Besides all the good things it is now possible to do even more insane
and useless constexpr-fu:
constexpr auto a = Math::Matrix3x3<Int>::fromDiagonal({1, 3, 2});
/* 7 0
0 7 */
constexpr Math::Matrix<a.diagonal()[2], Int> c(7);
13 years ago
Vladimír Vondruš
4846b4b2ed
Math: these aren't constexpr by a long shot.
13 years ago
Vladimír Vondruš
24f7de82c0
Get rid of unnecessary internal MagnumObjects OBJECT library.
...
It was needed for running some tests with graceful assert, but is not
needed anymore. This should also fix issues with CMake-generated XCode 5
project. Also fixed a few oddities:
* Setting CMAKE_SHARED_LIBRARY_CXX_FLAGS only if it's really needed.
* Don't add -DGLLoadGen_EXPORTS when building Math library, as it is
not needed at all.
13 years ago
Vladimír Vondruš
a9ca7d7544
Platform: include cleanup.
13 years ago
Vladimír Vondruš
bdfa0b4abe
Proper syntax for deleted copy constructors.
...
Another bug caused by copypasting, but caused issue only on GCC 4.5.
Also removed unused parameter name.
13 years ago
Vladimír Vondruš
fef811a01c
Add link to Google Groups to documentation.
13 years ago
Vladimír Vondruš
fbcec47086
package: reorder Jenkins CI axes.
...
The table is now able to fit onto the page.
13 years ago
Vladimír Vondruš
6d8b1d8eba
package: enable windowless apps for es3desktop Jenkins CI configuration.
...
Dammit. This was _exactly_ the thing why I added es3desktop and I forgot
to enable it?!
13 years ago
Vladimír Vondruš
39988cf128
package: don't check GL tests for es2 and es3 targets.
...
They don't have any windowless application yet, thus the operations are
basically a no-op. AND JENKINS IS SO DAMN SLOW THAT THIS MATTERS.
13 years ago
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š
d98d881587
package: added es3desktop variant to Jenkins CI configuration.
13 years ago
Vladimír Vondruš
35340fb184
package: added ES3 desktop PKGBUILD.
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š
a8b91a0914
package: building Sdl2Application also in es2desktop PKGBUILD.
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