Vladimír Vondruš
3003cbea2e
Text: moved common glyph render code into AbstractLayouter::renderGlyph().
...
The virtual method is moved to doRenderGlyph(), for plugin implementers
it means that the function only needs to be renamed (and moved to private
section) and plugin version interface needs to be updated.
The common layouting code allows to remove many redundant code from
Renderer and also ability to test cursor position/bounding rectangle
updated properly. Rectangle updating now treats rectangle with zero size
as invalid and replaces it with glyph quad instead of merging the two. It
means that the returned rectangle now wraps the text more tightly and
does not always contain origin.
13 years ago
Vladimír Vondruš
ba8489f054
Math: added Geometry::Rectangle::translated().
...
The Rectangle class needs to be generalized, but this function was needed
for a long time.
13 years ago
Vladimír Vondruš
8392990794
MagnumFont[Converter]: support for line height.
13 years ago
Vladimír Vondruš
858c9787f0
Text: initial support for line height in AbstractFont.
...
Got finally pissed with the requirement of setting AbstractFont::_size
manually and took this as opportunity to rework the internal plugin API
in a better way. Bumped the interface version, as this is binary
incompatible. MagnumFont doesn't support lineHeight yet.
13 years ago
Vladimír Vondruš
446b48bbb7
Text: doc++
13 years ago
Vladimír Vondruš
f92e21e5c7
doc: improve shader backporting documentation.
13 years ago
Vladimír Vondruš
b9161482bc
Updated glLoadGen-generated files.
...
The loader now doesn't attempt to check for extensions and just loads the
function pointers. It was doing that for all core functions anyway, so a
few more DSA functions won't hurt the loading times too much. Should fix
issues with core-only contexts on OSX.
13 years ago
Vladimír Vondruš
f10f2d8726
Math: added modulo operations for Vector.
13 years ago
Vladimír Vondruš
29c2f16399
SceneGraph: instantiate also integer TranslationTransformation.
...
Fugly workaround for mingw issues.
13 years ago
Vladimír Vondruš
aa566e9da8
Text: no need to have base class constructor public and documented.
13 years ago
Vladimír Vondruš
ccc31f8105
Text: support for aligning rendered text.
13 years ago
Vladimír Vondruš
1571a9121b
Text: added TODO, minor cleanup.
13 years ago
Vladimír Vondruš
f009e5c47f
Math: added rounding functions.
13 years ago
Vladimír Vondruš
d6586fa1fc
Math: reduce code duplication in Functions.h.
13 years ago
Vladimír Vondruš
31dae6ef33
Text: renamed Text::TextRenderer to Text::Renderer.
...
No redundant naming. Text::Renderer2D and Text::Renderer3D is typedef'd
to old name, the typedefs are deprecated and will be removed in some
future release.
13 years ago
Vladimír Vondruš
05167c36fd
SceneGraph: add Drawable::drawables() function.
...
Similar to Animable::animables().
13 years ago
Vladimír Vondruš
61eb7fcfe3
SceneGraph: renamed Animable::group() to Animable::animables().
...
Fixes ambiguous case when inheriting multiple grouped features in a
single object. The original functions are now aliases to the new ones,
are marked as deprecated and will be removed in future release.
13 years ago
Vladimír Vondruš
8582bee07a
Platform: ability to access particular Application subclass from Screen.
...
This isn't exactly encouraging good practices, but I didn't come up with
better solution yet.
13 years ago
Vladimír Vondruš
4cd489f233
Platform: implicitly call redraw() after screen swapping.
13 years ago
Vladimír Vondruš
ed5ee5c3c2
Mesh: warn about improper buffer binding also on Emscripten.
...
It seems that rebinding is forbidden by law also in WebGL. Also updated
Best Practices docs to note that.
13 years ago
Vladimír Vondruš
2829a95ce9
MagnumFont: removed some probably forgotten debug output.
13 years ago
Vladimír Vondruš
00a8383214
Shaders: ability to specify background color in Vector shader.
...
Makes it possible to use the shader without blending.
13 years ago
Vladimír Vondruš
01eacfd675
Add static_assert for deletion of only complete types in ResourceManager.
...
Borrowed from libstdc++'s std::unique_ptr implementation, on GCC it
generates somehow different error than expected (complains about invalid
application of sizeof() where it should (or not?) print the
static_assert message.
13 years ago
Vladimír Vondruš
8003cd435a
Text: returning std::unique_ptr instead of raw pointer.
...
Avoids memory leaks (I made one in the test, fail).
13 years ago
Vladimír Vondruš
20a9d9a374
Text: added magnum-fontconverter utility.
...
Again borrowed from Push the Box, modified and made slightly more
configurable. Will write proper docs for the utilities when I have some
more time.
13 years ago
Vladimír Vondruš
1e02a501f3
doc: removed absolutely wrong description, added TODO.
13 years ago
Vladimír Vondruš
760a815a91
TextureTools: renamed magnum-distancefield to magnum-distancefieldconverter.
13 years ago
Vladimír Vondruš
fa90558727
Handle WITH_* options for utilities better.
...
I.e., don't offer them on platforms which don't support them.
13 years ago
Vladimír Vondruš
c9e8d270a5
Shaders: okay, I admit, my NVidia really _is_ forgiving in GLSL ES.
...
The tests didn't catch this at all.
13 years ago
Vladimír Vondruš
afde795049
doc: documented Plugins directory.
13 years ago
Vladimír Vondruš
da0f4de5ff
Shaders: fixed Flat shader.
...
It is now [0] days since last copypaste error.
13 years ago
Vladimír Vondruš
0f60325126
Shaders: minor cleanup.
13 years ago
Vladimír Vondruš
aa5b888bb2
Platform: added ScreenedApplication class.
...
Better API for handling more than one application screens (context
switching, event propagation etc.). Taken from Push The Box, updated to
current coding style and templated.
13 years ago
Vladimír Vondruš
2ddcfcba52
Platform: document the intention better.
13 years ago
Vladimír Vondruš
bf76cdfa81
Platform: added no-op GlutApplication::keyReleaseEvent().
...
GLUT doesn't have key release events, this function is included only for
compatibility with other toolkits and doesn't get called at all.
13 years ago
Vladimír Vondruš
798d6667e7
Platform: deinline default event handlers.
...
They can't be used as inline anyway.
13 years ago
Vladimír Vondruš
5c1f47444f
SceneGraph: doc++
13 years ago
Vladimír Vondruš
de2ca00217
Math: doc++
13 years ago
Vladimír Vondruš
c9ad947136
Plugins: mark the includes as inter-project, not external.
13 years ago
Vladimír Vondruš
f29ea2140f
Fixed ES build without deprecated API.
13 years ago
Vladimír Vondruš
b3d1bd1f9b
Plugins: fixed ES build of TgaImageConverter.
13 years ago
Vladimír Vondruš
847f2b429f
Build all the plugins in development PKGBUILDs.
13 years ago
Vladimír Vondruš
9c356d052c
Plugins: remove the need for FreeTypeFont in MagnumFontConverter test.
13 years ago
Vladimír Vondruš
08c4802bd2
Plugins: skip the unimplemented test case instead of failing whole test.
...
It is better to run automatically all tests than to manually check that
only this one error is present.
13 years ago
Vladimír Vondruš
3fb969d397
Integrated plugins into build system and updated the documentation.
13 years ago
Vladimír Vondruš
b9ca288b69
doc: minor formatting changes.
13 years ago
Vladimír Vondruš
fcc56014b8
Merge essential plugins extracted from magnum-plugins repository.
13 years ago
Vladimír Vondruš
e20870cf19
doc: Emscripten building documentation consisted of brain farts.
13 years ago
Vladimír Vondruš
3541b71168
doc: prefer to use NaCl newlib.
13 years ago
Vladimír Vondruš
cfc9620535
Don't build Audio library by default.
...
Because of the OpenAL dependency.
13 years ago