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š
e48edf291d
GCC 4.4 compatibility: various lack-of-auto-conversion issues.
13 years ago
Vladimír Vondruš
5ad38775b0
GCC 4.5 compatibility: various constexpr issues.
13 years ago
Vladimír Vondruš
dd788285dc
Various code cleanup.
13 years ago
Vladimír Vondruš
7b140db3ed
Properly test swizzle() constexpr.
...
Removed constExpressions() test case and merged it to others, reducing
duplicate code.
13 years ago
Vladimír Vondruš
a0b83edd2b
Relicensing to MIT/Expat license, part 4: CMake and documentation files.
...
They didn't contain license header before, but I think adding it also
there wouldn't do any harm. Documentation is also integral part of the
codebase.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
231f3277ab
Adapted to Corrade changes.
...
Allowing to instantiate Trade::AbstractImporter subclasses directly
without plugin manager.
13 years ago
Vladimír Vondruš
2d2d1c07f4
Using new type aliases in whole root Magnum namespace.
13 years ago
Vladimír Vondruš
9464e805e1
Use {} instead of "".
...
Calls default std::string constructor instead of converting from const
char*, might possibly save unneeded allocation.
13 years ago
Vladimír Vondruš
3379e6c794
Ability to send less than all attribute components to the shader.
...
Remaining unspecified components are set to 0, 0, 1, according to spec.
Also cleaned up and simplified the internals, added debug output
operators for attribute component count and types and tested the whole
thing.
13 years ago
Vladimír Vondruš
a220289067
Using Deg for Color hue.
13 years ago
Vladimír Vondruš
e58962dc43
Don't use fully qualified Corrade::Utility::Debug when not needed.
13 years ago
Vladimír Vondruš
5707a138d1
Print also resource key when attempting to overwrite final resource.
13 years ago
Vladimír Vondruš
688251add9
Removing IndexedMesh, part 1: moved enums and related stuff to Mesh.
13 years ago
Vladimír Vondruš
8ce184ef7b
Debug output for AbstractImage::Format and AbstractImage::Type enums.
14 years ago
Vladimír Vondruš
b13d8644b4
Replaced scalar normalization code in Color with Math::[de]normalize().
14 years ago
Vladimír Vondruš
2f2d4a4dfd
Removed Magnum::Type and related functionality.
...
The enum is finally completely reimplemented for specific cases with
proper values (Mesh attribute types, index types, pixel types, ...). The
rest currently remaining in TypeTraits.h is used only in Mesh and
AbstractShaderProgram, probably will be moved there.
14 years ago
Vladimír Vondruš
cade175304
Math: finally implemented precise signed/unsigned normalization.
...
(De)normalization from/to [0, 1] for unsigned types and from/to [-1, 1]
for signed types. -1.0 is always denormalized to min+1.
Also updated some tests for Color, as they depended on previous
imprecise implementation.
14 years ago
Vladimír Vondruš
3b5b7c71d4
Debug output and configuration value handler for IndexedMesh::IndexType.
...
Mostly copy of what was already done for Type enum.
14 years ago
Vladimír Vondruš
fcb8a7b768
Got rid of header files in tests.
...
They have no practical use and they only bloat codebase size and add
maintenance burden.
14 years ago
Vladimír Vondruš
ef779e50b2
Split out lightweight base of swizzle() function to Math namespace.
...
Will make use of SIMD instructions and can be used elsewhere in Math.
14 years ago
Vladimír Vondruš
dd8eb6bc02
Removed one swizzle() overload.
...
It is less efficient because of all that runtime computation and can't
be made to use SIMD operations so why bother with it at all.
14 years ago
Vladimír Vondruš
47c0a7456c
Adapted to Corrade changes.
...
Removing of another <*stream> #include leads to more compilation time
saving, now from ~5:12 to ~4:55. Another compilation time improvements
will now be possible only by using Clang's modules, I don't know where
to optimize further (except for getting rid of <sstream> in tests).
14 years ago
Vladimír Vondruš
0f889369f4
No `using namespace std` anywhere.
...
Also added missing std:: prefix to remaining cases of std::size_t,
std::[u]int[0-9]+_t, std::sin() etc., std::exit().
14 years ago
Vladimír Vondruš
c319962d6e
Adapted to Corrade changes.
14 years ago
Vladimír Vondruš
ae013effff
Adapted to Corrade changes.
...
Optimalizations in Corrade::TestSuite and Corrade::Utility::Debug leaded
to significant reduction of compilation time - on my machine it was
~5:38 before with building of unit tests enabled, now only ~5:00.
14 years ago
Vladimír Vondruš
43f6dbc72d
Using integer vector aliases all over the place.
14 years ago
Vladimír Vondruš
f27fe75e4a
New class Array, usable instead of Vector for non-numeric purposes.
14 years ago
Vladimír Vondruš
12817b505d
Test vector component accessors.
...
Really. To be sure. Forever.
14 years ago
Vladimír Vondruš
67f2e0fc7f
GCC 4.6 compatibility is now handled by Corrade.
14 years ago
Vladimír Vondruš
35d8905790
Debug output and configuration parser for Mesh::Primitive.
14 years ago
Vladimír Vondruš
ca0bbe79fb
Debug output and configuration parser for Type enum.
14 years ago
Vladimír Vondruš
f184c6f005
Using real class for testing configuration value parsing.
14 years ago
Vladimír Vondruš
2fc010263d
Class AbstractResourceLoader.
...
Base for (a)synchronous resource loading automatically trigerred from
ResourceManager.
14 years ago
Vladimír Vondruš
d688cf2efc
ResourceManager: new Loading and NotFound data states.
...
Updated, cleaned up and extended unit tests.
14 years ago
Vladimír Vondruš
72145e1339
Debug output operator for ResourceState enum.
14 years ago
Vladimír Vondruš
1ac9041680
ResourceManager: stateless test.
...
It now doesn't reuse manager instance among test cases, making it more
failproof.
14 years ago
Vladimír Vondruš
1e2720eeb7
Explicit template instantiation for common matrix and vector functions.
...
Common types used in OpenGL have now explicit template instantiation for
debug operators and configuration value parsers/readers.
14 years ago
Vladimír Vondruš
c1cf94fb46
Using fixed-size integer types also everywhere else.
...
It solves issues with int/long int/long long int ambiguity, which is
good.
14 years ago
Vladimír Vondruš
0145343d59
Pedantic: using std::size_t instead of size_t from C compat headers.
14 years ago
Vladimír Vondruš
949b092a60
Support for '0' and '1' constants in swizzle() functions.
...
Also deconfused related documentation a bit.
14 years ago
Vladimír Vondruš
f637106727
Initial version of resource manager.
14 years ago
Vladimír Vondruš
4d46fd12cf
Returning references from vector component accessors.
...
Before it has to be done with overly verbose and cumbersome Java-style:
Vector4 vec;
vec.setX(vec.x() + 5);
vec = Vector4(vec.xyz()*2, vec.w());
Now it can be done this way:
vec.x() += 5;
vec.xyz() *= 2;
14 years ago
Vladimír Vondruš
fa774370aa
GCC 4.6 doesn't support template aliases.
14 years ago
Vladimír Vondruš
5f8890d558
Using CORRADE_GCC*_COMPATIBILITY instead of MAGNUM_GCC*_COMPATIBILITY.
...
It's pointless to have Corrade with compatibility enabled and Magnum
without, because even if it somewhat compiles, it won't link together.
Moreover, explicitly setting compatibility in Magnum while Corrade has
it already enabled is only maitenance burden.
14 years ago
Vladimír Vondruš
0e74c3847d
Support for storing matrices and vectors in configuration.
14 years ago
Vladimír Vondruš
d5d4215a45
Color: test for debug operators.
14 years ago
Vladimír Vondruš
e3ee7b487b
Moved Object, Scene and Light to separate SceneGraph library.
14 years ago