Vladimír Vondruš
8ef975616f
Primitives: textured circle primitive.
7 years ago
Vladimír Vondruš
8c439a2b66
Primitives: use container comparison for circle test.
...
For some reason this was the only primitive where it wasn't done yet.
7 years ago
Vladimír Vondruš
8f94a7717f
Primitives: constify.
7 years ago
Vladimír Vondruš
3967116dee
Primitives: use Math::sincos() where appropriate.
7 years ago
Vladimír Vondruš
6c434c7b21
Primitives: remove cruft deprecated in 2018.04.
7 years ago
Vladimír Vondruš
9def7ba7f6
Math: add a long double pi for sincos tests.
...
I hope nobody needs the others, haha.
7 years ago
Vladimír Vondruš
efe2f14284
Math: improve precision of double constants by one more digit.
...
And add comments to make sure we are not too imprecise.
7 years ago
Vladimír Vondruš
13b4bf8461
Math: use __builtin_sincos for sincos() on GCC.
...
Makes this thing faster on Debug. But I'm not sure whether it's due to
less function calls or this intrinsic being actually faster, heh.
Probably a combination of both.
7 years ago
Vladimír Vondruš
e9286421a1
Platform: improve the UX of windowless Emscripten apps.
...
* Wrap the text like in a console because nobody wants to read
kilometers-long horizontal lines with a horizontal scrollbar
* Make the output fill at least the space given to it but let it expand
beyond because a vertical scrollbar in an area of this size is
useless as well.
7 years ago
Vladimír Vondruš
f84a91ea06
DebugTools: improve CompareImage failure message.
...
The comparison is <=, so if it passes, it's not "below".
7 years ago
Vladimír Vondruš
5ebd8394e8
DebugTools: doc++
...
The note was totally useles and additionally I made a few brainfarts
here and there.
7 years ago
Vladimír Vondruš
a0232e8506
DebugTools: CompareImage can now compare against pixel views.
...
This is getting too good.
7 years ago
Vladimír Vondruš
0ba050f15e
Don't blow up in ImageView::pixels() if the image has empty data.
7 years ago
Vladimír Vondruš
069c81b9cb
Deprecate passing nullptr to images.
...
Causes too much pain. Ugh.
7 years ago
Vladimír Vondruš
c6737e1958
DebugTools: PIMPL all CompareImage's state.
...
The distinction didn't make sense and we had to include more than
necessary. It's great how easy those refactorings are with the 100% code
coverage.
7 years ago
Vladimír Vondruš
f4fd8a0648
DebugTools: rewrite CompareImage guts to use StridedArrayView.
...
Yay. Much simpler code.
7 years ago
Vladimír Vondruš
d0a02a2429
GL: allow reading of zero-size images.
...
It's useless, but not disallowed -- it shouldn't assert on that.
7 years ago
Vladimír Vondruš
e2610bff18
modules: updated FindCorrade.cmake.
7 years ago
Vladimír Vondruš
377ff068f3
Doc++
7 years ago
Vladimír Vondruš
0fac99149d
doc: add more stuff to Windows-specific docs.
7 years ago
Vladimír Vondruš
217ea0c7b4
Platform: clearer asserts for ScreenedApplication.
...
This was asserted already in LinkedList, but there it's very
disconnected from the actual screen APIs and thus confusing.
7 years ago
Vladimír Vondruš
206122b405
Platform: make it possible to create & add a Screen in one step.
7 years ago
Vladimír Vondruš
081f784836
Platform: improve ScreenedApplication docs.
7 years ago
Vladimír Vondruš
f3e0a852d5
Platform: make Screen::{focus,blur}Event() optional to implement.
7 years ago
Vladimír Vondruš
67a5602967
Platform: make BasicScreen destructor virtual.
7 years ago
Vladimír Vondruš
466c3bb957
Platform: why the heck was this missing from EmscriptenApplication?
7 years ago
Vladimír Vondruš
e08cdced88
Platform: make ScreenedApplication available for AndroidApplication.
7 years ago
Vladimír Vondruš
d1b7e4ded4
Platform: make KeyEvent in the Screen also a mixin.
...
Because this one is not available in AndroidApplication and due to that
the ScreenedApplication couldn't be used there.
7 years ago
Vladimír Vondruš
2828548d7d
Platform: expose mouseScrollEvent() and text*Event() in Screen APIs.
...
Because not all applications implement these, it's done via a "mixin". I
never did such a thing before, just got an idea that it could work and
I'm equally amazed and horrified that it actually DOES WORK. The Screen
will now expose the MouseScrollEvent, TextInputEvent and
TextEditingEvent typedefs only if the underlying application has them
too and provides the overrideable mouseScrollEvent(), textInputEvent()
and textEditingEvent() also only if the underlying application has them
-- that also means you can't `override` those if the app doesn't provide
such APIs, which acts as a nice check against accidental overgenericity.
7 years ago
Vladimír Vondruš
bb982a4089
Platform: overrideable functions in Screen can now be private.
...
This was done only because Doxygen wasn't able to document private
virtuals. Now it can.
7 years ago
Vladimír Vondruš
13d5ca04de
package/ci: use an image that doesn't have crashy nodejs.
...
Brittle web stuff gotta be brittle. Ugh.
7 years ago
Vladimír Vondruš
37996e12b7
doc: improve docs about external CMake modules.
...
Hopefully this stops more people from running into issues with those.
7 years ago
Vladimír Vondruš
544f30b52f
Platform: make Application and other conditional aliases searchable.
7 years ago
Vladimír Vondruš
51ff5644f0
Platform: minor cosmetic changes.
7 years ago
Vladimír Vondruš
10c8bd7516
Platform: group Screen members the same way as in Applications.
7 years ago
Vladimír Vondruš
ed6cde9536
DebugTools: support --save-diagnostic in CompareImage.
7 years ago
Vladimír Vondruš
4f55a17316
DebugTools: well, yes, isn't that obvious?
7 years ago
Vladimír Vondruš
f102b86645
DebugTools: prepare CompareImage for more than one plugin manager.
7 years ago
Vladimír Vondruš
bc0e45fb95
DebugTools: clearer name for a define.
7 years ago
Vladimír Vondruš
9e0b24fa5b
DebugTools: doc++, minor cleanup.
7 years ago
Vladimír Vondruš
5d9fb386f5
DebugTools: make CompareImage work correctly with NaNs and infinities.
7 years ago
Vladimír Vondruš
ab4b9f9600
Doc++
7 years ago
Vladimír Vondruš
a28e14491c
Math: verify that TypeTraits work correctly for signed infinities.
7 years ago
Vladimír Vondruš
3cf9dbf409
Math: added component-wise equal()/notEqual() for vectors.
7 years ago
Vladimír Vondruš
c158cfa2dd
Math: you need to know this.
7 years ago
Vladimír Vondruš
c0a206d5f4
GL: minor code reordering, doc++.
...
Getter and setter *should* be next to each other. I was horrified for 9
seconds that there's no setViewport().
7 years ago
Vladimír Vondruš
0d71c1d1cc
Search plugins relative to library DLLs on Windows.
...
Makes Windows users' lives slightly easier.
7 years ago
Vladimír Vondruš
e1b246fc70
modules: mark EGL/GLES *_LIBRARY and *_INCLUDE_DIR vars as advanced.
...
Not sure why that wasn't done here. It only inflates the CMake option
list as 90% of the people don't need to touch these.
7 years ago
Vladimír Vondruš
249459d710
doc: work around another EGL include issue by including less.
7 years ago
Vladimír Vondruš
48c904cd86
MagnumFont: and this is a direct consequence of not including ES headers.
...
Failed to build on WinRT due to that.
7 years ago