Vladimír Vondruš
13d9a8f6f5
NoInit constructor for AbstractShaderProgram.
...
Also made it possible to call AbstractShaderProgram destructor without
an GL context being active.
9 years ago
Vladimír Vondruš
400b5fafcf
Clarify and verify that NoCreate constructors don't need GL context.
...
Tests for the NoCreate constructors were moved into non-GL test classes.
9 years ago
Vladimír Vondruš
c22d440e69
Don't define Texture3D on WebGL 1.0.
...
There's no matching extension (no OES_texture3D equivalent), moreover
constructing Texture3D doesn't even link (missing definitions).
9 years ago
Vladimír Vondruš
61e511dbc4
Math: component-wise comparison for RectangularMatrix.
...
Required for TestSuite::Compare::Around.
9 years ago
Vladimír Vondruš
6d9a9e9dfd
DebugTools: base ObjectRenderer on Primitives::axis*D().
9 years ago
Vladimír Vondruš
bac4d579c2
Primitives: new axis2D() and axis3D() primitive.
...
Color-coded XY and XYZ axes, cut out of DebugTools::ObjectRender into a
better reusable piece of code. Using the new vertex color functionality
of mesh data.
9 years ago
Vladimír Vondruš
0fe2ab0aa9
Shaders: ability to use RGBA colors with VertexColor shader.
...
It was just RGB before. In order to avoid breaking current code, the
attribute now requires explicit specification of number of components.
If building with deprecated APIs enabled, there is an additional
deprecated constructor that defaults to RGB so the current code should
keep working as-is.
9 years ago
Vladimír Vondruš
5ddd28dc19
Shader: include cleanup.
9 years ago
Vladimír Vondruš
76aab47291
Trade: support for vertex colors in MeshData.
...
In order to have a seamless transition for all the plugins and potential
user code the original constructor was marked as deprecated and there is
a new constructor taking also the colors.
9 years ago
Vladimír Vondruš
0aad8f756e
Math: utility function for conversion between CIE xyY and CIE XYZ.
9 years ago
Vladimír Vondruš
eeac7e2868
Math: minmax() for a pointer range.
...
Thanks @Squareys for unblocking my brain!
9 years ago
Vladimír Vondruš
9204156485
Math: constexpr issues with MSVC 2015.
9 years ago
Vladimír Vondruš
590717acfe
Trade: fix copypaste error in the test.
...
And then an assertion. Huh. Did I ever look at the code coverage?!
9 years ago
Vladimír Vondruš
353d7ff59d
Math: implemented minmax() for arbitrary vectors.
9 years ago
Vladimír Vondruš
4cf9459110
Math: return default-constructed value for min()/max() on empty range.
9 years ago
Vladimír Vondruš
bfa259fb18
Math: min() and max() for pointer ranges.
...
The test is for the initializer list version, so it covers these as
well.
9 years ago
Vladimír Vondruš
9e796b76c8
Math: added clamp(Vector, Vector, Vector), {min,max}(Vector, T)
...
In order to provide consistent API with GLSL. Pretty annoying omission.
9 years ago
Vladimír Vondruš
59f69d2a4f
Math: assert that the (un)packed vector type has the same size.
9 years ago
Vladimír Vondruš
8637cbdc31
Math: Color4::{xyz,rgb}() should return Color3, not Vector3.
9 years ago
Vladimír Vondruš
ce5699ce60
CMake: define UNICODE/_UNICODE on Windows to prevent ANSI accidents.
9 years ago
Vladimír Vondruš
34d4d707f9
package/archlinux: some numbers wanted to be updated.
9 years ago
Vladimír Vondruš
b14927aa61
Platform: added {Sdl2,Glfw}Application::window().
9 years ago
Vladimír Vondruš
4955e1e320
Platform: text input in GlfwApplication.
...
Mirrors a subset of the text input API from Sdl2Application, requires
latest Corrade for the Unicode::utf8() function.
9 years ago
Vladimír Vondruš
11d664efef
Platform: provide position in GlfwApplication::MouseEvent.
...
Kinda useless without it, I would say.
9 years ago
Vladimír Vondruš
9aa4e69db0
Platform: added GlfwApplication::windowSize().
9 years ago
Vladimír Vondruš
455dc26840
Platform: properly set minimized and cursor window options for GLFW.
...
Didn't work and caused the following error messages to be printed to the
output:
Invalid window hint 131074
Invalid window hint 208897
9 years ago
Vladimír Vondruš
57b36240c2
Platform: doc++
9 years ago
Vladimír Vondruš
3a16ae6f46
Platform: use Flag::TextInputActive instead of a boolean in Sdl2Application.
9 years ago
Vladimír Vondruš
f64ebc6219
Platform: use Flag::Redraw instead of a boolean in GlfwApplication.
...
Also properly reset it before drawEvent() so the users can control the
amount of redrawing themselves.
9 years ago
Vladimír Vondruš
4509dbb1b1
Don't use deprecated Corrade functionality.
9 years ago
Vladimír Vondruš
a7c7323673
Platform: make WindowFlag::Resizable consistent between GLFW and SDL2 app.
...
It was Resizeable on GLFW and Resizable on SDL2. As both APIs use
"resizable" as the flag name, I'm keeping it. The old enum value is now
an alias to the new one, is marked as deprecated and will be removed in
a future release.
9 years ago
Vladimír Vondruš
6ed4f6fe7f
Sloppy Doxygen docs are sloppy.
...
Note to myself: don't write docs under pressure.
9 years ago
Vladimír Vondruš
d34899eb5c
doc: added some useful notes to Best Practices.
9 years ago
Vladimír Vondruš
30018bdfbb
doc: updated formatting of Best Practices.
9 years ago
Vladimír Vondruš
f0cf36dea5
Added NoCreate {Compressed,}BufferImage constructors.
...
To have common API across the board.
9 years ago
Vladimír Vondruš
e0672f4867
Math: link to the Tau manifesto.
9 years ago
Vladimír Vondruš
44b2ae72bb
Ability to create {Compressed,}BufferImage from an existing Buffer.
...
One use case might be data reinterpreting in combination with
{Compressed,}BufferImage::release().
9 years ago
Vladimír Vondruš
876573fc6c
Added {Compressed,}BufferImage::release().
...
To mirror the API in other Image classes.
9 years ago
Vladimír Vondruš
cd70bc8f1e
DebugTools: fix assertion in ObjectRenderer.
...
Apparently this class was not used since 2013.
9 years ago
Vladimír Vondruš
bc1b8b0095
SceneGraph: fix deprecation warning message.
9 years ago
Vladimír Vondruš
e797fac8c7
package/ci: make AppVeyor MinGW green again.
9 years ago
Vladimír Vondruš
58831670f4
package/ci: fix coveralls upload.
9 years ago
Vladimír Vondruš
3300f06017
package: enabled OpenGLTester in all packages and CIs.
9 years ago
Vladimír Vondruš
9ab2a1553c
Fix compilation on GCC 6.3.
...
This is just sad.
9 years ago
Vladimír Vondruš
a0eeecba4a
Added GPU time benchmarking to OpenGLTester.
9 years ago
Vladimír Vondruš
ee3afc1bbc
Code simplification in plugin tests.
...
Somehow slipped through ages ago.
9 years ago
Vladimír Vondruš
fb454d8a3f
Made Test/AbstractOpenGLTester.h a public and documented API.
...
There will be numerous additions to this one so it made sense to make it
a static library instead of a header-only library. That also allows
CMake users to just link to Magnum::OpenGLTester instead of going
through the pain of a huge branching in order to find a correct
windowless application just to run their tests. It could have been done
even without the static library using a INTERFACE target, but that
wouldn't work on CMake < 3.0 (which, unfortunately, quite a few people
are still stuck with).
Unfortunately it's already heavily used elsewhere so I had to go through
the pain of deprecating the old implementation. The old implementation
was header-only so it can't be just typedef'd to the new one as there
would be linker failures. So the old header is just kept as it was, with
only the macros reduced.
9 years ago
Vladimír Vondruš
772ae84062
Test: adapt AbstractOpenGLTester to changes in Corrade::TestSuite.
9 years ago
Vladimír Vondruš
7ec6c3b477
doc: reordered sections of building docs for consistency with cmake docs.
9 years ago
Vladimír Vondruš
f31537d184
Clarify docs of Renderer::Feature::FramebufferSRGB.
9 years ago