Robert Osfield
7505cb4603
Fixed orientation of quad strips.
3 years ago
Robert Osfield
51924943e2
Removed unnedded include
3 years ago
elsid
969c1821be
Add move constructor and move assignment operator to ref_ptr
...
Use conditional compilation to make it work only with C++11 support.
3 years ago
valid-ptr
e260dfb582
merged with upstream/OpenSceneGraph-3.6
4 years ago
Gleb Mazovetskiy
8b2e02b71d
Ensure global Mutex is initialized before Registry
...
A Registry instance may be accessed before the global mutex, e.g. here:
e77f50371c/src/osgText/Font.cpp (L49)
This leads to the Mutex being destroyed before the Registry is destroyed.
This causes a crash at exit, as described in #1048 .
Fixes #1048 .
4 years ago
Robert Osfield
5d51e5bf2a
Fixed META_ macro usage
4 years ago
Robert Osfield
94d5211f43
Ran dos2unix to fix line endings
4 years ago
Robert Osfield
23b4345517
Merge pull request #1032 from glebm/3.6-backport-deprecations-fix
...
Back-port (cherry-pick) warnings fixes into 3.6
4 years ago
Gleb Mazovetskiy
f36e9f2a4a
include/osgViewer: Fix typo
...
Follow-up to #1027
4 years ago
Robert Osfield
b7c186f6d3
Fixed warnings reported by gcc-9.3.0
...
Note from glebm@:
Back-ported from e0d5e4b0ff
Identical except for the changes to `MatrixTemplate`, which does not
exist in 3.6
4 years ago
Gleb Mazovetskiy
b4663ded94
osgAnimation/Keyframe: Fix -Wshadow warning
...
```
include/osgAnimation/Keyframe:108:53: warning: declaration of 'iterator' shadows a member of 'osgAnimation::TemplateKeyframeContainer<osgAnimation::TemplateCubicBezier<double> >' [-Wshadow]
108 | for(std::vector<unsigned int>::iterator iterator = intervalSizes.begin() ; iterator != intervalSizes.end() ; ++ iterator) {
| ^~~~~~~~
include/osg/MixinVector:39:44: note: shadowed declaration is here
39 | typedef typename vector_type::iterator iterator;
| ^~~~~~~~
```
4 years ago
Gleb Mazovetskiy
44d3da02a9
Fix osgViewer `USE_GRAPHICSWINDOW` without a windowing system
...
There is no way for the user to know whether OSG was compiled with a
windowing system.
This means calling USE_GRAPHICSWINDOW() in client libraries was unsafe
in the case of the "None" windowing system, as it would fail to link.
Turns the call into a no-op in that case.
4 years ago
Gleb Mazovetskiy
0161b8ab46
include/osg/Callback: nullptr -> NULL
...
Fixes travis, which explictly requires c++98
4 years ago
valid-ptr
aed9fd74f6
Wrong argument name rename: uniformMap -> defineMap
4 years ago
valid-ptr
6cd699e55f
GLExtensions: isTextureCompressionASTCSupported (ASTC compression texture), isTextureLODBiasSupported (is needed for GL_TEXTURE_LOD_BIAS) flags added
4 years ago
Matthew Reid
073cfab166
Added support for sRGB texture formats
4 years ago
Robert Osfield
7994bfa767
Merge branch 'OpenSceneGraph-3.6' into build/windows_clang_3.6_target
4 years ago
Ralf Habacker
c3108697de
Add support for showing environment variables provided by osg plugins
4 years ago
MeyerFabian
ba70c7d543
build/windows_clang
4 years ago
OpenSceneGraph git repository
14e7bc5a17
Merge pull request #902 from mp3butcher/oqn
...
3.6 OQN API convergence
5 years ago
dedowsdi
a90a9a0a15
Add getPreRenderList getPostRenderList to RenderStage.
5 years ago
Daniel Trstenjak
ddb72691bc
OcclusionQueryNode: fix resetting to default query geometry
...
When the query geometry gets reset to its default then its
vertices have to be updated by the bounding box dimensions of
the current children of the OcclusionQueryNode.
5 years ago
Daniel Trstenjak
817d92b703
OcclusionQueryNode: fix use case of user defined query geometry
...
The user defined query geometry handling has been broken in several ways.
The previous way of defining a query geometry was using the non const
`getQueryGeometry` method and overriding its members. But then
`OcclusionQueryNode` wasn't aware of the geometry change and couldn't
internally handle it correctly.
The `computeBound` method never considered a user defined query geometry and
always just overrode the vertices of the geometry.
The member `_validQueryGeometry` wasn't correctly set.
This change should fix all this issues by introducing a small backward
compatibility break. The non const `getQueryGeometry` method is removed
forcing the user to use the `setQueryGeometry` method. But then `OcclusionQueryNode`
is aware of the user defined query geometry and can handle it correctly.
5 years ago
OpenSceneGraph git repository
3930621edc
Merge pull request #895 from openscenegraph/CurrentThreadId
...
Added commment explaining that OpenThreads::Thread::CurrentThread() r…
5 years ago
Robert Osfield
9305485a11
Added commment explaining that OpenThreads::Thread::CurrentThread() return NULL on non OpenThreads thread.
5 years ago
Robert Osfield
9e75926338
Added support for using CurrentCodePage functionality with osgText::String
...
To the DXF plugin added Option string support for using CurrentCodePage|WidePage, UTF8, UTF16, UTF32 and FontFile=filename
5 years ago
Robert Osfield
d1ff16614c
Added Thread::CurrentThreadId() method to wrap up thread id functionality in a more platform appropriate way.
5 years ago
valid-ptr
51fee80224
glInvalidateFramebuffer added to GLExtensions
5 years ago
konstantin.matveyev
fefabb6c2b
glFramebufferTexture2DMultisample added to GLExtensions
5 years ago
Laurens Voerman
23b7c4d47d
fix apple carbon reference
5 years ago
Julien Valentin
0c142215b9
remove return of local pointer
5 years ago
Robert Osfield
149c04b0df
Added a _fontFallback to TextBase to cache any fallback font (usually DefaultFont) that is used when the Textbase::_font is null.
5 years ago
Robert Osfield
24d61c2df0
Change the DefaultFont so that it's managemed via the ObjectCache to enabl it to be release and cleared in a central manner.
...
Added call to Registry::releaseGLObjects() to osgViewer/Renderer.cpp to enable automatic clean up of objects in the ObjectCache.
5 years ago
Robert Osfield
079cf6c090
Added FrameBufferAttachment::resizeGLObjectBuffers(..) and releaseGLObjects(..) methods
5 years ago
Laurens Voerman
3ccdc66717
fix indentation for osgt files for windows dynamic library build.
5 years ago
Capostrophic
066c272f7a
Override default behavior for linear vector interpolations
6 years ago
Capostrophic
12b298130a
Add OSG_USE_FLOAT_QUAT build option to use single precision quaternions
6 years ago
Daniel Trstenjak
5624a22fe4
OcclusionQueryNode: ensure a valid query geometry
...
If the query geometry is invalid then don't do any occlusion queries and
never traverse the subgraphs.
6 years ago
Julien Valentin
43574b52c1
uncomment INLINE_DRAWABLE_DRAW
6 years ago
OpenSceneGraph git repository
1504a54cd8
Merge pull request #702 from mp3butcher/fix36
...
add MeshReindexation flag
6 years ago
Robert Osfield
02d7d980a7
Introduced a QueryGeometry::getQueryResult(const osg::Camera*) method as a more informative replacedment for QueryGeometry::getNumPixels().
6 years ago
Daniel Trstenjak
c8521068a5
OcclusionQueryNode: add resetting of queries
...
If there's a big view change then it might not be appropriate to wait
for '_queryFrameCount' till the next query is issued, because then
geometry might pop into the view after '_queryFrameCount'.
This is especially important for applications not having a constant
frame rate, but just issue a new frame on demand.
6 years ago
mp3butcher
832d8d5228
fix variable name
6 years ago
OpenSceneGraph git repository
968a427e00
Changed the member variable to be consistent with the method name.
6 years ago
mp3butcher
b8f9249bea
add a bool parameter to allow forced reindexation of a mesh
6 years ago
Robert Osfield
749dc86dd3
Fixed typo
6 years ago
Robert Osfield
84bae01643
Added separate test and rest of _currentVAO to State::resetCurrentVertexArrayStateOnMatch(..) method
6 years ago
Robert Osfield
8a5d1b9f44
Changed resetCurrentVertexArrayStateOnMatch() to reset _vas tp _globalVertexArrayState and currentVAO to 0.
6 years ago
Robert Osfield
488b4854b2
Added reset of the State::CurrentVertexArrayState() to prevent the State::_vas becoming a dangling pointer when VertexArrayState objects are deleted.
6 years ago
Robert Osfield
6455159757
Added calling of releaseGLObjects() and resizeGLObjects() to the Camera DrawCallback's to enable the draw callbacks to clean up their own GL objects.
6 years ago