Vladimír Vondruš
02b71d6b15
MeshTools: removed dependency on MeshBuilder in Clean and Subdivide.
...
SubdivideCleanBenchmark and Primitives library currently doesn't
compile, will be fixed in next commits.
14 years ago
Vladimír Vondruš
9e81d4b6c3
Fixed awesome mistake in Math::TypeTraits.
...
Epsilon value for integral types should be 1, not 0. Updated
documentation and test to reflect the change.
14 years ago
Vladimír Vondruš
571f41f53f
MeshTools: removed dependency on MeshBuilder in Tipsify.
14 years ago
Vladimír Vondruš
fb0c4f0d15
MeshTools: tool for interleaving attribute arrays.
...
All passed attribute arrays must have the same length, otherwise zero
length array is generated.
14 years ago
Vladimír Vondruš
9ea3a36105
Added function Mesh::isInterleaved().
14 years ago
Vladimír Vondruš
bca691f2b7
MeshTools: tool for compressing index array.
...
The same functionality which is buried inside MeshBuilder, but properly
tested and more usable.
14 years ago
Vladimír Vondruš
f7ba048c06
Using operator() instead of run() in MeshTools.
...
In other words I finally discovered how to work around C++'s most vexing
parse.
14 years ago
Vladimír Vondruš
b0b1a401d1
Counting attributes from 0, not from 1.
...
Caused awesome black screen on AMD cards.
14 years ago
Vladimír Vondruš
36254a3806
Win fixes: don't export nonexported classes and export exported classes.
14 years ago
Vladimír Vondruš
6504aecf0c
Added classes Image and BufferedImage.
...
These classes are meant to be used in the same texture updating
functions as Trade::ImageData due to static polymorphism. In addition to
Trade::ImageData, which is read-only, these classes support updating the
dimensions and data. Image2D and ImageBuffer2D can update the data also
from framebuffer.
14 years ago
Vladimír Vondruš
c1374155b0
Math: function to compute product of all values in the vector.
...
Is this mathematic operation at all?
14 years ago
Vladimír Vondruš
62d0fa96a8
Added Buffer:setSubData() functions.
14 years ago
Vladimír Vondruš
0feebe3f7c
Function for unbinding given buffer target.
14 years ago
Vladimír Vondruš
10b8eda20a
Inlined functions.
14 years ago
Vladimír Vondruš
7bae1a3f8a
Renamed data access classes in Trade to avoid confusion.
14 years ago
Vladimír Vondruš
42b10e775b
Removed old untrue documentation from Trade::AbstractImporter.
14 years ago
Vladimír Vondruš
5fa2f2e03f
Optimized #include.
14 years ago
Vladimír Vondruš
33e822a397
Function for pixel size of given color format and data type per channel.
...
Also documented the formats a little.
14 years ago
Vladimír Vondruš
d7a497b87b
Make Camera::setViewport() virtual.
14 years ago
Vladimír Vondruš
d702c13195
Added Object::scale() for scaling proportionally in all dimensions.
14 years ago
Vladimír Vondruš
a64fbfbe63
Use OpenGL-compatible types in camera viewport size.
14 years ago
Vladimír Vondruš
91cbe3040d
Cleaned up alien stuff from CMakeLists.txt
14 years ago
Vladimír Vondruš
e43c1fae33
Strongly-typed Primitive enum in Mesh.
...
Also updated "default" constructor to include primitive type, as in many
cases only the primitive is specified and not the counts and types of
data.
14 years ago
Vladimír Vondruš
fb9b003e24
Buffer rework.
...
* Renamed Type enum to Target to be consistent with OpenGL naming
* Strongly typed enums
* Ability to specify different type when binding/setting data
* Added missing buffer targets
14 years ago
Vladimír Vondruš
e98ca5b03a
Moved drawing functions from Scene to Camera.
...
Also removed non-trivial orthographic projection and clear color
defaults, addded GL_STENCIL_BUFFER_BIT to glClear().
14 years ago
Vladimír Vondruš
a0ba7663b0
Doc++
14 years ago
Vladimír Vondruš
62d1860db1
Don't use virtual when reimplementing virtual function.
14 years ago
Vladimír Vondruš
8cdf5e87c4
Strong typed texture targets.
...
Only those targets which are meaningful for given dimension are
available.
14 years ago
Vladimír Vondruš
6cd72578f0
Greatly simplified Texture::setWrapping().
...
Temporarily removed the check for not setting repeat wrap mode on
rectangle textures.
14 years ago
Vladimír Vondruš
66956688d4
Using class constant instead of template parameter.
14 years ago
Vladimír Vondruš
e77b38d20b
Reworked Mesh / IndexedMesh to use new type traits and Type enum.
14 years ago
Vladimír Vondruš
1ff99b0413
Added TypeInfo and TypeOf classes to type traits.
...
TypeOf converts Type enum value to type, TypeInfo provides some
of the information provided by TypeTraits at runtime.
14 years ago
Vladimír Vondruš
52971935ab
Using strongly-typed enum for plain OpenGL types.
...
Mesh and IndexedMesh is not completely ported, as it will need more
work.
14 years ago
Vladimír Vondruš
856b8b44a5
Moved static_asserts from TypeTraits header to implementation.
14 years ago
Vladimír Vondruš
1015ac258e
Fixed (non-deadly) mistake in TypeTraits.
14 years ago
Vladimír Vondruš
476e8285cd
Simplified massive repeated code in CubeMapTexture.h.
14 years ago
Vladimír Vondruš
c7894df33f
Doc++
14 years ago
Vladimír Vondruš
70fa53b949
Removed unbind() from buffers and textures.
...
It doesn't help with any safety, but just complicates everything and
makes unnecessary GL calls.
14 years ago
Vladimír Vondruš
cbda9712e2
Added (incomplete) check() function to development PKGBUILD.
...
Incomplete check is still better than no check.
14 years ago
Vladimír Vondruš
d8943b898c
Use nullptr instead of 0 for pointers.
14 years ago
Vladimír Vondruš
49b126abc6
Don't try to develop our own OpenGL (naming).
14 years ago
Vladimír Vondruš
5bff1c385b
Using delete[] for char array.
14 years ago
Vladimír Vondruš
d40a80b3d0
Fixed crash on deletion of Object children.
...
setParent(0) modifies list of children in parent object, thus the for
cycle will break. Curious that I didn't notice that before.
14 years ago
Vladimír Vondruš
f855d72660
Totally reworked Trade::AbstractImporter.
...
AbstractImporter now provides access to the data directly and doesn't
attempt to do any OpenGL stuff, thus making everything more transparent
and testable.
14 years ago
Vladimír Vondruš
5818a76850
New library with sample shaders, currently only Phong shader.
14 years ago
Vladimír Vondruš
8cc445d164
Using own Corrade::Debug class instead of cerr in Shaders.
...
Also improved and unified the messages and added messages when
uniformLocation() fails or attribute is bound after linking.
14 years ago
Vladimír Vondruš
f5c8ae6bd6
Include Qt include dir for building tests.
14 years ago
Vladimír Vondruš
6309cda444
Use proper LIB_SUFFIX for libraries installation path.
14 years ago
Vladimír Vondruš
0945c50aa6
Removed "active camera" from Scene.
...
It was overengineered and unnecessarily complicated. Now the camera is
specified only in Scene::draw(), which eliminates all the needs for
recalculating absolute object transformations on each camera
transformation change. Absolute object transformation is now computed
relative to root object or relative to camera object passed as
parameter. Because of that it is now also possible to draw the scene
using multiple cameras at once.
14 years ago
Vladimír Vondruš
6e4523f162
Fixed memory leak in ObjectTest.
14 years ago