Vladimír Vondruš
b5017752a3
Platform: fix Emscripten build.
12 years ago
Vladimír Vondruš
4ce0135154
package: fix Emscripten PKGBUILD.
...
Caused by cb987f25d3 , unnoticed since.
12 years ago
Vladimír Vondruš
fde41147be
ObjImporter: fix compilation on GCC 4.6.
12 years ago
Vladimír Vondruš
617e52436a
Fix ES build.
12 years ago
Vladimír Vondruš
b5814305bd
Missing undef.
12 years ago
Vladimír Vondruš
d4ec4ed339
package: run the tests multiprocess.
...
They are now taking too long (9 secs), with -j5 just 3 secs.
12 years ago
Vladimír Vondruš
085d96ce25
Platform: support for debug context flag in GlutApplication.
...
For some weird reason this doesn't work for me.
12 years ago
Vladimír Vondruš
c275640ee0
Platform: ability to specify context flags in Sdl2Application.
...
Finally proper support for debug contexts :-)
12 years ago
Vladimír Vondruš
0d7f779125
Platform: don't display limits by default.
...
The output with limits is overly verbose and I caught myself typing
`magnum-info --no-limits` all the time, so let's reverse the default.
12 years ago
Vladimír Vondruš
2e700ee384
Platform: create context later so its output is at better place.
12 years ago
Vladimír Vondruš
6c2740b7d9
Platform: print context flags in magnum-info.
12 years ago
Vladimír Vondruš
ca320d9e37
Debug output operator for Context::Flag enum.
12 years ago
Vladimír Vondruš
25994f28ab
Follow OpenGL naming in Context::Flag enum.
...
As usual, the old Context::Flag::Robustness is marked deprecated and
will be removed in future release.
12 years ago
Vladimír Vondruš
05f677cc30
Platform: removed deprecated Flags from Sdl2Application::Configuration.
...
WindowFlags should be used instead, these would now conflict with
context flags.
12 years ago
Vladimír Vondruš
2f8e5f31a1
Make Image*::release() documentation clearer.
12 years ago
Vladimír Vondruš
8adde55377
Platform: improve documentation of redraw() function.
...
Make it clear that it's possible and non-harmful to call it from
drawEvent() itself.
12 years ago
Vladimír Vondruš
cfca2b50df
Platform: doc++
...
Display actual named constants in Doxygen.
12 years ago
Vladimír Vondruš
93de51c32f
Added EXT_shader_integer_mix to extension list.
12 years ago
Vladimír Vondruš
30809a86f3
Shapes: updated and cleaned up the documentation.
12 years ago
Vladimír Vondruš
9d2ea4ba15
Shapes: removed unused variable from the test.
...
The purpose wasn't commented at all, so I may just assume that it got
lost after some refactoring.
12 years ago
Vladimír Vondruš
218b950aed
Shapes: added Shape::collision().
...
Much like Shape::collides() is equivalent to the more low-level
collision detection using operator%, the Shape::collision() returns
collision details similarly to operator/. Currently only Sphere/Sphere
and Sphere/Point collision is done, thus the dispatch is nearly empty.
12 years ago
Vladimír Vondruš
e76178691d
Shapes: added missing test for Shape::collides().
...
There is one not-yet-sure-about behavior, expecting the failure.
12 years ago
Vladimír Vondruš
4027a097e4
package: build ObjImporter in all packages by default.
12 years ago
Vladimír Vondruš
6910281731
MeshTools: be const-correct.
12 years ago
Vladimír Vondruš
cdf24cb58c
Proper detection for AMD driver bug workaround.
...
Not sure where I got that.
12 years ago
Vladimír Vondruš
0311ff01c3
MeshTools: sorry about this mess.
12 years ago
Vladimír Vondruš
5ffe761bad
Shaders: doc++
12 years ago
Vladimír Vondruš
26e7c9ce34
MeshTools: added compile() function.
...
All-in-one solution for preparing generic meshes with optional normals
and texture coordinates, configured for use with Shaders::Generic.
12 years ago
Vladimír Vondruš
a7db8052ea
Define AbstractShaderProgram::Attribute<T>::Type as T.
...
The original comment is now saying the truth.
12 years ago
Vladimír Vondruš
980503a509
Renamed AbstractShaderProgram::Attribute::Type to ScalarType.
...
In all other places (e.g. Math, SceneGraph), SomeClass<T>::Type is
always T. I spent twenty minutes figuring out what went wrong, so better
have this consistent.
Also update the test to check for these, as they apparently were tested
only indirectly through the MeshGLTest.
12 years ago
Vladimír Vondruš
6dfd6d4ddb
Why the heck did I leave inline here?
12 years ago
Vladimír Vondruš
dc4f667f7b
MeshTools: added interleaveInto().
...
Basically a version of interleave() which takes existing buffer instead
of creating new zero-initialized one. The last bit needed for real
runtime usage.
12 years ago
Vladimír Vondruš
4fe1ecd447
MeshTools: use zero-initialized array in interleave().
...
Surely is faster than calling std::memset for every zero byte.
12 years ago
Vladimír Vondruš
06b3508719
MeshTools: refactored implementation of interleave().
...
Everything are now pure functions, no shared state, no useless functor
class wrapping. Still needed to wrap attribute count and stride
computation functions in struct to make proper overload resolution
working without the need to deinline the functions (they have cyclic
dependencies).
12 years ago
Vladimír Vondruš
b666044a47
Actually make use of Color[34]ub typedefs.
12 years ago
Vladimír Vondruš
aaa6d2e2b1
Fixed PrimitiveQuery documentation.
...
Somehow this slipped through when splitting out the timer functions into
TimeQuery in 5f00a1926d (a year ago!).
12 years ago
Vladimír Vondruš
1b2edafcec
WavAudioImporter: use PIC only when needed.
...
Also we don't export anything, so no need for -D*_EXPORTS definition.
12 years ago
Vladimír Vondruš
8ee4d08d87
ObjImporter: the indices are actually global to whole file.
...
There just isn't any sane and easily parsable format.
12 years ago
Vladimír Vondruš
77e38fcce3
New ObjImporter plugin.
12 years ago
Vladimír Vondruš
598f31b9e3
MeshTools: check for proper stride value in combineIndexArrays().
12 years ago
Vladimír Vondruš
6bd5db4c2b
MeshTools: check for out-of-range access also in combineIndexedArrays().
12 years ago
Vladimír Vondruš
14e4e78b6b
MeshTools: check out-of-range access in MeshTools::duplicate().
12 years ago
Vladimír Vondruš
dee57c4479
MeshTools: add std::vector overload to combineIndexArrays().
...
So the functions can *really* be used at runtime.
12 years ago
Vladimír Vondruš
733de78b34
Platform: fix AndroidApplication for Android < 4.0.
12 years ago
Vladimír Vondruš
b9b7262eba
GLSL ES 3.0 requires `es` in version directive.
12 years ago
Vladimír Vondruš
7b065d5aa6
Platform: initial support for touch/mouse events in AndroidApplication.
...
The API now mimics desktop (mouse), might be changed in the future to
properly support multitouch etc. features.
12 years ago
Vladimír Vondruš
d70b704883
Platform: consistent naming.
12 years ago
Vladimír Vondruš
c5f99aade0
Platform: be less greedy in bit flags.
12 years ago
Vladimír Vondruš
3e7469c62f
Platform: doc++.
12 years ago
Vladimír Vondruš
9527d39ad3
Added Context::extensionStrings().
...
Returns list of _all_ extensions reported by the driver, even those that
are not supported in Magnum and also those that are marked as disabled
due to driver bugs. Usable mostly when doing fresh port to new platform
to discover possible new features.
The actual implementation was part of Context constructor (and now this
function is called instead). It is rather ugly because we need to take
care of both GL 2.1 and GL 3.0 (and also ES2 and ES3).
12 years ago