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š
74459a4125
Removed remains of Qt4 from CMakeLists.
14 years ago
Vladimír Vondruš
2aba9b98fa
Got rid of Qt's QtTest in favor of Corrade's TestSuite.
...
Also added check() function to AUR Git PKGBUILD.
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š
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š
6cd334d9c3
Anonymized unused function parameter.
14 years ago
Vladimír Vondruš
e75db8aede
Don't use C-style casts.
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š
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š
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š
7e62a19401
Don't try to find OpenGL ES more times than necessary.
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š
92aab9753d
Fixed compilation of EglContext.
...
Introduced in 59ca55abe0 , we need 'None'
after all.
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š
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
Vladimír Vondruš
9b642413bf
Doc: cleaned up something very ancient.
14 years ago
Vladimír Vondruš
65289db3d5
Using Set for Framebuffer::BlitMask.
14 years ago
Vladimír Vondruš
c150f92d4a
Added complement operator to Set.
14 years ago
Vladimír Vondruš
a7b9407674
Using explicit conversion operator instead of Set::toUnderlyingType().
14 years ago
Vladimír Vondruš
2a474e9005
Set::operator&= cannot be const.
14 years ago
Vladimír Vondruš
3cd991d04d
Forgot hiding also Mesh function implementation from documentation.
14 years ago
Vladimír Vondruš
92b4429e2c
New class ImageWrapper.
14 years ago
Vladimír Vondruš
ba4dec8ec0
Use array delete operator for deleting array.
14 years ago
Vladimír Vondruš
fa9836756a
SizeBasedCall: unneeded templated constructor.
14 years ago
Vladimír Vondruš
24e4f819df
Unneeded constructor parameter in TipsifyTest.
14 years ago
Vladimír Vondruš
9d31231471
Pedantic: first inline, then constexpr, then static.
...
Moreover all constexpr functions are meant to be inline here, mark them
as such.
14 years ago
Vladimír Vondruš
3824190a50
Fixed comma at the end of enumeration list (GCC 4.5 noticed it).
14 years ago
Vladimír Vondruš
c89ceea72f
Renamed configureMagnum -> magnumConfigure.
14 years ago
Vladimír Vondruš
6f65dd972c
Renamed visibility configuration headers to resemble library names.
14 years ago
Vladimír Vondruš
29723d0975
Fixed texture subdata setters.
...
Functions for setting 2D subimage of 3D texture / 1D subimage of 2D
texture introduced in 728ddb19a3 weren't
probably tested at all, as they are ambiguous overloads.
Now using std::enable_if, which works.
14 years ago
Vladimír Vondruš
6b55ca96f3
Barebone X/EGL context.
14 years ago