Vladimír Vondruš
7669271b56
EglContext: forgot to revert this back.
14 years ago
Vladimír Vondruš
9d7b3d6d6b
FindMagnum: don't expose internal ${COMPONENT}_INCLUDE_DIR to users.
14 years ago
Vladimír Vondruš
9ea8efe73b
EglContext: Handle window closing.
...
This is the most fucked up way to so fucking simple thing.
14 years ago
Vladimír Vondruš
6c964d703c
EglContext: Handle window resizing.
14 years ago
Vladimír Vondruš
d92df0777e
EglContext: Not sure what this did, but this doesn't affect anything.
...
Was getting out-of-sync with INPUT_MASK, so setting it to 0.
14 years ago
Vladimír Vondruš
ceb116c41c
EglContext: keyboard and mouse handling.
14 years ago
Vladimír Vondruš
b7df327466
EglContext: Show window on exec(), make the context current only once.
14 years ago
Vladimír Vondruš
54f3dc3d99
Small cleanup, fixed small typo.
14 years ago
Vladimír Vondruš
95c2b05a45
...and install new Swizzle.h. Damn.
14 years ago
Vladimír Vondruš
cedf9276fa
Don't install removed Set.h.
14 years ago
Vladimír Vondruš
fff22d0822
New function for vector component swizzling.
14 years ago
Vladimír Vondruš
079a7be67d
Disable non-constexpr one-parameter constructor for Vector<1, T>.
...
It was clashing with the default "initializer-list" constructor, which
is constexpr. This constructor is also explicit, which makes it
impossible to e.g. return Vector<1, T> from function without explicitly
specifying name , while for Vector<2, T> it works:
return {1, 2}; // works for Vector<2, int>
return {1}; // doesn't work for Vector<1, int>
14 years ago
Vladimír Vondruš
b30d1d96c5
Moved Set utility class to Corrade, since it's now C++11 enabled.
14 years ago
Vladimír Vondruš
f3c05e9854
Coding style guide is now shared with Corrade.
14 years ago
Vladimír Vondruš
f94c378fc5
Updated toolchains submodule.
14 years ago
Vladimír Vondruš
74459a4125
Removed remains of Qt4 from CMakeLists.
14 years ago
Vladimír Vondruš
450100afbe
Revert "Added lost parameter to FPHSA in FindMagnum.cmake."
...
It shouldn't probably be there.
This reverts commit 64b6c6d6b5 .
14 years ago
Vladimír Vondruš
e3b21c57db
Improved formatting of FindMagnum.cmake documentation.
14 years ago
Vladimír Vondruš
b3e3d8718e
Updated FindCorrade.cmake from Corrade repository.
14 years ago
Vladimír Vondruš
27e1dce533
Got rid of Qt's QtTest in favor of Corrade's TestSuite.
...
Now we can use CORRADE_COMPARE() almost exclusively for comparing
Vector, Matrix instances and all containers from STL. Tests running time
for all 31 tests is now around 0.1 sec instead of two seconds like
before.
Disabled compilation of all benchmarks, because TestSuite cannot handle
them yet.
PKGBUILD from AUR now can shamelessly use check() function without
unnecessary dependencies.
14 years ago
Vladimír Vondruš
64b6c6d6b5
Added lost parameter to FPHSA in FindMagnum.cmake.
...
Lost during rework in e8403c5123 .
14 years ago
Vladimír Vondruš
db8cb9119b
Treat Corrade as real, not some internal dependency in #includes.
14 years ago
Vladimír Vondruš
f27e6aa0ff
Revert "Disabled RTTI and exceptions."
...
RTTI causes linking problems in depending projects and it's not
desirable to force them all to not use it. Exceptions are used by
the new TestSuite in Corrade, so they must be also enabled.
This reverts commit eb82cb462a .
Conflicts:
src/CMakeLists.txt
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š
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