Vladimír Vondruš
12fa6961c8
Use CMake folders also for OBJECT libraries, executables and tests.
9 years ago
Vladimír Vondruš
f222449bdf
Minor code reordering.
9 years ago
Vladimír Vondruš
f9bca9e2a7
Platform: no need to define UNICODE.
...
That's defined globally now.
9 years ago
Vladimír Vondruš
a83be88b88
Platform: put code comment on a correct place.
9 years ago
Vladimír Vondruš
76cc3f092a
Audio: use new-style file embedding for tests.
9 years ago
Émile Grégoire
dae1e8e9cf
Started adding folders for Visual Studio.
...
See https://gitter.im/mosra/magnum/archives/2017/03/25
9 years ago
Alice Margatroid
8c73040138
Forgot one push_back -> emplace_back in Audio
9 years ago
Alice Margatroid
58270fe9f0
push_back -> emplace_back
9 years ago
Alice Margatroid
e762fc1efc
Modernize #1
9 years ago
Vladimír Vondruš
46e118879f
Test: use Containers::arrayView() and arrayCast() to simplify code.
9 years ago
Vladimír Vondruš
30fa9645c1
Primitives: fix Cylinder test to follow the bugfix.
...
Also added a bunch of comments to prevent confusing myself again next
time and spaced the indices evenly to make them readable. All those
poorly done things contributed to the bug.
9 years ago
Émile Grégoire
ef771364fe
Fixed issue in Primitives::Cylinder::solid() where the last ring of faces wouldn't be created when using cap ends because of wrong offset.
9 years ago
Vladimír Vondruš
3541e9f1fa
Platform: proper include for WinRT SDL_WinRTRunApp().
9 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
d6f5f43d60
Shaders: modernize coding style.
...
* Always prefix private members with an underscore
* Use in-class initialization of the uniform locations
* Use {} for default flag value
9 years ago
Vladimír Vondruš
ae9095de16
Remove most of the "MSVC 2015 can't handle {} here" workarounds.
9 years ago
Vladimír Vondruš
2b34c269db
Doxygen warning fixes.
9 years ago
Vladimír Vondruš
025ef780b2
Workaround for that one damn Doxygen bug.
9 years ago
Vladimír Vondruš
f4ca50a7ca
WavAudioImporter: test for size of imported data.
...
In order to increase a chance for spotting a serious regression.
9 years ago
Vladimír Vondruš
044fd3d4f9
WavAudioImporter: vertical/horizontal code compression.
9 years ago
Vladimír Vondruš
3b3f71faa9
doc: adapted GL function/extension to Khronos domain move.
...
Followup to previous commit -- links to opengl.org are now redirected to
khronos.org and the extension links have the same format for both GL and
GLES. That allows me to remove some of the Doxygen aliases and use just
a single set of the functions for both GL and GLES.
9 years ago
Vladimír Vondruš
1e8a5c927b
Shaders: added NoCreate constructors to all classes.
...
Makes it possible to have instance of them even before any context is
active.
9 years ago
Vladimír Vondruš
087194d9c0
Shaders: make constructors explicit by default.
9 years ago
Vladimír Vondruš
aa69bbcc19
Math: ability to create matrices with one value for all components.
...
In order to do that with the previous API, one had to write an
abomination like
auto a = Matrix4x4::fromVector(Math::Vector<16, Float>{0.5f});
Ugh.
9 years ago
Vladimír Vondruš
6e10b2e205
Math: doc++
...
The TODOs were removed and put into GitHub projects to be a bit more
visible to random strangers.
9 years ago
Vladimír Vondruš
e666316ce1
Test: no inheriting constructors on GCC 4.7.
9 years ago
Vladimír Vondruš
eeba2ac848
Platform: proper NoCreate constructors for windowed classes.
...
The move away from `nullptr` to NoCreate for constructing an application
without creating OpenGL context was done quite some time ago for
windowless application, but for some weird reason it was never done for
windowed apps. Now made this consistent.
The old `nullptr`-based constructor is still present, but marked as
deprecated and due to be removed in some future release.
9 years ago
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š
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