Vladimír Vondruš
e213979559
Fixed compilation on OpenGL ES.
14 years ago
Vladimír Vondruš
d88171aaae
Simplified linking step.
14 years ago
Vladimír Vondruš
23f93cd65e
Mention @fn_gl and @def_gl in Coding Style manual.
14 years ago
Vladimír Vondruš
035bd4d376
Links to documentation of related gl*() function.
...
Each function touching OpenGL now has list of all related functions
touching OpenGL.
14 years ago
Vladimír Vondruš
f3a07f82f4
Method chaining for textures.
14 years ago
Vladimír Vondruš
0bf1b62080
Framebuffer: ability to specify which polygon facing to cull
14 years ago
Vladimír Vondruš
dfb4e0f807
Mesh: ability to specify which polygons are front facing.
14 years ago
Vladimír Vondruš
d5614a2f2c
Mesh: added support for polygon offset.
14 years ago
Vladimír Vondruš
fd1ae3f775
Mesh: added support for provoking vertex selection.
14 years ago
Vladimír Vondruš
092d2fc897
Doc++
...
* Workarounds for unsupported features in OpenGL ES.
* Initial values for some states.
14 years ago
Vladimír Vondruš
7d3435f483
SceneGraph: method chaining also for Camera.
...
Mention it also in documentation to hint users to use it.
14 years ago
Vladimír Vondruš
6b5c20bc83
Grouped global mesh settings together.
14 years ago
Vladimír Vondruš
b8d18d01ec
Using initializer lists in Primitives tests.
14 years ago
Vladimír Vondruš
b7d6a7e67d
De-inlined MeshTools::CompressIndices.
...
The class doesn't export anything templated in its API, so it's a waste
to have everything in the header.
14 years ago
Vladimír Vondruš
08c8696978
Doc++, added missing inline.
14 years ago
Vladimír Vondruš
fe62f547de
Reduced #includes in headers.
...
Magnum.h now doesn't include anything except OpenGL headers, thus
changes in Math library don't trigger recompilation of everything, but
only of things really depending on it.
Math constants moved to separate file for similar reasons, de-inlined
some functions to remove the need for some #includes.
14 years ago
Vladimír Vondruš
c78cc95284
Physics: Moved Point constructor to source file.
...
Point has virtual functions, this avoids creating vtable for it in every
compilation unit.
14 years ago
Vladimír Vondruš
7fbf28f4a1
Added Cylinder primitive.
14 years ago
Vladimír Vondruš
e17835e3b6
Primitives: Ability to specify number of cylinder rings on Capsule.
14 years ago
Vladimír Vondruš
de2b1b77d5
Using Compare::Containers in primitive unit tests.
14 years ago
Vladimír Vondruš
d12ce5b2b4
Fixed copy-pasta documentation.
14 years ago
Vladimír Vondruš
30032a5971
Don't confuse vertices and vertex positions.
...
Mesh consists of vertices, each vertex has position, texture coordinate,
color, normal, etc.
14 years ago
Vladimír Vondruš
6882cd9447
Fixed example (strongly typed enums) in AbstractShaderProgram.
14 years ago
Vladimír Vondruš
b9ed4159e0
Framebuffer: don't allow invalid bits to be present in *Mask enum sets.
...
Now ~Framebuffer::Clear::Color is equal to
Framebuffer::Clear::Depth|Framebuffer::Clear::Stencil, which wasn't the
case before, the same for BlitMask.
14 years ago
Vladimír Vondruš
685be07a8f
Removed parameter-less clear() from Framebuffer.
...
Automatic behavior could cause harm, as the stencil/depth test could be
temporarily disabled for some parts of the scene (but enabled for the
rest), causing clear() to leave stencil/depth buffer untouched.
14 years ago
Vladimír Vondruš
aeda5009df
Inlined simple function.
14 years ago
Vladimír Vondruš
268f678221
SceneGraph: Camera aspect ratio was not fixed after changing policy.
...
Also added test for projectionSize(), which couldn't be added before
because of gl*() calls.
14 years ago
Vladimír Vondruš
e1c22b9ca2
Don't do anything OpenGL-related inside Camera itself.
...
* The user might not want to call Framebuffer::clear(), because there
could be something already rendered with another camera.
* The user might not want to call Framebuffer::setViewport(), because
there could be different framebuffer attached.
14 years ago
Vladimír Vondruš
37b6049a62
Initial version of Profiler class.
14 years ago
Vladimír Vondruš
8ca083691a
SceneGraph: compute projection size from aspectratio-corrected matrix.
...
It isn't tested anywhere, because Camera is calling glViewport().
14 years ago
Vladimír Vondruš
08f26a7e3a
Oops, premature refactoring.
...
RectangularMatrix doesn't have ones on diagonal by default.
14 years ago
Vladimír Vondruš
1727357cc5
Gauss-Jordan elimination.
14 years ago
Vladimír Vondruš
742a75277d
Moved unary operator- from Vector to RectangularMatrix.
14 years ago
Vladimír Vondruš
166afd5248
Documented missing features in Mesh in OpenGL ES.
14 years ago
Vladimír Vondruš
e21c9ca3a5
Function for computing trace of square matrix.
14 years ago
Vladimír Vondruš
3558859cc6
Utility function for clamping value in given limits.
14 years ago
Vladimír Vondruš
fb61c22e07
Fixed matrix multiplication in RectangularMatrix subclasses.
...
Now all possible cases are properly handled (row vector * column vector,
column vector * row vector, ...). All operators taking arbitrary type as
argument (element-wise multiplication) now have std::enable_if only for
numerical types.
14 years ago
Vladimír Vondruš
70402d687f
Added missing #include.
14 years ago
Vladimír Vondruš
630a415324
Non-constant access to image data.
...
Sometimes something needs to modify the data (in similar way it modifies
e.g. MeshData) and there is no reason to forbid that, as the data must
be non-const for delete[] operator anyway. There might be slight problem
with ImageWrapper, which should be able to wrap const data, but
currently nothing needs it.
14 years ago
Vladimír Vondruš
357b744d59
Vector function and operator reimplementation also for Color.
14 years ago
Vladimír Vondruš
8911dbdffe
Moved multiplication and division from Vector to RectangularMatrix.
14 years ago
Vladimír Vondruš
4bcc805616
Moved add/subtract operators from Vector to RectangularMatrix.
14 years ago
Vladimír Vondruš
90881e7337
New base for matrices and vectors: RectangularMatrix.
...
Currently moved only non-square functionality from Matrix there. Also
static constant members such as row/column count and size are now
lowercase, as they are variables, not types.
14 years ago
Vladimír Vondruš
070c4c1901
Removed unneeded friend declaration.
14 years ago
Vladimír Vondruš
9461f780c4
Ability to set buffer (sub)data from fixed-size array.
...
Currently you had to do this, even if sizeof(data) was known at compile
time:
GLfloat data[] = { 2.0f, -1.5f, 3.0f, 7.0f };
buffer.setData(sizeof(data), data, usage);
Now it's enough to do this:
buffer.setData(data, usage);
14 years ago
Vladimír Vondruš
a386a5ed35
OpenGL ES compilation fixes.
14 years ago
Vladimír Vondruš
0e74c3847d
Support for storing matrices and vectors in configuration.
14 years ago
Vladimír Vondruš
d5d4215a45
Color: test for debug operators.
14 years ago
Vladimír Vondruš
1ade64ca6b
New crossreferenced @debugoperator alias.
14 years ago
Vladimír Vondruš
2b62cc4012
Prefer to use (col, row) instead of [col][row] on matrices.
...
They should be in theory both compiled to the same code, but in practice
[][] sometimes fails during optimization.
14 years ago