Vladimír Vondruš
2791bd8523
Merge branch 'master' into compatibility
14 years ago
Vladimír Vondruš
5bef02f46b
Fixed compiler warnings for EglContext.
...
X11 macros are a mess with a lot of C-style casts, disabled the warnings
for this file. Also anonymized unused constructor parameters.
14 years ago
Vladimír Vondruš
5d1ead8cde
Forgot to install also magnumCompatibility.h header.
14 years ago
Vladimír Vondruš
7ab72cafd8
Merge branch 'master' into compatibility
...
Conflicts:
src/CMakeLists.txt
src/MeshTools/CMakeLists.txt
14 years ago
Vladimír Vondruš
7e0b8601f7
Added MAGNUM_*_INCLUDE_DIRS for all modules too.
...
Some modules need it (Sdl2Context), some not.
14 years ago
Vladimír Vondruš
39b4f6873f
Fixed issue with depth buffer not cleared.
...
Introduced in 51aa660f6c , typo when
refactoring the code.
14 years ago
Vladimír Vondruš
4594781d74
Warn about float -> double promotion.
14 years ago
Vladimír Vondruš
8fec5075a1
Enable some more warnings.
14 years ago
Vladimír Vondruš
8b3e065d52
Don't use == when comparing floating point values.
14 years ago
Vladimír Vondruš
27dad83dbc
Don't pretend we are working with floats when they are doubles.
14 years ago
Vladimír Vondruš
45d1cb1225
Anonymized unused function parameters.
14 years ago
Vladimír Vondruš
8a85e764ab
Doc: updated Coding Style.
...
* Links to LLVM and Qt guidelines
* Forbidden features
* Assertions
* Keyword order
14 years ago
Vladimír Vondruš
eb82cb462a
Disabled RTTI and exceptions.
...
They wouldn't probably be used at all (RTTI is too heavy for dynamic
cast and has too few features to be used for reflection) and they break
C++ rule "you don't pay for what you don't use".
14 years ago
Vladimír Vondruš
8f008c53c5
Support for 2D transformations in addition to 3D in Matrix classes.
14 years ago
Vladimír Vondruš
e034b11718
Excluding benchmarks from CTest run.
...
They took too much time without doing anything useful with measured
time (regression testing).
14 years ago
Vladimír Vondruš
fd78db3f47
Plural versions of *_INCLUDE_DIR and *_LIBRARY FindMagnum variables.
...
It took me years to fully accept this CMake policy. Now it's enough to
specify ${MAGNUM_LIBRARIES} instead of all those Corrade, OpenGL /
OpenGL ES, GLEW etc. dependencies (heh).
14 years ago
Vladimír Vondruš
daaf89a1a1
Added (explicit) operator bool to Set.
...
So things like if(!(set & Enum::Value)) are possible.
14 years ago
Vladimír Vondruš
fd0b01510c
Removed superfluous operators from Set class.
...
Moreover returning base type from & operator is bad, really bad: if it
results in 0, how it will map to original enum?
14 years ago
Vladimír Vondruš
000ac51583
Forgot to install visibility header for Shaders.
...
Hope this is the last bug caused by recent modularization.
14 years ago
Vladimír Vondruš
bf649d3bb8
Follow CMake coding guidelines in FindMagnum.cmake.
14 years ago
Vladimír Vondruš
3d750c5e7d
Don't check if OpenGL ES 2 was found when looking for EglContext.
...
Missed in 7e62a19401 .
14 years ago
Vladimír Vondruš
9f59288253
Checking whether Magnum was build for OpenGL ES in FindMagnum.cmake.
14 years ago
Vladimír Vondruš
1b989aa0cd
Don't use FindMagnum.cmake for populating *_INSTALL_DIR variables.
...
It's overly complicated to hack around all find_* algorithms just to
find some dependencies and set three variables.
14 years ago
Vladimír Vondruš
3a4041ce69
Updated FindMagnum.cmake documentation.
14 years ago
Vladimír Vondruš
7e62a19401
Don't try to find OpenGL ES more times than necessary.
14 years ago
Vladimír Vondruš
3c1c3d4668
Document Doxygen's inability to create full path, if it doesn't exist.
14 years ago
Vladimír Vondruš
6bd43a9f95
Modularization of building and installation process.
...
By default everything except contexts is built, features can be
enabled/disables using WITH_* CMake options.
14 years ago
Vladimír Vondruš
5c70b482e7
Fail when Qt4 is not found and BUILD_TESTS is set to true.
...
It's up to user to disable building of tests if Qt4 is not found,
instead of failing silently without user noticing it.
14 years ago
Vladimír Vondruš
92aab9753d
Fixed compilation of EglContext.
...
Introduced in 59ca55abe0 , we need 'None'
after all.
14 years ago
Vladimír Vondruš
75a6030205
(Incomplete) coding style for CMake code.
14 years ago
Vladimír Vondruš
6add425bb3
Cleaned up CMakeLists.txt.
14 years ago
Vladimír Vondruš
59ca55abe0
Undefine None from Xlib.h to avoid conflicts (e.g. in Framebuffer).
14 years ago
Vladimír Vondruš
d56270835e
Matrix3 code cleanup.
...
Don't assume the values are float, use T(0) instead of 0.0f.
14 years ago
Vladimír Vondruš
4b352e43f0
Doc: @todo++
14 years ago
Vladimír Vondruš
6ae92d5056
Matrix4 code cleanup
...
* Don't assume the values are float, use T(0) instead of 0.0f.
* Explicitly specify templated type.
14 years ago
Vladimír Vondruš
6b8a901b90
CMake < 2.8.8 compatibility.
...
* No OBJECT library targets - compilation with unit tests will take a
lot more time.
* No HANDLE_COMPONENTS in FindPackageHandleStandardArgs - added copy of
the file (and its dependencies) from CMake 2.8.8.
14 years ago
Vladimír Vondruš
2b3a2c4c03
GCC 4.4 compatibility: workaround for initializer list.
14 years ago
Vladimír Vondruš
fa55d91d2f
GCC 4.4 compatibility: lambda functions aren't supported yet.
14 years ago
Vladimír Vondruš
544eb56c04
GCC 4.4 compatibility: std::unordered_map::reserve() doesn't exist yet.
14 years ago
Vladimír Vondruš
4e847b7fcc
GCC 4.4 compatibility: worked around "Sorry, not implemented" error.
...
New function declaration syntax for deduced return types doesn't work
here fully yet.
14 years ago
Vladimír Vondruš
96bf65ff24
GCC 4.4 compatibility: missing headers.
14 years ago
Vladimír Vondruš
9ce284536e
Initial work for GCC 4.4 compatibility.
...
GCC 4.4 compatibility also enables GCC 4.5 compatibility.
14 years ago
Vladimír Vondruš
81cdc339f7
GCC 4.5 compatibility: Probably can't use initializer list here.
14 years ago
Vladimír Vondruš
f07c922051
GCC 4.5 compatibility: worked around "Sorry, not implemented" error.
...
SizeBasedCall is internally used only in MeshTools::compressIndices(),
modified the function to not use variadic templates, only the one
parameter used in compressIndices().
14 years ago
Vladimír Vondruš
a34c006ca5
GCC 4.5 compatibility: removed range-based for cycles.
14 years ago
Vladimír Vondruš
af915b2716
GCC 4.5 compatibility: GCC badly optimizes Matrix4::rotation*().
...
Redone in a way that the unit test passes.
14 years ago
Vladimír Vondruš
b3182b9e3f
GCC 4.5 compatibility: missing headers.
14 years ago
Vladimír Vondruš
ee62d39e6f
Initial work for GCC 4.5 compatibility.
...
GCC 4.5 doesn't know constexpr keyword and nullptr. As all constexpr
functions are here inline, it can be done with a simple macro.
14 years ago
Vladimír Vondruš
d5be1b43a6
OpenGL ES 2: GLchar is not defined on BeagleBoard/Ångström Linux 2011.3.
...
Added the typedef manually, shouldn't clash with the "official", if
present.
14 years ago
Vladimír Vondruš
51aa660f6c
Decoupled framebuffer operations from Camera class.
...
Now it is possible to render without using any Object, Scene or Camera
classes. Framebuffer class now manages features, clearing and setting
viewport. Added position parameter to setViewport(), ability to clear
specified features in clear().
14 years ago