Vladimír Vondruš
0c612dee3d
FindMagnum: provide MAGNUM_APPLICATION_{LIBRARIES,INCLUDE_DIRS} aliases.
...
Convenience aliases to variables related to one particular *Application
component, defined if and only if exactly one *Application component is
requested and found. Meant to be used to simplify porting when each
platform uses different *Application library.
13 years ago
Vladimír Vondruš
b9cee8e014
Support for ES2 extension NV_texture_border_clamp.
13 years ago
Vladimír Vondruš
549b1466fc
Support for ES2 extension ANGLE_depth_texture.
13 years ago
Vladimír Vondruš
91531d5f53
Support for ES2 extension NV_framebuffer_blit.
13 years ago
Vladimír Vondruš
8f37ebe9cf
Better usage of external OpenGL headers.
...
Moved them to `OpenGL/` subdirectory, allowing them to be included
explicitly with e.g. <OpenGL/GLES2/gl2ext.h> overriding the system
<GLES2/gl2ext.h> header. Our versions of the headers are thus now
explicitly included in `OpenGL.h`, but they can be also included using
no-prefix path if no system version is available. It might break some ES
platforms, they will be fixed when found.
The headers are now installed into `Magnum/OpenGL` (not into any
artificial `external` directory). Now also installing GLES2 headers for
OpenGL ES 2 (previously ES3 headers were installed for both ES2 and
ES3).
13 years ago
Vladimír Vondruš
e96503810a
Updated external OpenGl headers, added missing `GLES2/gl2platform.h`.
13 years ago
Vladimír Vondruš
86f30b6b69
Clarified AbstractImage Format and Type enum documentation.
...
Each value is now documented if it can be used for framebuffer reading
or texture data only.
13 years ago
Vladimír Vondruš
f56ebd4507
Fix OES_required_internalformat-related enums in AbstractTexture.
...
Some values are present in ES2 itself, thus no need to use the ones
defined by the extension for ES1.
13 years ago
Vladimír Vondruš
adde9154cd
Doc++
13 years ago
Vladimír Vondruš
78b52627c4
Platform: fix warning about undeclared function.
13 years ago
Vladimír Vondruš
d6d69c40ad
Fix comma at the end of enumeration list.
...
I know C99/C++11 allows this, but for me this is as bad as wrong
whitespaces or superfluous `;` characters.
13 years ago
Vladimír Vondruš
fa7665d63e
Platform: no need to include GL headers just for GL_TRUE.
...
It is, always was and always will be defined as 1, so why bother.
13 years ago
Vladimír Vondruš
b7771de0a3
Set both TARGET_NACL and MAGNUM_TARGET_NACL in CMakeLists.
...
Being consistent with all other options, all of them are both
unprexfixed and prefixed in CMake (and then only prefixed versions are
saved into `magnumConfigure.h` file).
13 years ago
Vladimír Vondruš
48bb1f1cb0
GCC 4.4 compatibility: workarounds for strict-aliasing fascism.
...
These four cover most (but not all) warnings when compiling in Release
mode. Now all the tests pass, but the warnings signalize that something
could go bad somewhere else. However, only one drastic solution comes to
my mind at this time -- disabling strict aliasing completely
`-fno-strict-aliasing`. Don't know performance impact of that.
13 years ago
Vladimír Vondruš
1505b90adc
Platform: mention CORRADE_GCC4[45]_COMPATIBILITY flags in magnum-info.
13 years ago
Vladimír Vondruš
476418d5eb
Merge branch 'master' into compatibility
...
Conflicts:
src/Test/SwizzleTest.cpp
13 years ago
Vladimír Vondruš
f490fc8149
DebugTools: no need to prefix the test so much.
13 years ago
Vladimír Vondruš
83bda8bbe6
Math: fixed test for denormalize<UnsignedLong, long double>().
...
Amazing what single forgotten literal can do.
13 years ago
Vladimír Vondruš
35eb876303
Various other compilation fixes for OpenGL ES target.
13 years ago
Vladimír Vondruš
ba0f56fa51
No need to use Double type in tests so extensively.
...
Makes porting to OpenGL ES easier.
13 years ago
Vladimír Vondruš
b28261d269
Math: fix compilation of tests with OpenGL ES.
...
Double precision is not supported there, mention that for skipped test
cases.
13 years ago
Vladimír Vondruš
14c6790701
Shaders: set default values for VertexColorShader uniforms.
...
Default value for matrix uniform would be zero uniform which would cause
"black screen of death".
13 years ago
Vladimír Vondruš
127910d537
Shaders: minor tweaks.
...
Non-matching number of opening and closing braces confused editors with
code folding feature.
13 years ago
Vladimír Vondruš
be5c872c8a
Math: fixed two typos in the test.
...
They resulted in fact that the test case didn't actually test anything.
Spotted by Clang.
13 years ago
Vladimír Vondruš
cb7a0f6404
GCC 4.5 compatibility: can't list-initialize array of classes.
...
Awesome bug. In GCC 4.6 it throws plenty of ungoogleable `-pedantic`
warnings and in GCC 4.5 it fails directly with "error: bad array
initializer". Fallback to initialization using for-cycle.
Worked around that in 4.6 by disabling `-pedantic` warnings, must be
done this way on 4.5 & 4.4. Hopefully the performance won't be harmed
too much.
13 years ago
Vladimír Vondruš
287adb0e8c
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
66a3f1177d
GCC 4.6 compatibility: disable `-pedantic` warning.
...
The compiler doesn't like list-initialization of array of classes
(RectangularMatrix constructors). It is perfectly legal C++11 and both
GCC 4.7 and Clang accept it without notice.
13 years ago
Vladimír Vondruš
fcb756e42a
Revert "GCC 4.6 compatibility: can't list-initialize array of classes."
...
It does too much harm on GCC 4.6 (all these constexpr constructors are
not constexpr now). We can disable that `-pedantic` warning for GCC 4.6
only and live with that.
This reverts commit 2d92d497d9 .
13 years ago
Vladimír Vondruš
7108db4f04
GCC 4.4 compatibility: no std::unordered_map::reserve() here.
13 years ago
Vladimír Vondruš
125e01f62e
GCC 4.4 compatibility: no std::declval here.
13 years ago
Vladimír Vondruš
e7f81160ac
GCC 4.4 compatibility: can't default move constructor.
...
Not sure why, similar issue to defaulted move assignment in GCC 4.5.
13 years ago
Vladimír Vondruš
e48edf291d
GCC 4.4 compatibility: various lack-of-auto-conversion issues.
13 years ago
Vladimír Vondruš
0871bc7955
GCC 4.4 compatibility: various initializer list issues.
13 years ago
Vladimír Vondruš
36ac4de5c4
GCC 4.4 compatibility: no explicit conv op on Unit and related issues.
...
Using Deg/Rad on GCC 4.4 will be bigger PITA than I thought.
13 years ago
Vladimír Vondruš
10440bf503
GCC 4.4 compatibility: no explicit conversion operators.
13 years ago
Vladimír Vondruš
46168cabb1
GCC 4.5 compatibility: no constexpr here.
13 years ago
Vladimír Vondruš
bafe501cbc
GCC 4.5 compatibility: can't default operator=().
...
Not sure why, as the implementation is trivial.
13 years ago
Vladimír Vondruš
5ad38775b0
GCC 4.5 compatibility: various constexpr issues.
13 years ago
Vladimír Vondruš
23d51c9e36
GCC 4.5 compatibility: can't default some functions in class body.
13 years ago
Vladimír Vondruš
777f67ab9f
GCC 4.5 compatibility: can't use initializer list here.
...
Don't know why.
13 years ago
Vladimír Vondruš
79e79eee7e
GCC 4.5 compatibility: no forward declarations for enums.
13 years ago
Vladimír Vondruš
74ba846028
GCC 4.5 compatibility: no range-based for.
13 years ago
Vladimír Vondruš
509ffa21c8
Merge branch 'master' into cnn
13 years ago
Vladimír Vondruš
dd788285dc
Various code cleanup.
13 years ago
Vladimír Vondruš
39eed3f7d6
Code cleanup: shorter angle initializers.
13 years ago
Vladimír Vondruš
38ec076eda
Minor code cleanup (unused parameters).
13 years ago
Vladimír Vondruš
e76543703f
Trade: don't define MeshData constructor etc. in header.
...
The class has heavy construction/destruction due to all the vectors.
13 years ago
Vladimír Vondruš
5190ff74e6
Merge branch 'master' into compatibility
...
Conflicts:
src/CMakeLists.txt
src/Context.cpp
src/DebugTools/Profiler.h
src/DimensionTraits.h
src/Magnum.h
src/Math/Math.h
src/Math/MathTypeTraits.h
src/Math/Matrix4.h
src/Mesh.cpp
src/Mesh.h
src/MeshTools/CMakeLists.txt
src/MeshTools/CompressIndices.cpp
src/MeshTools/FlipNormals.cpp
src/MeshTools/Test/TipsifyTest.h
src/MeshTools/Tipsify.cpp
src/MeshTools/Transform.h
src/Physics/Implementation/DebugRenderer.h
src/Profiler.cpp
src/SceneGraph/FeatureGroup.h
src/SceneGraph/Object.hpp
src/SceneGraph/SceneGraph.h
src/SizeTraits.h
src/Test/SwizzleTest.cpp
13 years ago
Vladimír Vondruš
5db0861b82
Trade: don't define AbstractImporter constructors in header.
...
They are heavier than it seems due to inheritance and virtual
functions.
13 years ago
Vladimír Vondruš
4bb919e138
Don't define Query constructors & destructors in header.
...
AbstractQuery is virtual class, thus the constructors & destructors are
heavier than it looks.
13 years ago