Vladimír Vondruš
73e0199696
Platform: well, these OTOH *don't* need to be flags.
7 years ago
Vladimír Vondruš
4c8ac4f389
Platform: those flags are not flags, damnit.
...
Took me an hour to figure out. Argh.
7 years ago
Vladimír Vondruš
e1e1da99f7
Platform: it's good to enable exts by default in EmscriptenApp.
7 years ago
Vladimír Vondruš
f2fb0b3da3
Platform: fix build on Emscripten 1.38.17 and newer.
7 years ago
Vladimír Vondruš
e375fac168
Platform: properly define enum operators for all EmscriptenApp flags.
7 years ago
Vladimír Vondruš
173a87eaf4
Platform: none of EmscriptenApplication constructors were defined.
...
... when compiling w/o TARGET_GL.
7 years ago
Vladimír Vondruš
251e858d5b
Platform: the EmscriptenApplication destructor doesn't need to be virtual.
7 years ago
Vladimír Vondruš
9c8dfbccc0
Platform: hide Emscripten forward declarations from Doxygen.
7 years ago
Vladimír Vondruš
2952a19287
Platform: various minor EmscriptenApplication cleanup.
7 years ago
Squareys
b970b4d247
Platform: Add initial EmscriptenApplication
...
Signed-off-by: Squareys <squareys@googlemail.com>
7 years ago
Vladimír Vondruš
cf1c78f93c
GL: ffs, a time query and nowhere it mentions *what* is the time unit.
7 years ago
Vladimír Vondruš
55960fb0b4
Animation: use float literals everywhere.
...
Makes it easier to copypaste into GLSL ES.
7 years ago
Vladimír Vondruš
b11873b975
doc: updated changelog.
7 years ago
Vladimír Vondruš
cdb69423ec
Audio: minor cleanup, rename Buffer::length() to sampleCount().
...
* use Magnum types in public API
* make getters const consistently to Source getters
* Buffer::length() could be confused with size(), rename it to make it
more explicit.
7 years ago
Guillaume Jacquemin
8029abca07
Audio: add support for buffer loop points.
...
This feature requires the AL_SOFT_loop_points extension.
7 years ago
Guillaume Jacquemin
f5302edcc1
Audio: add getters to Buffer.
7 years ago
Vladimír Vondruš
f7a2694390
SceneGraph: expose Type typedef and Dimensions constant everywhere.
7 years ago
Vladimír Vondruš
1253a60046
Math: doc++
7 years ago
Vladimír Vondruš
4b1c76411e
doc: updated changelog.
7 years ago
Vladimír Vondruš
e3eebd34b7
Add templated Image{,View,Data}::pixels().
...
It's potentially dangerous because the user is responsible for choosing
a correct type, on the other hand forcing them to do it verbosely
through arrayCast() is both too annoying and too hard to explain.
7 years ago
Vladimír Vondruš
a6df7493bb
doc: remove info about the Ubuntu PPA from building docs.
...
Last version there is 2018.04 and it only lures people into installing
an outdated version.
7 years ago
Vladimír Vondruš
0cb4ded506
Shaders: add normal texture support to Phong.
...
Note -- since there are no visual tests for Phong yet, this is done in
the least intrusive manner to avoid breaking current functionality. It's
likely very underperforming due to the matric calculation per fragment,
it'll get optimized once I have proper tests.
7 years ago
Vladimír Vondruš
528e3822dc
Shaders: added Tangent generic vertex attribute.
7 years ago
Vladimír Vondruš
904a63f33b
MeshTools: make generateSmoothNormals() working with NaNs.
7 years ago
Vladimír Vondruš
77abf4a47c
doc: update changelog.
7 years ago
Vladimír Vondruš
5d2cf7ef93
MeshTools: ability to generate smooth normals in compile().
7 years ago
Vladimír Vondruš
ba048cd2db
MeshTools: cache angles and cross product in generateSmoothNormals().
...
It allocates one more array, but that speeds up the calculation to twice
as fast. Before the benchmark was around 1 ms for flat normals and 12 ms
for smooth, now it's 6 ms for smooth. There is probably more I could do
(I feel like I could save at least one more normalization), however this
is good enough for now.
7 years ago
Vladimír Vondruš
32da5d7587
MeshTools: benchmark generate{Flat,Smooth}Normals().
...
There's some room for improvement so I want to be able to see the
difference.
7 years ago
Vladimír Vondruš
247dff26e0
MeshTools: Primitives are now always needed for the tests.
...
The new generateSmoothNormals() needs it.
7 years ago
Vladimír Vondruš
a4310b9a31
MeshTools: added generateSmoothNormals().
...
This was a *fun* algorithmic exercise. Seriously.
7 years ago
Vladimír Vondruš
7b24161cf3
MeshTools: minor cleanup.
7 years ago
Vladimír Vondruš
d20a17c5c3
MeshTools: ability to generate flat normals in compile().
7 years ago
Vladimír Vondruš
1de258a6b2
MeshTools: de-STL-ify generateFlatNormals().
...
Also move it to a new GenerateNormals.h header so we can easily add
generateSmoothNormals() to it. The old API and header is deprecated and
will be removed in the future. I can't be bothered rewriting the old
code using the new thing, so it's preserved there as a mausoleum until
it gets finally nuked from the orbit.
7 years ago
Vladimír Vondruš
61397afc31
MeshTools: make a version of duplicate() not dependent on std::vector.
...
Provide a version taking StridedArrayView instead, taking an arbitrary
view and also arbitrary index type. Also introduce duplicateInto() which
doesn't even allocate, but rather writes the output to pre-existing
location.
7 years ago
Vladimír Vondruš
8110de3838
package: enable both SDL2 and GLFW apps in all packages.
...
Because people like to use either of them.
7 years ago
Vladimír Vondruš
5bb6878df5
WavAudioImporter: what's with all those empty return statements.
7 years ago
Vladimír Vondruš
3d9966378d
WavAudioImporter: test for empty files consistently with other plugins.
7 years ago
Vladimír Vondruš
ffd04e96eb
WavAudioImporter: a file with zero samples is not an error.
7 years ago
Vladimír Vondruš
cbe7c97188
AnyAudioImporter: recognize AAC and MP3 files.
7 years ago
Vladimír Vondruš
8e5ecfacac
Math: ignore NaNs also in Vector::min(), max() and minmax().
...
To have the API consistent.
7 years ago
Vladimír Vondruš
32a95bb532
Audio: Apple, tell me, what makes a buffer non-undetermined?
7 years ago
Vladimír Vondruš
45e19fe032
doc: updated changelog and credits.
7 years ago
Guillaume Jacquemin
1104d8bb15
Audio: add an implementation and test for Source::type().
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
7 years ago
Vladimír Vondruš
c442c07190
Audio: add debug operator for Source::Type.
7 years ago
Guillaume Jacquemin
b9fb03ab8e
Audio: add buffer (un)queuing to Source.
7 years ago
Vladimír Vondruš
95bb2cf896
Mention magnum-bindings in the README.
7 years ago
Vladimír Vondruš
bd4ed9ae0e
Math: make batch functions accept strided array views.
...
The obvious improvement.
7 years ago
Vladimír Vondruš
51f9fd3a5f
Math: clarifying comment for future self.
...
Reverted all of this and then spent hours rediscovering these errors.
7 years ago
Vladimír Vondruš
2a9f4a1fed
Math: hint that lerpInverted() can be used for rane mapping.
7 years ago
Vladimír Vondruš
46fdb38cd2
Math: make batch min() / max() / minmax() ignore NaNs.
7 years ago