Vladimír Vondruš
b0883f8d6b
Doc++
13 years ago
Vladimír Vondruš
bda6202d42
Platform: ability to negotiate context in {Glut,NaCl,Sdl2}Application.
13 years ago
Vladimír Vondruš
df5630225d
Platform: minor code cleanup in Sdl2Application.
...
* Explicitly set multisample attributes in all cases (so the attributes
are always properly set when creating another context).
* Do both assign and test in `if` statement.
13 years ago
Vladimír Vondruš
daffbdce0c
Platform: some const fascism.
13 years ago
Vladimír Vondruš
7a12cbe8b1
DebugTools: use proper sphere parameters in ShapeRenderer.
13 years ago
Vladimír Vondruš
5e8606a755
Math: added sign() function.
13 years ago
Vladimír Vondruš
56139ae365
Math: no need to provide implementation just for Doxygen.
13 years ago
Vladimír Vondruš
4000ef571b
DebugTools: support color alpha in ForceRenderer and ShapeRenderer.
13 years ago
Vladimír Vondruš
40a69636bd
Shaders: support color alpha in FlatShader.
13 years ago
Vladimír Vondruš
ad8f35c89e
Platform: multisampling support in NaClApplication.
13 years ago
Vladimír Vondruš
11daec1df6
Platform: forgot to initialize variable. Twice.
13 years ago
Vladimír Vondruš
dfdec44b01
Platform: portable application arguments specification.
...
Last PITA when porting to NaCl removed. Yay!
13 years ago
Vladimír Vondruš
2f4bcd1455
Added files for automatic resource importing from static libraries.
...
Not documented yet, because I am ashamed of this way of doing things.
With shared libraries the resources are imported automatically, with
static ones the user must explicitly include these files in some
non-static library or executable to have them imported.
13 years ago
Vladimír Vondruš
8c75f6e8c2
Expose MAGNUM_BUILD_STATIC in magnumConfigure.h.
13 years ago
Vladimír Vondruš
8d5b2cae71
Math: std::hypot() is not available in NaCl newlib.
...
Probably bug / not-yet-implemented feature.
13 years ago
Vladimír Vondruš
36bedb3f5a
NaCl target system is now handled with CORRADE_TARGET_NACL.
13 years ago
Vladimír Vondruš
a56f7730b1
Trade: default-constructed pair is equivalent to that.
13 years ago
Vladimír Vondruš
d87efd0ed0
Primitives: don't compute the same value twice.
13 years ago
Vladimír Vondruš
64585ca4fd
GCC 4.6 compatibility: vector conversion is not constexpr.
13 years ago
Vladimír Vondruš
c79327ee43
Option to build Magnum as static library.
...
And optionaly position-independent code. The tests now pass again, if
both Corrade and Magnum is static.
13 years ago
Vladimír Vondruš
cc0d45ca7c
Fixed building with static Corrade.
...
Four tests (SceneGraph::Animable, Mesh, MeshTools::Tipsify,
TextureTools::Atlas) however fail, not sure what the cause is, as they
fail somewhere deep long after exiting from main().
13 years ago
Vladimír Vondruš
4f4e1230d7
DebugTools: added support for 2D spheres into ShapeRenderer.
13 years ago
Vladimír Vondruš
79b4c0dbbd
DebugTools: take also object rotation into account in ForceRenderer.
...
Currently the force was only translated, completely ignoring object
translation.
13 years ago
Vladimír Vondruš
c455955d50
DebugTools: render boxes with size as half extent, not full.
...
Also clarified the documentation in Physics::Box and
Physics::AxisAlignedBox classes.
13 years ago
Vladimír Vondruš
032827fc3d
Primitives: added 2D circle primitive.
13 years ago
Vladimír Vondruš
2d71c86942
Math: make trignometric functions working with Unit base class.
...
The test now passes again.
13 years ago
Vladimír Vondruš
d95c44fcc8
Math: test that trigonometric functions work with Unit base class.
...
The test fails.
13 years ago
Vladimír Vondruš
bbb764eff5
Base for image converter plugins.
13 years ago
Vladimír Vondruš
872ef12ebd
Treat image data as array of unsigned chars.
...
Arithmetic on void* is not defined, this helps a little with various
conversions.
13 years ago
Vladimír Vondruš
dc10235a96
Trade: updated AbstractImporter documentation.
...
Clearly state that deleting the data is user responsibility.
13 years ago
Vladimír Vondruš
2054cbf447
Trade: deinlined all AbstractImporter virtual functions.
13 years ago
Vladimír Vondruš
d6f5560262
Trade: got rid of opening input streams in AbstractImporter.
...
Now it is possible to open either pure data arrays or arrays specified
with filename. The function calls might be ambiguous now (i.e.
open("image.tga") would open data array instead of handling it as
filename), renamed them to avoid that. Default implementations now
fire an assertion. Bumped plugin interface string version as this is
pretty incompatible change.
13 years ago
Vladimír Vondruš
92c4a5a2ed
Text: turned AbstractFont into plugin interface.
13 years ago
Vladimír Vondruš
cda51f3dd5
Text: moved FreeType and HarfBuzz fonts into plugins.
...
In next few commits AbstractFont will become plugin interface. Font
implementations are now in magnum-plugins repository. Removed all traces
of FreeType and HarfBuzz dependencies.
13 years ago
Vladimír Vondruš
e222fc5eb8
Text: simplified font layouters, removed remaining public API.
...
Now the font classes are prepared to be plugins.
13 years ago
Vladimír Vondruš
57adfac002
Text: moved font size to abstract base.
13 years ago
Vladimír Vondruš
cc19e78983
Text: moved glyph caching into separate classes.
...
The API is similar for both basic and distance field caching.
13 years ago
Vladimír Vondruš
6802b022ea
Added some TODOs.
13 years ago
Vladimír Vondruš
5ed38a3727
Worked around Doxygen issues in Renderer documentation.
...
The text was displayed as if it was code block.
13 years ago
Vladimír Vondruš
5c5c9d81d8
Added Renderer::flush() and Renderer::finish().
13 years ago
Vladimír Vondruš
28499ac908
Fixed outdated documentation.
13 years ago
Vladimír Vondruš
da4ceb7cbc
Delete VAO in Mesh only if it is nonzero.
...
glDeleteVertexArrays() was called even after the Mesh was moved out to
another object. On my NVidia it was working but it might cause issues
elsewhere.
13 years ago
Vladimír Vondruš
06971775cd
Text: properly compute glyph count in FreeTypeFont layouter.
...
It was the same as byte count, thus working only for pure ASCII, not
UTF-8.
13 years ago
Vladimír Vondruš
3c9c90ecf7
Text: assert that also freeing up FreeType resources doesn't fail.
13 years ago
Vladimír Vondruš
0f4e2f8a37
Text: made constructors explicit.
13 years ago
Vladimír Vondruš
19cc27e2c0
Cleaned up OpenGL.h header.
...
I didn't know that C preprocessor had `#elif` until now. Learning
something new every day.
13 years ago
Vladimír Vondruš
b1fcdf81af
Trade: improved *Data constructors and destructors.
...
* They are now deinlined into source files, as most of the classes have
either heavy members (std::vector) or virtual methods.
* All of them are explicit now (that should be already done, don't know
why not).
* Passing huge classes by value and using move constructors to avoid
unnecessary copying.
13 years ago
Vladimír Vondruš
b55dba8168
Platform: forgot to initialize variable.
13 years ago
Vladimír Vondruš
cb06737640
glDrawBuffer() is not available in ES3.
...
Using glDrawBuffers() also in this case.
13 years ago
Vladimír Vondruš
deafd8f6ee
No deprecated Buffer::map() in ES3.
13 years ago