Vladimír Vondruš
a5e8d4535c
Debug output operator for Version enum.
14 years ago
Vladimír Vondruš
5b707d3524
Using GLfloat as default template parameter also in Color.
14 years ago
Vladimír Vondruš
d2f0a2a045
Using default template arguments instead of GLfloat everywhere.
...
It was mainly in DimensionTraits usage. Also using DimensionTraits::*Type
for private members of physics shapes instead of manually specified
superclasses. The header is still included because of all the inline
accessors, so why not use the same type inside the class.
14 years ago
Vladimír Vondruš
642ab3b74d
WTF?
14 years ago
Vladimír Vondruš
def1d7b3c6
Class for putting marks into OpenGL command stream for use in debuggers.
14 years ago
Vladimír Vondruš
99ac6ff812
Added missing extensions into Context.cpp.
14 years ago
Vladimír Vondruš
04c8f21360
Fixed serious issue with Context::is*Supported().
...
Some extensions are not part of any core OpenGL version (such as
EXT_direct_state_access, EXT_texture_filter_anisotropic etc.), thus they
have None for core version. Current mechanism in
Context::isExtensionSupported() is that it checks for core version first
and if that is supported, it doesn't check for the extension itself.
Until now Context::isVersionSupported(None) returned always true, which
meant that all non-core extensions were marked as supported
_everywhere_.
14 years ago
Vladimír Vondruš
757ca13514
Sdl2Application: don't request specific OpenGL version.
...
I don't want to ditch old Intels with GL 2.1 yet. Also now the version
reported in Context is really the highest supported version, which
optimizes extension presence checks a bit.
14 years ago
Vladimír Vondruš
985b28cf07
Sdl2Application: fix modifiers everywhere, not only for key press.
14 years ago
Vladimír Vondruš
72ffca1dad
Cube primitive has now flat normals.
...
Exactly how would everyone expect.
14 years ago
Vladimír Vondruš
cf0ca06d39
NaClApplication: relative position in MouseMoveEvent.
14 years ago
Vladimír Vondruš
b013c0d26e
Sdl2Application: proper implementation of event accepting/rejecting.
...
It actually IS useful for event propagation.
14 years ago
Vladimír Vondruš
6dda7e4c1f
Convenience functions for accessing Matrix[34] vectors.
14 years ago
Vladimír Vondruš
7cdbad0557
Sdl2Application: also lock cursor to window when locking mouse.
14 years ago
Vladimír Vondruš
ddc0652272
Sdl2Application: make mouse locking functions public.
14 years ago
Vladimír Vondruš
fabbb99722
NaClApplication: fix improper assertion.
...
Apparently input events can be processed during buffer swapping. Now
asserting that callback from buffer swap is not called during input
event processing (which shouldn't, as both functions should be called in
the same thread).
14 years ago
Vladimír Vondruš
a7eff451d4
Added missing include.
...
Curious why it was unnoticed until now.
14 years ago
Vladimír Vondruš
6f492de8e3
Physics: work around cyclic dependency of ObjectShape.h and OSGroup.h.
14 years ago
Vladimír Vondruš
03e6c9859c
Mention forward declarations and headers in coding style.
14 years ago
Vladimír Vondruš
d2cd358495
Forward declarations for enums in SceneGraph.
14 years ago
Vladimír Vondruš
19a92f3ca7
Forward declarations for Physics namespace in Physics/Physics.h.
14 years ago
Vladimír Vondruš
858661fa7e
Sdl2Application: support for mouse locking.
14 years ago
Vladimír Vondruš
5b16dbb550
Sdl2Application: support for relative position in mouse move event.
14 years ago
Vladimír Vondruš
2ad7fea174
Sdl2Application: support for modifiers also in mouse events.
...
Lazily loaded on user request.
14 years ago
Vladimír Vondruš
c01c522248
Mention Native Client buffer requirements.
...
Allow more convenient target hint setting.
14 years ago
Vladimír Vondruš
deb629dde1
Doc: extended best practices page for future additions.
14 years ago
Vladimír Vondruš
308a92a911
Shaders: pass normal matrix the right way.
...
Besides that this was long overdue, GLSL ES doesn't have mat3x3().
14 years ago
Vladimír Vondruš
69ee2f3ebb
Shaders: don't compare ints and floats.
...
Fails on GLSL ES.
14 years ago
Vladimír Vondruš
57f3175b06
Shaders: GLSL ES doesn't have default values for uniforms.
...
If targetting GLSL ES the values are set on initialization explicitly
from application.
14 years ago
Vladimír Vondruš
3b3a164212
Doc++
14 years ago
Vladimír Vondruš
9b18e2b3e8
Don't issue draw call if there is nothing to draw.
14 years ago
Vladimír Vondruš
8abc836ae4
Allow passing nullptr to IndexedMesh::setIndexBuffer().
...
Similar functionality should be in Mesh itself for unbinding vertex
buffers.
14 years ago
Vladimír Vondruš
5ef729e897
Overloads in IndexedMesh to avoid WTFs in method chaining order.
14 years ago
Vladimír Vondruš
22cf5663c0
Use override keyword also here.
14 years ago
Vladimír Vondruš
d3385b54c6
Default constructor of ResourceKey creates zero key.
...
When resource access later fails on not loaded data, zero key in
assertion message might hint that the Resource instance was
default-constructed and thus not loaded at all.
14 years ago
Vladimír Vondruš
1809107ff2
Resource: assert when accessing not loaded data.
14 years ago
Vladimír Vondruš
681914e2d0
Forward declarations for Shaders namespace in Shaders/Shaders.h.
14 years ago
Vladimír Vondruš
8f83485653
Forward declarations for Magnum namespace in Magnum.h header.
14 years ago
Vladimír Vondruš
a636792b19
AbstractShaderProgram: query for max supported attribute count.
14 years ago
Vladimír Vondruš
0200ffe74c
NaClApplication: using special classes for input events.
...
NaCl and SDL2 are now hotswappable again without any unimplemented or
superfluous function parameters.
Also added missing EnumSet operators for Modifiers.
14 years ago
Vladimír Vondruš
5354396af6
Sdl2Application: using special classes for input events.
...
Will make lazy-loading possible and allows for less-constrained static
polymorphism.
14 years ago
Vladimír Vondruš
a3c37cd277
Doc++, minor cleanup.
14 years ago
Vladimír Vondruš
1a729aa3af
NaClApplication: mouse input handling.
14 years ago
Vladimír Vondruš
54dc556eb5
NaClApplication: keyboard input handling.
14 years ago
Vladimír Vondruš
3d92162505
Sdl2Application: cursor position for key events is not available either.
14 years ago
Vladimír Vondruš
9505e0b3c1
Sdl2Application: added missing keys.
...
Now nearly full static compatibility with AbstractXApplication.
14 years ago
Vladimír Vondruš
4f9e13b2cb
Sdl2Application: implemented modifiers.
...
In SDL they are only for keyboard events and there is no support
for mouse modifiers like in X. Also reordered the enum in
AbstractXApplication to make it consistent.
14 years ago
Vladimír Vondruš
6b35d7bf1d
@todo++
14 years ago
Vladimír Vondruš
36a55e1fc1
Documentation: portability tips.
14 years ago
Vladimír Vondruš
8789c31dec
Platform: macros for easier creation of application entry points.
14 years ago