Vladimír Vondruš
71f7e241fa
SceneGraph: removed fugly hack for detecting scene.
...
Previously the scene was its own parent, which was good sometimes back
then, but it became so ugly and complicated hack ("my friend has access
to my privates"-style) that it needed to be replaced with something less
ugly.
Now there is an function isScene() which is overloaded in Scene. Yes,
it's possible to overload it anywhere else, but you better shouldn't
even think about it.
14 years ago
Vladimír Vondruš
af8b01da88
SceneGraph: default Camera aspect ratio policy is to not preserve.
...
I thought and believed it was like that since forever, but I was wrong.
14 years ago
Vladimír Vondruš
d43e18a741
Initial support for 2D scene graph.
14 years ago
Vladimír Vondruš
c6e14dd348
SceneGraph: Initial support for projections with aspect ratio != 1:1.
...
Orthographic projection done, perspective projection needs total rework,
leaving it for later.
14 years ago
Vladimír Vondruš
27bbf23dff
SceneGraph: Simplified Implementation::Camera<3>::fixAspectRatio().
14 years ago
Vladimír Vondruš
f6d1aa7bc9
SceneGraph: Test for Implementation::Camera<3>::fixAspectRatio().
14 years ago
Vladimír Vondruš
810c06509a
SceneGraph: modifications to allow 2D implementation in future.
14 years ago
Vladimír Vondruš
c451b22392
Revert "Documentation: organizing the classes into "modules"."
...
It only caused another maintenance burden and was confusing to users.
Now when scene graph is in SceneGraph namespace there is no need for
another grouping. Namespaces are (and should be) sufficient.
This reverts commit 79945ab6fc .
Conflicts:
src/BufferedImage.h
src/BufferedTexture.h
src/Framebuffer.h
src/Query.h
src/SceneGraph/Scene.h
14 years ago
Vladimír Vondruš
e3ee7b487b
Moved Object, Scene and Light to separate SceneGraph library.
14 years ago
Vladimír Vondruš
3744d247d2
Adapted to Corrade changes.
14 years ago
Vladimír Vondruš
9d750179cd
Swapped template parameters in Vector/Matrix debug operator.
...
Forgotten in cc1f9c60c9 , swapped them to
make things consistent.
14 years ago
Vladimír Vondruš
8dbae4f09c
Added @todo .
14 years ago
Vladimír Vondruš
0e08138806
Added number*Vector and number/Vector operators.
14 years ago
Vladimír Vondruš
5157abc439
Disabled original Vector div/mult for non-arithmetic types.
14 years ago
Vladimír Vondruš
a4c80d18ed
Added component-wise multiplication and division to Vector.
14 years ago
Vladimír Vondruš
125a0fa9d1
Doc++
14 years ago
Vladimír Vondruš
26d70e0eae
Added move constructor and move assignment to Mesh.
14 years ago
Vladimír Vondruš
fec65aa6f5
Ability to construct Vector from another of different type.
14 years ago
Vladimír Vondruš
dc6f29bf08
Removed old cruft from documentation.
14 years ago
Vladimír Vondruš
88d988c715
Added Type and Size members to Matrix.
14 years ago
Vladimír Vondruš
6baf9581aa
Doc++
14 years ago
Vladimír Vondruš
4d1538c0a9
Added depth function to Framebuffer.
14 years ago
Vladimír Vondruš
6407600c06
Added stencil operations to Framebuffer.
14 years ago
Vladimír Vondruš
433b43906d
Added logical operation to Framebuffer.
14 years ago
Vladimír Vondruš
3597eb5dda
Added scissor test to Framebuffer.
14 years ago
Vladimír Vondruš
8084e28363
Doc++
14 years ago
Vladimír Vondruš
a491d54ed5
Added blend operations to Framebuffer.
14 years ago
Vladimír Vondruš
ee55d8425c
Added AbstractShaderProgram::bindFragmentDataLocationIndexed().
14 years ago
Vladimír Vondruš
129b7f23a7
Fixed typos (substract -> subtract).
14 years ago
Vladimír Vondruš
5ea1f104e8
Blending is not only alpha blending.
14 years ago
Vladimír Vondruš
ae843eb595
Added set*Mask() functions to Framebuffer.
14 years ago
Vladimír Vondruš
cd8b309ce8
Added @todo .
14 years ago
Vladimír Vondruš
80cd503bbd
Reorganized Framebuffer class and grouped its members.
...
Also marked everything related to blitting as unsupported in OpenGL ES
2.0.
14 years ago
Vladimír Vondruš
0177ec8b5d
Moved swizzle() functions to root namespace.
...
They aren't much useful in Math namespace and here it allows to handle
also Color3/Color4 types. Moreover all RGBA component names were removed
from Math namespace, so it would be inconsistent to have them there only
in swizzle() functions.
14 years ago
Vladimír Vondruš
eeca90c17c
Added @todos .
14 years ago
Vladimír Vondruš
cbdff68052
Clarified signed normalized texture types, formatting fixes.
...
Signed normalization results in [-1.0, 1.0], NOT [0.0, 1.0].
14 years ago
Vladimír Vondruš
d9dff2c046
Clarified required version and extension for R/RG textures.
14 years ago
Vladimír Vondruš
51f2478b1e
More precise double Math constants.
...
Double has 15-17 significant decimal digits precision, extended
the constant to have 15 decimal digits. On the other hand, float has
only 6-9 digits, so there is no need to have more than 9.
Added just-to-be-sure test for sqrt* constants.
14 years ago
Vladimír Vondruš
794f9bdec5
Minor cleanup.
14 years ago
Vladimír Vondruš
d03fe4d41d
Limited static polymorphism of EglContext and GlutContext.
...
If being careful, it's now possible to swap GlutContext with EglContext.
GlutContext doesn't have keyReleaseEvent() and many keys, but EglContext
doesn't have e.g. mouseMotionEvent().
14 years ago
Vladimír Vondruš
d5ab207552
Fixed compilation on non-GLES targets (oops).
14 years ago
Vladimír Vondruš
c74551e5c7
Doc++
14 years ago
Vladimír Vondruš
6c111182e1
WTF? sizeof(int) != 8 and sizeof(long long) != 16.
...
F'ed up in 57d6ded237 .
14 years ago
Vladimír Vondruš
5c5da2b2f3
Clarified required OpenGL versions for queries.
...
Query depends on 3.0/EXT_transform_feedback (also PRIMITIVES_GENERATED,
even if it wasn't in the specs), only part of SampleQuery requires
3.0/NV_conditional_render, the rest is in 2.1 already.
14 years ago
Vladimír Vondruš
26b6d40a8b
Added separate stencil formats to Renderbuffer.
14 years ago
Vladimír Vondruš
f2dbb9e8d9
Don't copy unneeded from AbstractTexture documentation.
14 years ago
Vladimír Vondruš
9cb27a4dc3
Depth/stencil can be stored only in renderbuffer in OpenGL ES 2.0.
...
Moreover only sized version is permitted.
14 years ago
Vladimír Vondruš
ac5969ee48
Don't copy enum value twice only because preprocessor.
14 years ago
Vladimír Vondruš
e7bb19b70b
Documented unsized internal depth/stencil format.
14 years ago
Vladimír Vondruš
6057693f9a
Clarified required GL version for some Query result types.
14 years ago