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
Vladimír Vondruš
990dccdd76
Documentation: better word order.
14 years ago
Vladimír Vondruš
2c48e30858
Simplified Object::multiplyTransformation().
14 years ago
Vladimír Vondruš
be98437682
De-inlined Light::clean().
14 years ago
Vladimír Vondruš
1619a2fa0b
Don't forget to delete VAO on scene destruction.
14 years ago
Vladimír Vondruš
408aa7faf5
Fixed yet another collision with windows.h. I hate it.
14 years ago
Vladimír Vondruš
8efb5a1e42
Added dllimport/dllexport macros for Windows builds.
14 years ago
Vladimír Vondruš
4015625625
Updated .gitignore
14 years ago
Vladimír Vondruš
c0123a5710
MinGW32 development PKGBUILD.
14 years ago
Vladimír Vondruš
78ce126cbb
Fixed pedantic compiler warning.
14 years ago
Vladimír Vondruš
8b382f171f
Fixed FindGLEW.cmake for Windows build.
14 years ago
Vladimír Vondruš
b86c96f78d
Don't install FindMagnum.cmake if crosscompiling.
14 years ago
Vladimír Vondruš
8cf585ac3a
Fixed dependencies in development PKGBUILD.
...
Qt is needed only for building tests, thus it is in makedepends, GLEW on
the other hand is needed all the time, as it is dynamic library. Mesa is
dependency of GLEW, thus removing it.
14 years ago
Vladimír Vondruš
b2c1937538
Added toolchains submodule.
14 years ago
Vladimír Vondruš
8d525be511
Using TypeTraits::epsilon and TypeTraits::equals instead of EPSILON.
...
Improves comparison performance on integral Matrix and Vector, fixes NaN
comparison bug (but infinity bug is still present).
14 years ago