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š
8789c31dec
Platform: macros for easier creation of application entry points.
14 years ago
Vladimír Vondruš
d4286117e5
Added extension.
14 years ago
Vladimír Vondruš
1b06c24ae6
Physics: properly instantiate and export global debugdraw manager instance.
...
Otherwise it failed at runtime on assertion in instance().
14 years ago
Vladimír Vondruš
b2a5f535d7
ResourceManager: allow users to instantiate internalInstance() only once.
...
It is cumbersome, but otherwise the linking (on mingw) fails with
multiple definition errors.
14 years ago
Vladimír Vondruš
4cc78e4cd3
Physics: debug renderer for AABB.
...
Using common base for Box and AABB, as the primitives are the same, but
only draw function differs.
14 years ago
Vladimír Vondruš
124b5b73b6
ResourceManager: wrap global instance pointer in a function.
...
This way only single function can be marked with "extern template" to
avoid nasty issues with multiple definition errors.
14 years ago
Vladimír Vondruš
d1e6ff1490
ResourceManager: assertions on global instance pointer.
...
Better be sure than crash somewhere deep in STL code.
14 years ago
Vladimír Vondruš
51bc8bd675
Fixed compilation on mingw.
14 years ago
Vladimír Vondruš
1e2720eeb7
Explicit template instantiation for common matrix and vector functions.
...
Common types used in OpenGL have now explicit template instantiation for
debug operators and configuration value parsers/readers.
14 years ago
Vladimír Vondruš
ae78b77b10
Added some @todos .
14 years ago
Vladimír Vondruš
ee6d0ef438
Physics: ported debug draw to new SceneGraph.
...
Debug renderers are now subclasses of Drawable feature.
14 years ago
Vladimír Vondruš
07e70c70a3
Physics: adapted ObjectShape to new SceneGraph implementation.
...
Before it was subclass of Object, now it is implemented as feature.
14 years ago
Vladimír Vondruš
9e2b71d2a9
SceneGraph: test Object::transformations() for empty list.
14 years ago
Vladimír Vondruš
aa05235c65
SceneGraph: function for bulk cleaning of objects.
14 years ago
Vladimír Vondruš
466008bba8
SceneGraph: externalized object cleaning function.
...
Will be used elsewhere.
14 years ago
Vladimír Vondruš
4a561dd923
SceneGraph: minor renaming in ObjectTest.
14 years ago
Vladimír Vondruš
e7539b6fbd
Improved template implementation files documentation.
...
* ResourceManager won't have template implementation file, as it would
add too much work on the user.
* Color won't have either, as some internal functions are impossible to
explicitly instantiate.
14 years ago
Vladimír Vondruš
68a28f5098
Shaders: Fixed FlatShader fragment shader compilation.
14 years ago
Vladimír Vondruš
6dc7a163cc
SceneGraph: doc++
...
Mention default template arguments and LinkedList usage.
14 years ago
Vladimír Vondruš
8faf3323bb
SceneGraph: Solved default template parameter conflicts.
...
Using header with forward declarations, containing declarations for all
classes with default parameters. The classes themselves don't have the
defaults.
This also allows users to more conveniently forward-declare instead of
digging in sources and writing the declarations on their own.
14 years ago
Vladimír Vondruš
43770ada63
Doc++
14 years ago
Vladimír Vondruš
bfe99dcf23
Default type for DimensionTraits.
14 years ago
Vladimír Vondruš
fc9ac0fe0f
SceneGraph: split FeatureGroup and AbstractGroupedFeature file.
14 years ago
Vladimír Vondruš
f7d002d06d
Debug operator for shape type.
14 years ago
Vladimír Vondruš
6efb5607fa
SceneGraph: renamed multiplyTransformation() to transform().
...
It is shorter and looks better.
14 years ago
Vladimír Vondruš
767c9d6166
SceneGraph: AbstractCamera, Camera2D, Camera3D are now in separate files.
14 years ago
Vladimír Vondruš
616c4101cb
Doc++
14 years ago
Vladimír Vondruš
e508da2b6a
Moved AspectRatioPolicy enum out of Camera class.
...
It was pain to type it with all the template parameters (`typename
AbstractCamera<dimensions, T>::AspectRatioPolicy`,
`Camera3D<>::AspectRatioPolicy::Extend`...) and it looked like it is
different for each camera template (which internally wasn't).
14 years ago
Vladimír Vondruš
9d9517c824
Vector::angle(): reflect normalization requirement in parameter names.
...
Will be more intuitive when IDE autocompletion kicks in.
14 years ago
Vladimír Vondruš
643977abbd
Platform: support for NaCl applications.
14 years ago
Vladimír Vondruš
9cf48eee56
Platform: removed unneeded AbstractApplication base.
...
It's really not needed to have useless class defining only one function
(which wouldn't be used everywhere anyway).
14 years ago
Vladimír Vondruš
e1cd13021b
Platform/Application renaming.
...
Because with NaCl WindowContext doesn't make sense anymore, the classes
are now renamed:
* Contexts namespace -> Platform
* *WindowContext -> Application
Hopefully this is (one of) last crazy renaming runs.
14 years ago
Vladimír Vondruš
4d3dd19b9d
Initial NaCl support.
...
* Explicitly set OpenGL ES 2.0 support.
* Provide information about NaCl target to users.
14 years ago
Vladimír Vondruš
17ee1d7fd8
Shaders: portable vertex color shader (currently 2D only).
14 years ago
Vladimír Vondruš
81b69f17e1
Shaders: another iteration in porting of Phong and Flat shaders to GLES.
...
Hope the reduced precision won't hurt.
14 years ago
Vladimír Vondruš
2779455c5f
Moved configuration to root CMakeLists so it is near to option() calls.
14 years ago
Vladimír Vondruš
93a5e7230f
Use OpenGL ES 2.0 specific definitions for extension-only functionality.
...
If targetting explicitly OpenGL ES 2.0, only gl2.h is included (not
gl3.h).
14 years ago
Vladimír Vondruš
45a236fb07
Temporary workaround for extension-only functionality in ES 2.0.
...
Will be re-enabled when some solution for extensions is done.
14 years ago
Vladimír Vondruš
b6b15e387f
Don't compile and install unsupported functionality if targetting ES 2.0.
14 years ago
Vladimír Vondruš
9701c8dacb
If targetting exactly ES 2.0, hide everything not available there.
...
Some target platforms supply their own OpenGL headers, thus we cannot
use our own from ES 3.0 and compilation fails.
On the other hand, this will be better for users as usage of unsupported
features will be catched right during compilation and not at runtime.
14 years ago
Vladimír Vondruš
dfccdf9b7e
Minor pedantic ordering fix.
14 years ago
Vladimír Vondruš
67dbdd4b00
Fixed compiler warning when compiling with OpenGL ES support.
14 years ago
Vladimír Vondruš
5e648b2701
Fixed Color3/Color4 support in shader attributes.
14 years ago
Vladimír Vondruš
bef497c46a
SceneGraph rework, part 7: Drawable and Camera features.
...
* Camera is now templated also on underlying floating-point type.
* Drawable objects can be split into groups (e.g. for separated
rendering of transparent objects)
* Added (long time missing) test for draw() function.
14 years ago
Vladimír Vondruš
a65a0430d0
SceneGraph rework, part 6: base for grouped features.
14 years ago