Vladimír Vondruš
db85a02752
GCC 4.5 compatibility: no range-based for.
13 years ago
Vladimír Vondruš
89820a12c3
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
49154f30c4
Math: added Vector2::perpendicular().
...
Also updated and crosslinked related documentation.
13 years ago
Vladimír Vondruš
218a4c142c
SceneGraph: fixed Object::setClean().
...
Now also all non-clean parent objects are cleaned.
13 years ago
Vladimír Vondruš
9ecb8b5b8d
SceneGraph: fully test also Object::setClean() for list of objects.
...
The test fails (it doesn't clean parent objects).
13 years ago
Vladimír Vondruš
d85c15bca9
SceneGraph: this was fixed in 59a3a7029d.
13 years ago
Vladimír Vondruš
e69693e87f
Use `std::` prefix everywhere.
13 years ago
Vladimír Vondruš
82ca09a4ed
Minor documentation fixes.
...
It's not needed to have empty `()` after class name in this type
of expressions:
(new Object())
->setFoo(a)
->setBar(b);
13 years ago
Vladimír Vondruš
bba3755da1
GCC 4.8 compilation fixes.
13 years ago
Vladimír Vondruš
fe0f5dc438
Use `nullptr` instead of `0`.
13 years ago
Vladimír Vondruš
b7aeccad4c
Clang compilation fixes.
13 years ago
Vladimír Vondruš
45cbf1669f
DebugTools: 2D and 3D LineSegment support in ShapeRenderer.
13 years ago
Vladimír Vondruš
c4073c0874
Primitives: added 2D/3D Line primitive.
...
No shit. This is usable mainly if some common code expects the
mesh wrapped in MeshData and thus it is better to just have this tiny
class instead of doing it manually.
13 years ago
Vladimír Vondruš
8d5f6037c7
Doc++
13 years ago
Vladimír Vondruš
b885a49d80
Mention support of both `glibc` and `newlib` NaCl toolchains.
13 years ago
Vladimír Vondruš
0cd98456da
Math: Added Vector2::cross().
13 years ago
Vladimír Vondruš
5c89c89ff8
Platform: added window flags to Sdl2Application.
...
Making resizable window the default to be consistent with GLUT and
others.
13 years ago
Vladimír Vondruš
78ab75c72e
Explicitly mention supported platforms in README and documentation.
13 years ago
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š
15bb306f97
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
5e8606a755
Math: added sign() function.
13 years ago
Vladimír Vondruš
5bad49743d
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
56139ae365
Math: no need to provide implementation just for Doxygen.
13 years ago
Vladimír Vondruš
f91f464ec8
GCC 4.4 compatibility: better solution for explicit conversion of Unit.
...
Having implicit conversion on Unit class causes much more harm than
doing the conversion some other way -- mainly for multiplication and
division, which is done with builtin operators and thus the result is
unitless. Also it is possible to do wrong "retyping" between degrees and
radians:
Rad a = Constants::pi();
Deg b(a*2);
On GCC >4.5 b is `180`, but on GCC 4.4 it is `2pi`, which is obviously
wrong and not wanted.
The conversion is done using Unit::toUnderlyingType() which is now used
everywhere instead of conversion operator. The conversion operator is
made available only for GCC 4.5, where it can be marked as explicit.
This might cause incompatibilites with `master` branch, where no
Unit::toUnderlyingType() exists, but users should have no need to
convert it to underlying type anyway as all required functions are
available through the library.
This reverts commit 36ac4de5c4 and
partially also 0db3a183ae (UnitTest.cpp).
13 years ago
Vladimír Vondruš
f6e6bc642d
Merge branch 'master' into compatibility
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š
a4dfb23a2c
Merge branch 'master' into compatibility
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š
070ed49158
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
b555db02f9
Updated toolchains submodule.
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š
6b753cfcb4
FindMagnum.cmake: NaCl application has also dependencies.
...
Although these are needed only with static build.
13 years ago
Vladimír Vondruš
0f27576855
FindMagnum.cmake: append MAGNUM_LIBRARIES also for static build.
13 years ago
Vladimír Vondruš
8c75f6e8c2
Expose MAGNUM_BUILD_STATIC in magnumConfigure.h.
13 years ago
Vladimír Vondruš
885a490cd2
Updated FindCorrade.cmake from Corrade repository.
13 years ago
Vladimír Vondruš
b7303c9022
Merge branch 'master' into compatibility
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š
ddffc1b58c
Separate PKGBUILDs for both NaCl newlib and glibc.
13 years ago
Vladimír Vondruš
7a1f1bec92
Updated FindCorrade.cmake from Corrade repository.
13 years ago
Vladimír Vondruš
b0b445f159
Merge branch 'master' into compatibility
...
Conflicts:
CMakeLists.txt
13 years ago
Vladimír Vondruš
36bedb3f5a
NaCl target system is now handled with CORRADE_TARGET_NACL.
13 years ago
Vladimír Vondruš
fd1ade7b7f
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
a56f7730b1
Trade: default-constructed pair is equivalent to that.
13 years ago