Vladimír Vondruš
cd2a8b74ac
Noexcept moving for Buffer, documented inability to copy.
13 years ago
Vladimír Vondruš
e19154be5e
Reducing pointer chasings, part 3a: less pointer passing in root namespace.
...
Passing pointer as function parameter will now mean that it is possible
to pass `nullptr`. Some code examples now look like the parameter is
copied instead of referenced, which is misleading. Updated the
documentation to reflect that more clearly.
13 years ago
Vladimír Vondruš
fbdbd4aa01
Implemented CHROMIUM_map_sub for Buffer.
13 years ago
Vladimír Vondruš
5f0d9297e2
Templated version of Buffer::{data,subData}().
...
More convenient for end user, assert that buffer size is divisible by T
size to avoid some issues.
13 years ago
Vladimír Vondruš
69a5c2f06f
Buffer data queries are not available in OpenGL ES.
...
Similarly to texture image queries.
13 years ago
Vladimír Vondruš
5b54b07210
Added Buffer::size(), Buffer::data() and Buffer::subData() queries.
13 years ago
Vladimír Vondruš
ca38c015f0
Refactored Buffer internals to follow GL naming conventions.
...
Similar reasoning as in 4a9b0b36ec .
13 years ago
Vladimír Vondruš
69c0c19ad2
Fixed off-by-one error in Buffer state tracking.
...
I have no idea why there is one more value than needed.
13 years ago
Vladimír Vondruš
deafd8f6ee
No deprecated Buffer::map() in ES3.
13 years ago
Vladimír Vondruš
ca3b0f7d63
Added debug output operator for Buffer::Target.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
35a918d050
Extension-aware Buffer and *Texture data invalidation.
...
If ARB_invalidate_subdata is not available, these functions do nothing,
instead of crashing on null pointer dereference. It results in more
convenient usage, enabling users to call them whenever they want,
improving performance on implementations which supports that.
14 years ago
Vladimír Vondruš
ae801ea945
OpenGL ES compilation fixes & workarounds.
14 years ago
Vladimír Vondruš
6fd67c978e
Buffer memory mapping.
...
I sincerely hope for glMapBuffer() being marked as deprecated.
14 years ago
Vladimír Vondruš
bb2fe188db
Updated OpenGL ES support in Buffer and related classes.
14 years ago
Vladimír Vondruš
53d82bda19
Got rid of default Buffer target.
...
For non-DSA access user can now specify target hint, which will be used
when binding the buffer internally.
14 years ago
Vladimír Vondruš
6b3781b97f
Tracking Buffer state.
...
Reduces OpenGL call count if subsequently binding the same Buffer into
the same Target.
14 years ago
Vladimír Vondruš
7004ebdd50
Using EXT_direct_state_access also for Buffer::set*Data().
14 years ago
Vladimír Vondruš
806828f173
First extension-aware functionality - Buffer::copy().
...
If EXT_direct_state_access is supported, it uses faster alternative to
explicit binding.
14 years ago
Vladimír Vondruš
5283b3b9cd
Buffer: support for copying.
14 years ago
Vladimír Vondruš
b945f5f68b
Happy New Year.
15 years ago
Vladimír Vondruš
8242a68e6a
SizeTraits, SizeBasedCall and relevant classes.
...
SizeTraits class provides suitable types for given data size at compile
time, SizeBasedCall can call suitable templated overload based on given
data size at runtime.
Also added meta classes Pow and Log for computing powers and logarithms
at compile time, usable mainly in conjunction with SizeTraits. Their
implementation is checked at compile-time using static_cast().
15 years ago
Vladimír Vondruš
c7b331d100
(Ahem...) Happy New Year!
15 years ago
Vladimír Vondruš
c38a1993db
More robust object parenting.
16 years ago
Vladimír Vondruš
3f02de7ce1
Renamed AbstractObject -> Object, draw() is now dummy instead of pure virtual.
16 years ago
Vladimír Vondruš
57380e0681
Small pedantic fixes.
16 years ago
Vladimír Vondruš
9b6f3582e3
Orthographic and perspective camera projections.
16 years ago
Vladimír Vondruš
c41d6ad582
New namespace Magnum::Math.
16 years ago
Vladimír Vondruš
eeb12e3414
Vector3 class with additional functions for three-component vectors.
16 years ago
Vladimír Vondruš
2a2d8c3dd5
Template vector class.
16 years ago
Vladimír Vondruš
8f0bacd2f8
Function for transposing matrix.
16 years ago
Vladimír Vondruš
09d74422d9
Initial commit
16 years ago