Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
286514a7b7
package/ci: actually really cache the GLFW build.
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
Émile Grégoire
60e181d1b3
Use https for GL function links.
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š
a3fc2d1742
package/ci: properly exit if iOS build fails.
9 years ago
Vladimír Vondruš
cb7f490748
package/ci: explicitly test building w/o deprecated features.
9 years ago
Vladimír Vondruš
6fa2643e63
package/ci: get rid of JOBS_LIMIT and hardcode the value instead.
...
No need to have that configurable.
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
Émile Grégoire
a47429bd3f
Fix href to OpenGL reference generated by Doxygen.
...
The doc was moved to khronos.org and the URL schema was changed.
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š
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