Vladimír Vondruš
e36b5e3517
Platform: added Sdl2Application::MouseEvent::clickCount().
10 years ago
Vladimír Vondruš
6da8da79a8
Platform: properly prefix private member variables.
10 years ago
Vladimír Vondruš
471b7a58f6
Math: fix narrowing conversion in ColorTest.
...
MSVC complained.
10 years ago
Vladimír Vondruš
9fa0d8c796
Math: fix lerp() with BoolVector.
...
For some reason I swapped the order and took from the second parameter
when the value was 0. Probably because of the ?: operator.
10 years ago
Vladimír Vondruš
7fecf73492
Math: minor cleanup.
10 years ago
Vladimír Vondruš
fcb7277524
Platform: added Sdl2Application::windowSize().
10 years ago
Vladimír Vondruš
a4fbea42d0
Math: proper implementation of Vector::isZero() for integers.
...
The thing is:
* Doing std::abs() and comparing to some epsilon value is crazy thing
to do with integers.
* When using unsigned integers, Clang rightfully complained that
calling std::abs() on these is a sign of insanity. This fixes it too.
10 years ago
Vladimír Vondruš
8d3fb52a7f
Platform: split text input rect setup into separate function.
...
* It might change during the text editing process and thus we need to
reposition it.
* And it's also not possible to connect a parameter-less signal to it
on Clang, which is unfortunate.
10 years ago
Vladimír Vondruš
683fd63416
Fix build on ES.
...
:(
10 years ago
Vladimír Vondruš
62176eac1e
Math: oh I screwed up again!
...
I blame my Python calculator :P
10 years ago
Vladimír Vondruš
c5f64c2663
Math: 8-bit and float RGB and RGBA literals.
...
Shiny!
10 years ago
Vladimír Vondruš
52f2d297ca
Math: put angle literals into dedicated Literals namespace.
...
Similarly as it is done in STL for C++14 literals, the user has to
explicitly put them to scope with `using` keyword to avoid accidental
collisions. If MAGNUM_BUILD_DEPRECATED is set, they are still brought to
the root namespace, but that will be removed in a future release.
10 years ago
Vladimír Vondruš
3da4870aa0
Math: minor cleanup.
10 years ago
Vladimír Vondruš
774481b682
Platform: MOAR keys in Sdl2Application.
...
And reordered GlfwApplication key enum to be consistent with the rest.
10 years ago
Vladimír Vondruš
fc489ff457
Math: oops, part 2.
10 years ago
Vladimír Vondruš
d3b18e145b
Platform: oops, committed too fast.
10 years ago
Vladimír Vondruš
dce3880d13
Math: default-constructed Color4 should have zero alpha.
...
Makes more sense than fully opaque black. On the other hand, creating
Color4 from Color3 or separate RGB components still sets alpha to one,
because that's the intuitive behavior.
10 years ago
Vladimír Vondruš
1398ffd24c
Platform: text input support for Sdl2Application.
10 years ago
Vladimír Vondruš
082e02a013
Platform: minor code reordering.
10 years ago
Vladimír Vondruš
0078f7a035
Platform: fix Sdl2Application build on Emscripten.
10 years ago
Vladimír Vondruš
889171303e
Mark EXT_shader_framebuffer_fetch as semi-supported.
10 years ago
Vladimír Vondruš
0dbd8a2f8f
Platform: doc++.
...
Also fixed a minor typo in enum name.
10 years ago
Vladimír Vondruš
d2f8821ce7
Implemented KHR_no_error.
10 years ago
Vladimír Vondruš
aa721781f1
DebugTools: fixed compilation on GLES2.
10 years ago
Vladimír Vondruš
4ed4cf1b56
external: updated generated GL headers.
...
Just a single bugfix, hah.
10 years ago
Vladimír Vondruš
44e1851809
Updated credits.
10 years ago
Vladimír Vondruš
66e17608e6
Text: introduce font ascent and descent.
...
It required some ABI-incompatible changes so I bumped the font and
font converter plugin interface strings to avoid crashes at runtime.
10 years ago
Vladimír Vondruš
5061d29926
Platform: don't set swap inteval implicitly in GlfwApplication.
10 years ago
Vladimír Vondruš
dc41cbbdb2
Platform: minor formatting updates.
10 years ago
Vladimír Vondruš
9a20dc2a70
Platform: backport GlfwApplication to GLFW 3.1.
...
So one can use it without compiling latest master.
10 years ago
Squareys
725e726c1e
Platform: Implement modifiers for GlfwApplication
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Squareys
accf8380f0
Platform: Implement WheelUp/Down analog to Sdl2Application
...
... for better portability.
Signed-off-by: Squareys <squareys@googlemail.com>
10 years ago
Squareys
e451b6dfdb
Platform: Add GlfwApplication
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Vladimír Vondruš
8f9918ea0d
DebugTools, TextureTools: no pixel_center_integer in GLSL ES.
...
This seems like yet another pointless restriction. Aargh.
10 years ago
Vladimír Vondruš
7694157679
Fix annoying unused variable warning on ES.
10 years ago
Vladimír Vondruš
23074760f3
Platform: make magnum-info actually useful on iOS.
10 years ago
Vladimír Vondruš
58c98cae3e
Added EXT_shader_framebuffer_fetch ES extension to the list.
...
And also ARM_shader_framebuffer_fetch and
ARM_shader_framebuffer_fetch_depth_stencil.
10 years ago
Vladimír Vondruš
9500040f8e
Added KHR_no_error desktop and ES extension.
10 years ago
Vladimír Vondruš
7878d039ec
Platform: support iOS in magnum-info.
10 years ago
Vladimír Vondruš
35da9ebfa0
Support iOS in GL tests.
10 years ago
Vladimír Vondruš
16943e644f
Test: reorder preprocessor branches.
10 years ago
Vladimír Vondruš
6379f8a616
Platform: added WindowlessIosApplication.
10 years ago
Vladimír Vondruš
59af7e1920
Fix compilation on ES.
10 years ago
Vladimír Vondruš
7ffe30c676
Oh, std::pair is not constexpr in C++11.
...
That's why.
This partially reverts commit 628201946b .
10 years ago
Vladimír Vondruš
da8bf1a184
DebugTools: reorder and document to make the non-orthogonality obvious.
...
Also apparently ordering of the functions in the *source* file is
important for Doxygen and the header order gets ignored completely. What
the hell.
10 years ago
Vladimír Vondruš
74e43a4f31
DebugTools: fallback to Texture::subImage() on desktop.
...
I still have to fill up the missing parts to make it orthogonal, but NO
DAMN TIME.
10 years ago
Vladimír Vondruš
a02135b699
Platform: ability to query raw extension string list in magnum-info.
10 years ago
Vladimír Vondruš
5ff451791a
Make the ES versions first-class on desktop OpenGL.
...
What this changes:
* Before, a Version::GLES310 shader was created with `#version 450`
directive, which is wrong, because an implementation might support
GLES 3.1 but not GL 4.5 so this was not working and also the syntax
is a bit different so this wasn't helpful at all.
* Similarly, Context::isVersionSupported(Version::GLES310) was checking
for support of OpenGL 4.5. Now it just checks for
`ARB_ES3_1_compatibility` extension.
* Added a small isVersionES() utility that just tells whether given
version is ES or not.
10 years ago
Vladimír Vondruš
628201946b
Made the version() functions constexpr.
...
Not sure why it wasn't like that before.
10 years ago
Vladimír Vondruš
9cbbd21416
DebugTools: fix static build on ES.
10 years ago