Vladimír Vondruš
768f3011dd
Merge branch 'master' into compatibility
...
Conflicts:
CMakeLists.txt
modules/FindCorrade.cmake
13 years ago
Vladimír Vondruš
9a8ec588dc
Text: fallback to OES_mapbuffer if EXT_map_buffer_range is not supported.
...
The renderer emits warning about crappy hardware, similarly to what
GlyphCache does.
13 years ago
Vladimír Vondruš
37621d7741
Updated FindCorrade.cmake from Corrade repository.
13 years ago
Vladimír Vondruš
9dc99ed552
No need to explicitly specify static build for NaCl's newlib.
...
It is enabled by default.
13 years ago
Vladimír Vondruš
7d74802e01
Specify CMake module dir before trying to find Corrade.
...
We need file from that module dir to find it.
13 years ago
Vladimír Vondruš
5e24e87d22
SceneGraph: Clang linker fixes.
13 years ago
Vladimír Vondruš
b42999cc11
Text: don't use explicit constructor implicitly.
...
Spotted by Clang.
13 years ago
Vladimír Vondruš
5bbe3df0ef
Math: use both const and constexpr.
...
Spotted by Clang.
13 years ago
Vladimír Vondruš
56be313c2d
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
c43487372b
Don't strip static libraries.
...
Causes HUGE linker errors.
13 years ago
Vladimír Vondruš
619996c81f
Merge branch 'master' into compatibility
...
Conflicts:
src/SceneGraph/MatrixTransformation2D.h
src/SceneGraph/RigidMatrixTransformation2D.h
13 years ago
Vladimír Vondruš
4091d7c9b5
Platform: fix unused variable warning.
13 years ago
Vladimír Vondruš
4026d814cd
SceneGraph: forgot these typedefs when dealing with <>.
13 years ago
Vladimír Vondruš
36af88e5cc
Merge branch 'master' into compatibility
...
Conflicts:
src/SceneGraph/AbstractFeature.hpp
src/SceneGraph/AbstractTranslationRotation2D.h
src/SceneGraph/AbstractTranslationRotation3D.h
src/SceneGraph/AbstractTranslationRotationScaling2D.h
src/SceneGraph/AbstractTranslationRotationScaling3D.h
src/SceneGraph/DualComplexTransformation.h
src/SceneGraph/DualQuaternionTransformation.h
src/SceneGraph/FeatureGroup.h
src/SceneGraph/FeatureGroup.hpp
src/SceneGraph/MatrixTransformation2D.h
src/SceneGraph/MatrixTransformation3D.h
src/SceneGraph/RigidMatrixTransformation2D.h
src/SceneGraph/RigidMatrixTransformation3D.h
src/Test/SwizzleTest.cpp
13 years ago
Vladimír Vondruš
c3de32e55f
Getting rid of <>, part 7: documentation.
13 years ago
Vladimír Vondruš
346ea2feb6
Getting rid of <>, part 6: SceneGraph transformations.
13 years ago
Vladimír Vondruš
cfd405c32c
Getting rid of <>, part 5: SceneGraph object.
13 years ago
Vladimír Vondruš
c32c12b387
Getting rid of <>, part 4: SceneGraph animable and animable group.
13 years ago
Vladimír Vondruš
572efce3f7
Getting rid of <>, part 3: SceneGraph features and feature groups.
13 years ago
Vladimír Vondruš
a0d60bbaa7
Getting rid of <>, part 2: SceneGraph cameras and drawables.
...
This allows to use those nice aliases even on GCC <= 4.6 without
resorting to verbose full name. Double and other types can be then
typedef'd as e.g. Camera3Dd or Camera3Di.
13 years ago
Vladimír Vondruš
a7f5bef038
Getting rid of <>, part 1: Color classes.
...
Inspired in STL, base templated class is renamed to BasicColor{3,4} and
typedef'd with Float type to Color{3, 4}. It is much nicer to write
this:
Color3(1.0f)
Color3::fromHSV(25.0_degf, 0.5f, 0.9f);
instead of this:
Color3<>(1.0f);
Color3<>::fromHSV(25.0_degf, 0.5f, 0.9f);
13 years ago
Vladimír Vondruš
aff9463fa0
GCC 4.4 compatibility: some explicit typing needed.
13 years ago
Vladimír Vondruš
33a28c0fa5
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
bb6e08ef1c
Trade: properly return false instead of nullptr.
13 years ago
Vladimír Vondruš
56a0eac598
GCC 4.5 compatibility: no range-based for.
13 years ago
Vladimír Vondruš
e2aa63f25c
GCC 4.5 compatibility: nullptr-related issues.
13 years ago
Vladimír Vondruš
4356aebdbe
GCC 4.5 compatibility: can't default destructor in class body.
13 years ago
Vladimír Vondruš
5e7fcd48c0
Merge branch 'master' into compatibility
...
Conflicts:
src/Context.cpp
src/Magnum.h
src/Text/GlyphCache.cpp
13 years ago
Vladimír Vondruš
d7d47eb639
GCC 4.6 compatibility: no in-class data initializers.
13 years ago
Vladimír Vondruš
013fee8bc1
GCC 4.6 compatibility: no std::unordered_map::emplace().
...
Basically reverts (only for GCC 4.6) what was done in
b9b690b611 .
13 years ago
Vladimír Vondruš
e4b12f922c
Text: pass unique UTF-32 characters to AbstractFontConverter functions.
...
Removes another implementation burden from plugins, added test for this
functionality.
13 years ago
Vladimír Vondruš
364f29e0df
Text: allow calling GlyphCache::reserve() for cache with default glyph 0.
...
The default glyph 0 is not positioned anywhere, so it won't interfere
with atlas creation.
13 years ago
Vladimír Vondruš
731aac7d74
Text: allow font to fully create its glyph cache.
...
Some fonts are able to add individual characters to cache, some need to
fully configure whole cache.
13 years ago
Vladimír Vondruš
429bcdb09a
Text: publicize glyph padding in GlyphCache, simplify internals.
...
By publicizing and documenting what "originalSize" and "padding" means
whole implementation and understanding is a lot simpler. Yay!
13 years ago
Vladimír Vondruš
ca6b1c9a1e
Text: removed cursorPosition from AbstractLayouter::renderGlyph().
...
The parameter unnecessarily complicates the implementation, as it needs
to be reimplemented in _every_ plugin (and all current plugins have bug
in it).
13 years ago
Vladimír Vondruš
41f4d2fa5d
Text: added tests for TextRenderer.
...
Exposed vertex and index buffer of mutable TextRenderer, fixed
computation of bounding rectangle.
13 years ago
Vladimír Vondruš
729484f6de
Text: implicitly add "Not Found" glyph to GlyphCache.
...
Also added test for GlyphCache functionality.
13 years ago
Vladimír Vondruš
8cb4243f14
Text: forgotten EnumSet operators.
13 years ago
Vladimír Vondruš
8bce85b308
Text: added AbstractFont::glyph{Id,Advance}() accessors.
13 years ago
Vladimír Vondruš
10e8744ddf
Text: ability to iterate over GlyphCache.
13 years ago
Vladimír Vondruš
61377a931e
Text: ability to create glyph cache from all characters.
13 years ago
Vladimír Vondruš
60d4f8066a
Text: using utility function instead of own (bugged) implementation.
...
Also removed the test, as there is now nothing to test.
13 years ago
Vladimír Vondruš
d6a64cca2a
Text: interface for font converters.
...
Provides a way to convert font into different format (either with or
without contents of associated glyph cache) or import/export glyph cache
(i.e. to avoid recreating it from scratch every time).
13 years ago
Vladimír Vondruš
b9b690b611
Use emplace() instead of insert() in some places.
...
Leads to (possibly faster) and shorter code.
13 years ago
Vladimír Vondruš
d3d172daec
Trade: Doxygen fixes.
13 years ago
Vladimír Vondruš
5f0d9297e2
Templated version of Buffer::{data,subData}().
...
More convenient for end user, assert that buffer size is divisible by T
size to avoid some issues.
13 years ago
Vladimír Vondruš
a17d7f2705
Install also bootstrap header for GL tests if BUILD_GL_TESTS is enabled.
13 years ago
Vladimír Vondruš
8ab5711d16
Initial support for GL tests, initial Buffer test.
13 years ago
Vladimír Vondruš
9ccc63b4aa
Math: fixed strict aliasing warning.
...
Is there _any_ use case of reinterpret_cast where GCC won't loudly
complain?
13 years ago
Vladimír Vondruš
eb3de49e75
Reordered *Image parameters.
...
First format, then type, then size, then data. Seems more intuitive this
way, also the data are laid out in the structure this way.
13 years ago