Vladimír Vondruš
fcd48a50f5
package: added Clang PKGBUILD.
13 years ago
Vladimír Vondruš
1188e08034
Moved development PKGBUILDs to `package/archlinux`.
...
They cluttered the root project dir way too much.
13 years ago
Vladimír Vondruš
efa1647571
package: Jenkins CI configuration.
13 years ago
Vladimír Vondruš
694c250e50
Use plural form also for CORRADE_UTILITY_LIBRARIES.
13 years ago
Vladimír Vondruš
01194d4316
Rename also classes and files for GL tests.
13 years ago
Vladimír Vondruš
e49be200d4
Properly fix linking to libdl.
...
Use CORRADE_PLUGINMANAGER_LIBRARIES instead of
CORRADE_PLUGINMANAGER_LIBRARY when linking core Magnum library.
This reverts commit 80263eb318 and
6dbe31f0f0 .
13 years ago
Vladimír Vondruš
a156593a89
Hopefully finally fixed constexpr issues in ColorTest with GCC 4.6.
...
Follow-up to 80b61be485 , I am too lazy to
test it before commiting.
13 years ago
Vladimír Vondruš
6dbe31f0f0
Link CORRADE_PLUGINMANAGER_LIBRARIES to all plugin-enabled executables.
...
Should fix another bunch of static build errors.
13 years ago
Vladimír Vondruš
3098ad2650
Audio: missing inline.
...
Caused static build to fail on multiple definitons.
13 years ago
Vladimír Vondruš
80263eb318
Trade: explicitly link tests to CORRADE_PLUGINMANAGER_LIBRARIES.
...
Compilation of tests in static build fails with missing
reference to dlclose().
13 years ago
Vladimír Vondruš
f163009f45
TgaImporter: ColorFormat::Luminance is available only on ES2.
13 years ago
Vladimír Vondruš
80b61be485
Fixed constexpr issues in ColorTest under GCC 4.6.
13 years ago
Vladimír Vondruš
1a608a5b7e
TgaImporter: fix test on ES2.
13 years ago
Vladimír Vondruš
121d3a91bc
MagnumFont: fixed compilation with Clang.
13 years ago
Vladimír Vondruš
efd5aa89ac
Fixed BufferGLTest on ES2 non-deprecated build.
...
Combinatorial explosion of build problems.
13 years ago
Vladimír Vondruš
60a064c920
Ensure that all GL tests have `*GLTest` suffix.
...
Makes it easier to selectively run GL/non-GL tests.
13 years ago
Vladimír Vondruš
9a387a7469
Fixed ColorTest on ES.
13 years ago
Vladimír Vondruš
28032a3909
Doc++
13 years ago
Vladimír Vondruš
4059bd752f
Math: added minmax() and Vector2::minmax().
...
No Vector<size, T> and std::initializer_list versions yet, as the
algorithm for it is pretty complicated and I'm not sure that they will
be used frequently enough to deserve their existence.
13 years ago
Vladimír Vondruš
34a04ae8ae
Math: minor test cleanup.
13 years ago
Vladimír Vondruš
f1ac932660
Extract Buffer::Usage enum out of Buffer class.
...
Buffer usage is used as parameter in many functions, e.g. in
*Framebuffer::read() and *Texture::image(), but they are rather seldom
used and including whole Buffer.h file just for one enum is just
overkill. The old Buffer::Usage is now alias to BufferUsage, it is
marked as deprecated and will be removed in future release.
13 years ago
Vladimír Vondruš
8dfd6fd4fc
Trade: convenience MeshData*D::has*() functions.
...
Makes it more intuitive (and shorter) than calling
`if(data.textureCoords2DArrayCount())`.
13 years ago
Vladimír Vondruš
51db425bdb
Shaders: use generic definitions also in GLSL sources.
...
So each sourcs doesn't need to be manually rewritten each time the
generic definition changes.
13 years ago
Vladimír Vondruš
3eb7f6f2b8
Shaders: added generic shader definition.
...
Defines common attributes which are shared by majority of the shaders,
allowing mesh to be configured for the generic shader to be used with any
of them.
13 years ago
Vladimír Vondruš
4d68547cbe
Shaders: set VertexColor::Color attribute location to 3.
...
Locations 0, 1 and 2 are reserved for positions, texture coordinates and
normals.
13 years ago
Vladimír Vondruš
ef42287cf9
Shaders: use location 1 for texture coordinates and location 2 for normals.
13 years ago
Vladimír Vondruš
5542f82d9f
Shaders: set MeshVisualizer::VertexIndex attribute location to 3.
...
Locations 0, 1 and 2 will be reserved for positions, texture coordinates
and normals.
13 years ago
Vladimír Vondruš
0a09b496ca
Shaders: include cleanup.
13 years ago
Vladimír Vondruš
a125964273
Doc++
13 years ago
Vladimír Vondruš
fd3f7febae
Shaders: what the hell.
13 years ago
Vladimír Vondruš
18c9f5c441
Test also default values in Color*::{red,green,blue,cyan,magenta,yellow}().
13 years ago
Vladimír Vondruš
5949f7ae41
SceneGraph: added TODO.
13 years ago
Vladimír Vondruš
22dc8170e8
Added Color*::{red,green.blue,cyan,magenta,yellow}() convenience functions.
13 years ago
Vladimír Vondruš
beab448b4e
Math: be more explicit in what we want to construct.
13 years ago
Vladimír Vondruš
ebb855315c
Updated Color documentation with (de)normalization info.
13 years ago
Vladimír Vondruš
361066fdbf
Math: test that constructing vector from parts can be done implicitly.
13 years ago
Vladimír Vondruš
3b91f43e45
Properly test all Color constructors.
13 years ago
Vladimír Vondruš
ab651bb61c
Various minor cleanup.
13 years ago
Vladimír Vondruš
842c263d51
Color: internal helper function renaming.
...
Will be used also elsewhere than for alpha only.
13 years ago
Vladimír Vondruš
01f6553fd6
Math: simplified Vector*::*Axis() and Vector*::*Scale() functions.
13 years ago
Vladimír Vondruš
81f02a24c6
Shaders: compile shaders also for GLSL 1.50 (GL 3.2).
...
It seems that ARB_explicit_attrib_location is not supported on GLSL 1.40
on OSX (even that the support is advertised).
13 years ago
Vladimír Vondruš
add989703e
Math: don't allow *::data() to be called on rvalues.
...
There are more cases that should be fixed, but this is the most
problematic one, as this might look completely innocent:
Vector2 a, b;
float* c = (a + b).data();
Unlike this, which looks suspicious:
Vector2& c = a + b;
13 years ago
Vladimír Vondruš
4aadfd0828
Math: fixed *::data() documentation.
13 years ago
Vladimír Vondruš
4da0f4497f
MeshTools: return Containers::Array also from interleave().
13 years ago
Vladimír Vondruš
b0c0e2d92d
MeshTools: return Containers::Array instead of pointer from compressIndices().
...
This is source-incompatible change, but this function probably wasn't
used much in user code, rather its Mesh/Buffer convenience overload.
Actually Containers::Array<char> has _implicit_ conversion operator to
char*, but this should not be an issue, as the conversion is not allowed
on rvalue references, thus the following code shouldn't compile at all.
Not available on GCC < 4.8.1, though.
// ...
char* data;
std::tie(..., data) = MeshTools::compressIndices(...);
13 years ago
Vladimír Vondruš
e491a0d7b6
Fixed Buffer documentation to reflect set*Data() changes.
13 years ago
Vladimír Vondruš
819451f3c4
Audio: use Containers::Array instead of naked allocation in Source.
13 years ago
Vladimír Vondruš
da03d86e3e
Explicitly pass also shader source sizes in Shader::compile().
...
Should avoid potentially costly `strlen` in glShaderSource() internals.
13 years ago
Vladimír Vondruš
e365259635
Shapes: fix copy constructor in Composition.
...
The test now passes again.
13 years ago
Vladimír Vondruš
d9e7096a9b
Shapes: use Containers::Array instead of naked array in Composition.
...
Makes the copying code simpler. Also added assertion that we copy into
available memory and not somewhere out of bounds. The test now fails the
assertion.
13 years ago