Vladimír Vondruš
f3c2bfb093
Animation: why not just cast the thing?
...
The reinterpret is kinda dangerous, and causes strict aliasing warnings.
6 years ago
Vladimír Vondruš
f269a1baa8
Vk: forgotten leftovers from the depths of MeshData renaming.
6 years ago
Vladimír Vondruš
749ae985b1
sceneconverter: support chaining converters.
6 years ago
Vladimír Vondruš
7100e3b6d8
Revert "Platform: choose a GLXFBConfig with a pbuffer."
...
Caused an error when creating a WindowlessGlxApplication on a Mesa with
just llvmpipe. Note to self: never again try to fix anything related to
Xlib that's not broken.
This reverts commit 511d0c1b27 .
6 years ago
Vladimír Vondruš
9d104a7e88
Shaders: document how to propagate generic attribs to shader code.
6 years ago
Vladimír Vondruš
fb32dd4c0e
imageconverter,sceneconverter: support option subgroups as well.
6 years ago
Vladimír Vondruš
0da8f89055
sceneconverter: hook scene converter plugins into this thing.
6 years ago
Vladimír Vondruš
08a51215b6
sceneconverter: add a --profile option.
6 years ago
Vladimír Vondruš
2dc47839ef
Trade: bootstrap scene converter plugins.
6 years ago
Vladimír Vondruš
b7edd8df25
sceneconverter: move the utility from Trade to MeshTools.
...
So it can make use of all the APIs in here. Having the utility part of
Trade would make the cyclic dependency a bit weird. Not adding MeshTools
as a dependency just yet, will do that once it's actually needed.
6 years ago
Vladimír Vondruš
e64e40da11
Platform: avoid using 100% CPU in an idle GlfwApplication.
6 years ago
William JCM
8a42c727c1
Fix one particular kind of linker errors on MingGW Clang.
...
The existing ifdefs apparently were just to work around something in
MinGW GCC. MSVC, Clang-cl and MinGW Clang don't need these.
6 years ago
Vladimír Vondruš
62fa2007e6
DebugTools: add raw data access to FrameProfiler.
...
This took three hours to implement. Wonderful, isn't it.
6 years ago
Vladimír Vondruš
d471a7bebd
DebugTools: remove redundant internal state in FrameProfiler.
...
Imagine spending 3 hours on recursive off-by-one and overflow errors.
Wonderful.
6 years ago
Vladimír Vondruš
be9a782272
DebugTools: rename function/test to match the use better.
6 years ago
Vladimír Vondruš
6c7e798d86
DebugTools: moving average over a year worth of frames isn't useful.
...
That would generate 32 GB of data. I think the technology isn't ready
for this yet, so I think capping the frame count (and everything else)
at 32 bits is enough.
6 years ago
Vladimír Vondruš
cda8c8fd09
Math: MSVC 2017 apparently dies on this.
...
But only in the vcpkg package and only with 19.16.27034 (not 27035), so
probably some combination of /permissive- and a compiler bug is to
blame.
The template keyword was unnecessary in any case, it probably got copied
from elsewhere by accident.
6 years ago
Vladimír Vondruš
28965d4887
Shaders: I happily forgot SwiftShader has broken gl_VertexID.
...
Sigh.
6 years ago
Vladimír Vondruš
e8f36033f9
Shaders: GS is needed only for wireframe.
...
So don't skip the test when rendering just object/primitive/.. ID. Turns
out due to the skip this test was never executed on SwiftShader, and it
thus needs some threshold bumping.
6 years ago
Vladimír Vondruš
698a7ed24c
Shaders: whoopsie.
6 years ago
Vladimír Vondruš
062055d20d
Shaders: add vertex ID visualization to MeshVisualizer.
...
Helps visualizing face connectivity (or the lack of it).
6 years ago
Vladimír Vondruš
7a58bf5e42
Shaders: reorder code for consistency.
...
It's InstancedObjectId and then PrimitiveId in the flags, so follow the
same order in the code also.
6 years ago
Vladimír Vondruš
6eccc479f0
Shaders: simplify a bunch of repeated checks in shader code.
6 years ago
Vladimír Vondruš
b858385b84
Shaders: unify assert for common flags in 2D and 3D meshvisualizer.
6 years ago
Vladimír Vondruš
806e080008
doc: updated changelog and credits.
6 years ago
Vladimír Vondruš
f1fbafb816
Trade: add a similar assert check for Phong textureMatrix as well.
6 years ago
Squareys
b8cc3f766a
Trade: add *TextureLayer() properties to PhongMaterialData.
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
5f7f219d75
MeshTools: added interleavedMutableData().
...
Needed a mutable variant of interleavedData() without having to do a
const_cast.
6 years ago
Vladimír Vondruš
a3912c7f7f
DebugTools: make FrameProfiler compile w/o TARGET_GL enabled.
6 years ago
Vladimír Vondruš
e7838a8b9e
Platform: check before calling SDL_DestroyWindow().
...
Can cause a crash when exiting from constructor on Windows (but not on
Linux). To be safe do the same for all others.
6 years ago
Vladimír Vondruš
060d8548c6
Math: benchmark some sqrt variants.
6 years ago
Vladimír Vondruš
e05fda0db4
Math: this got forgotten.
6 years ago
Vladimír Vondruš
a27802e67c
GL: sigh, windows.h.
6 years ago
Vladimír Vondruš
3942dff532
GL: add a test for global function pointers across libraries as well.
...
Fails. The huge change just before should have made the fix possible,
but apparently it's not so simple. Nothing is ever simple. Sigh.
6 years ago
Vladimír Vondruš
9c14d8e354
Introduce a BUILD_STATIC_UNIQUE_GLOBALS option.
...
Same as in Corrade. Because BUILD_STATIC is independent between Corrade
and Magnum this option is also independent -- the corner cases and bad
interactions would be otherwise too complex to handle (e.g., in case of
a dynamic Corrade and static Magnum it would be impossible to enable
this option for Magnum etc etc).
6 years ago
Vladimír Vondruš
b5dead9223
Platform: add no-forward-compatible-core-context workaround for EGL too.
6 years ago
Vladimír Vondruš
b81f78f990
Platform: I messed up.
6 years ago
Vladimír Vondruš
68c7a06ad3
Platform: add a TODO for this weird EGL app implementation.
6 years ago
aspioupiou
64d0702277
Platform: only initialize/terminate EGLDisplay once in a shared set.
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
6 years ago
Vladimír Vondruš
c986f5f99b
DebugTools: make GLFrameProfiler::Values storeable in Configuration.
...
I want to use these in command-line arguments.
6 years ago
Vladimír Vondruš
433dd07d9c
DebugTools: MSVC thanks for existing, again.
6 years ago
Vladimír Vondruš
f2800995b2
DebugTools: deprecate the old Profiler.
6 years ago
Vladimír Vondruš
2c43e817db
DebugTools: wow MSVC thanks for existing.
6 years ago
Vladimír Vondruš
820b9b94a1
DebugTools: initial implementation of a new frame profiler.
...
Replaces the old & extremely useless Profiler. Doesn't have everything I
want yet (missing stddev and fancier GPU queries), that'll come later.
6 years ago
Vladimír Vondruš
d366e0e7a0
GL: exposed clip / cull distance APIs.
6 years ago
Vladimír Vondruš
2c5aea6999
GL: forgot to list those GLES extensions.
...
They were listed on WebGL tho. Sigh.
6 years ago
Vladimír Vondruš
c114ca3fb9
Doc++
6 years ago
Vladimír Vondruš
7c0b7ad426
GL: and this is misplaced also.
6 years ago
Vladimír Vondruš
391dfbda4f
GL: not that it mattered much, but AbstractQuery forgot to move _flags.
...
These are not really used much so it probably didn't cause any bugs, but
nevertheless. Found while fixing something else.
6 years ago
Vladimír Vondruš
0cd72b1883
GL: give up and disable ARB_explicit_uniform_location on Intel Windows.
...
SIGH FFS.
6 years ago