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š
1c51409fb4
TGAImporter: adapted to Magnum changes.
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š
e6b5a982a4
Fixed linker errors with MinGW32 build.
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
Vladimír Vondruš
f585d39146
Added Math::TypeTraits, implementing fuzzy comparison based on type.
...
Fuzzy comparison is implemented only on floating-point types with
type-specific epsilon, on integral types classic operator== is used.
TypeTraits class is now extension of Math::TypeTraits (where it makes
sense).
14 years ago
Vladimír Vondruš
c2aed9d5af
Updated TypeTraits documentation, show all functions inline.
14 years ago
Vladimír Vondruš
34a84dc677
Using nullptr instead of 0.
14 years ago
Vladimír Vondruš
ea853308f8
Adapted to Magnum changes, renamed namespace Plugins to Trade.
14 years ago
Vladimír Vondruš
e357f24e70
Scene::viewportWidth/viewportHeight were never set, got rid of them.
...
Caused setting viewport size to some random and possibly dangerous value
after assigning camera to the scene.
14 years ago
Vladimír Vondruš
dacd31fcc5
Moved AbstractImporter and Image to new Trade namespace.
...
Start of AbstractImporter rework - Trade namespace will contain simple
classes usable for exchanging data with other formats, importers will
not depend on any OpenGL functionality, they will just provide access to
plain data.
14 years ago
Vladimír Vondruš
3174570969
Moved ColorFormat enum back to AbstractTexture.
14 years ago
Vladimír Vondruš
96b072f87d
AbstractImporter: allow direct file opening, added Feature enum.
...
Each importer must now specify whether it can open files or streams in
features() and implement one or both open() functions. Default
implementation of open() functions now prints message on error output
and returns false.
14 years ago
Vladimír Vondruš
65986a1cef
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
53170e0437
TGAImporter: adopted to Magnum changes, allow direct file opening.
14 years ago
Vladimír Vondruš
1f455e8b39
Fixed Primitives::Icosphere compilation.
...
Forgot to use new MeshTools functions for mesh cleaning.
14 years ago
Vladimír Vondruš
31fd5bfb32
Added another constructor to MeshTools::AbstractIndexTool.
...
Not forcing to use MeshBuilder, passing just index array and vertex
count.
14 years ago
Vladimír Vondruš
c77bc6d916
Added AbstractImporter::meshData() for accessing mesh data.
14 years ago
Vladimír Vondruš
0c67d17148
MeshTools: implementation of Tipsify algorithm.
...
Algorithm used: Pedro V. Sander, Diego Nehab, and Joshua Barczak, Fast
Triangle Reordering for Vertex Locality and Reduced Overdraw, SIGGRAPH
2007, http://gfx.cs.princeton.edu/pubs/Sander_2007_%3ETR/index.php
Also created new shared MeshTools library.
15 years ago