Vladimír Vondruš
df69909a12
Fully test query functionality.
...
The test now fails due to wrong result<bool>() implementation.
13 years ago
Vladimír Vondruš
b72533602c
Minor cleanup.
13 years ago
Vladimír Vondruš
29489dc21a
MeshTools: simplified fullScreenTriangle() code, fixed literals.
13 years ago
Vladimír Vondruš
bc8368fcf2
MeshTools: don't return naked pointer from fullScreenTriangle().
...
Also make it possible to specify version for which we want it.
13 years ago
Vladimír Vondruš
47b16d11b1
Use more descriptive resource group name.
13 years ago
Vladimír Vondruš
98df39d9c2
Use *Image::dataSize() in Framebuffer::read().
...
Fixes Framebuffer test when ARB_robustness is used (without
ARB_robustness it was overwriting memory and could lead to weird
behavior).
13 years ago
Vladimír Vondruš
73cb557291
Added *Image::dataSize().
...
Will be used to compute size of data array needed to store image of
given size.
13 years ago
Vladimír Vondruš
2826345111
Fix AbstractImage::pixelSize() for depth and stencil types.
...
Also make the assertion more descriptive and add "to sleep better" test.
This fixes the assertion failure in FramebufferGLTest.
13 years ago
Vladimír Vondruš
1fcabbdfcb
Export publicly used symbol.
...
Framebuffer test now at least links.
13 years ago
Vladimír Vondruš
dff292a5f1
Test framebuffer functionality.
...
The attach() functions are a total mess, need to be reworked along with
typesafe array etc. textures. The test doesn't link or pass due to some
issues, see the following commits.
13 years ago
Vladimír Vondruš
bdc77c744b
Verify that framebuffer extension is available for test on desktop GL.
13 years ago
Vladimír Vondruš
ae2b2cd0f6
Platform: undefine more Xlib nonsense.
...
Status conflicts with *Framebuffer::Status enum.
13 years ago
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