Vladimír Vondruš
f5db09b667
Audio: minor cleanup.
12 years ago
Vladimír Vondruš
eb32fb1c40
Proper no-op fallback for *Framebuffer::invalidate*().
...
The documentation of ARB_invalidate_subdata mentions that all the
functions are really just a hint for the implementation to make some
performance optimizations and they are not affecting behavior at all. So
it's perfectly fine to do nothing if the extension is not supported.
I didn't do this originally as I mistakenly thought that invalidating
depth buffer would somehow behave the same as clearing it, but that's
not the case.
12 years ago
Vladimír Vondruš
6fa9d36005
TextureTools: const is available since GLSL 4.20.
12 years ago
Vladimír Vondruš
df699b75b5
TextureTools: properly create compatibility shader.
12 years ago
Vladimír Vondruš
5303979315
Shaders: make the helper function inline.
...
Will be used outside of the library and I don't want to create
another inter-library dependency.
12 years ago
Vladimír Vondruš
746b4eb692
Platform: specify dependencies for Application libs on single place.
12 years ago
Vladimír Vondruš
25bbc57d4c
modules: minor cleanup.
12 years ago
Vladimír Vondruš
0d9c21b491
doc: mention plugin interface string in plugin interface docs.
12 years ago
Vladimír Vondruš
dfec071575
Less strict version string comparison in Context.
...
Not all drivers return "2.1 Vendor", there is also "2.1.2 NVIDIA" (and
probably more).
12 years ago
Vladimír Vondruš
5e88bb0da2
Math: less strict precision for comparing floats.
...
Now the viewer example is usable again.
12 years ago
Vladimír Vondruš
b60c2dcb51
Math: better algorithm for comparing floating-point values.
...
Still not ideal (for values around zero), but can't do much better for
such general case.
12 years ago
Vladimír Vondruš
539da0daf1
Trade: minor cleanup.
12 years ago
Vladimír Vondruš
a201f32aab
Trade: allow instantiating importer plugins with access to manager.
12 years ago
Vladimír Vondruš
ea28b3e8f4
TgaImporter: remove old nonsense from plugin configuration file.
12 years ago
Vladimír Vondruš
e71be176a9
Allocation-free overloads for AbstractShaderProgram string functions.
...
In nearly every case the attributes are bound and uniform locations
queried with constant char arrays:
bindAttributeLocation("position", Position::Location);
colorUniform = uniformLocation("color");
Avoiding conversion to std::string and passing const char(&)[size]
directly will avoid needless allocation (and later deallocation) for
every call.
12 years ago
Vladimír Vondruš
1b45a71ff5
Allocation-free overloads for *::setLabel().
...
In most cases the label is set directly from code, e.g.:
texture.setLabel("diffuse-duck");
Avoiding conversion to std::string and passing char(&)[size] directly
will avoid one allocation and deallocation. Better solution would be to
use std::string_view everywhere, but we're not in C++17 yet.
12 years ago
Vladimír Vondruš
ca84e60d66
Fix CubeMapTexture test.
...
This time thank you, hardened NVidia drivers.
12 years ago
Vladimír Vondruš
0dfbc6f833
Use object at least once before testing its label.
...
Otherwise my NVidia emits GL_INVALID_VALUE with message "that <object>
is not valid object", which isn't in the specs. I hate this "deferred
everything" approach in GL. Is this even legal optimization?
12 years ago
Vladimír Vondruš
dcec0bc95f
Remove old NVidia workaround from AbstractObject::getLabel().
...
This bug is fixed, but other issues appeared.
12 years ago
Vladimír Vondruš
9687b622f9
Use threaded shader compilation etc. also in tests.
12 years ago
Vladimír Vondruš
73404fc6e5
Added Renderer::enable()/disable().
...
Should be preferred to Renderer::setFeature() to avoid unnecessary
branching. Also a bit shorter to write.
12 years ago
Vladimír Vondruš
824fc4974a
TextureTools: use threaded shader compilation also here.
12 years ago
Vladimír Vondruš
3be4422ded
Shaders: using attachShaders() everywhere.
12 years ago
Vladimír Vondruš
bc81eb92d8
Added AbstractShaderProgram::attachShaders().
...
Convenience overload to attachShader(), allowing the user to specify
more than one shader at once. Just a complement to initializer-list
versions of compile() and link(), but without any performance
difference.
12 years ago
Vladimír Vondruš
fb51517709
Audio: fix compilation on OSX.
...
Broken since c7b23a884f (missing include).
Thanks to @chris-chambers for the hint.
12 years ago
Vladimír Vondruš
a8817674ba
modules: no backticks in CMake documentation.
...
That is only for Doxygen. Also improved the wording a bit.
12 years ago
Vladimír Vondruš
f74e68ec4e
modules: bail out with proper message if Magnum is not found.
...
Currently it failed on "error when trying to open configure.h", which is
NOT a helpful message at all. Now we check for existence of the include
dir before trying to open the file, thus failing with proper "Could NOT
find Magnum" message.
12 years ago
Vladimír Vondruš
dfb697dd0c
CMake 3.0 compatibility: use AppleClang for Clang on OS X.
...
Different name because of different version numbers. Also we need to
stay compatible with <3.0, which defines it as "Clang" only.
12 years ago
Vladimír Vondruš
23dd34e0f4
TgaImporter: use better-defined type.
...
Commit mosra/corrade@9485ef7effd6c8241e03982c53e8fabfe260b525 broke
this, apparently the compiler can't decide which overload to select when
a type has implicit conversion to another type which is then supported
by both Debug and std::ostream operator<<. Working around this for now as
it is the only case, hopefully we won't run into something similar later.
12 years ago
Vladimír Vondruš
a35ce64752
MeshTools: make compile() actually working with indexed meshes.
...
I was drunk out of my mind. Apparently didn't test once.
12 years ago
Vladimír Vondruš
50897e0dc0
Reset also viewport to default framebuffer on named FB destruction.
...
In text example the scene was rendered with viewport used for
distance field computation, which is wrong. Also amazingly enough that
worked until now.
12 years ago
Vladimír Vondruš
dc980454fc
TextureTools: fix shader compilation.
...
Amazingly enough this worked until now. Maybe more strict NVidia GLSL
compiler?
12 years ago
Vladimír Vondruš
fc5d86dd09
package: added Android Jenkins CI configuration.
12 years ago
Vladimír Vondruš
3df0d63a1a
Platform: oh god what have I done.
12 years ago
Vladimír Vondruš
c74ccc22f3
Platform: fix AndroidApplication compilation.
...
Using type before it was defined. Blind changes FTW!
12 years ago
Vladimír Vondruš
87c411f841
ObjImporter: fix compilation on Android.
12 years ago
Vladimír Vondruš
ee21b75b15
Shaders: fix build on ES3.
...
I'm starting to hate these rushed prerelease fixes.
12 years ago
Vladimír Vondruš
390764f795
package: removed MinGW32 Jenkins CI configuration.
...
Can't test it on my system anymore and it would only be getting stale
and more useless over time.
12 years ago
Vladimír Vondruš
21d3db82df
Doc++
12 years ago
Vladimír Vondruš
545ef14071
doc: documented all command-line utilities.
12 years ago
Vladimír Vondruš
2d6aa06df4
Improvements in utility help texts.
12 years ago
Vladimír Vondruš
c3df68aa28
doc: make section headers in class/function docs have sane size.
...
Similar reasoning as in mosra/corrade@93b8308bc6a4def9d4564a6cea236cabe54fe063.
12 years ago
Vladimír Vondruš
7e4143f86b
Proper default plugin dir for debug on multi-configuration buildsystems.
...
Similar logic to what we expose to the outside world.
12 years ago
Vladimír Vondruš
8cea818d43
Add back the missing MAGNUM_PLUGINS_INSTALL_DIR variable.
...
Caused the utilities to have empty plugin dir by default. Broken since
the debug/release library separation.
12 years ago
Vladimír Vondruš
3442556ee0
Minor code reorganization.
12 years ago
Vladimír Vondruš
644556bd85
TextureTools: configurable plugin dir for distancefieldconverter utility.
...
Similarly to magnum-fontconverter utility.
12 years ago
Vladimír Vondruš
66af4edd7f
Text: actually make use of plugin-dir parameter in fontconverter utility.
...
What the hell.
12 years ago
Vladimír Vondruš
41b892296b
Text: unified help message for plugin names for all utilities.
12 years ago
Vladimír Vondruš
a97d7bbdae
Text: renamed configure.h.cmake to fontconverterConfigure.h.cmake.
...
Reason is that the configure file is not for whole Text library, but
only for the magnum-fontconverter utility. Rename it so it is more
clear.
12 years ago
Vladimír Vondruš
48bb59626b
Oh Doxygen you so predictable.
12 years ago