Robert Osfield
aee747885a
Changed resetCurrentVertexArrayStateOnMatch() to reset _vas tp _globalVertexArrayState and currentVAO to 0.
2019-01-21 18:13:43 +00:00
Robert Osfield
336791ca35
Added reset of the State::CurrentVertexArrayState() to prevent the State::_vas becoming a dangling pointer when VertexArrayState objects are deleted.
2019-01-21 17:38:40 +00:00
Robert Osfield
68e4341cb4
Added calling of releaseGLObjects() and resizeGLObjects() to the Camera DrawCallback's to enable the draw callbacks to clean up their own GL objects.
2019-01-19 16:18:48 +00:00
Robert Osfield
32db852c77
Moved resizeGLObjects/releaseGLObjects out of Referenced to avoid multiple inheritance warnings
2019-01-12 11:28:25 +00:00
Robert Osfield
466bbc6740
Fixed for crashes on exit associaciated with VAO usage and vairous niche usage cases
2019-01-08 19:35:37 +00:00
Robert Osfield
9a21a1d1cf
Fixed build error when GL_USE_FLOAT_PLANE is used
2018-10-23 09:11:49 +01:00
Robert Osfield
5962d2580f
From Andy Skinner, Added ~GLExtensions to clear cached values for context ID
2018-10-02 12:29:30 +01:00
Robert Osfield
b94c797ed6
Fixed build
2018-09-11 09:32:15 +01:00
Jason Beverage
89a5d8b513
Protect the _programSet in Shader with a mutex.
...
This prevents thread safety issues when Shader objects are used in
multiple programs.
2018-09-04 10:35:38 -04:00
Robert Osfield
71f134c64b
Created a GLenum Texture::selectSizedInternalFormat(const osg::Image* image=0) const method to help clean up set up of glTexStorage.
...
Fixed typo.
2018-08-17 12:22:36 +01:00
Chris White
c3880a25b6
Remove duplication of REGISTER_WINDOWINGSYSTEMINTERFACE code
...
Refactor so GraphicsWindowWin32 doesn't duplicate code in
<osg/GraphicsContext>.
Also, add OSGVIEWER_EXPORT to X11WindowingSystemInterface so
X11WindowingSystemInterface examples can build on cygwin.
This change parallels that in commit 0bca415d5a
.
2018-08-15 12:49:01 -04:00
Vic-Min
e7583207db
Renamed USE_DEPRECATED_API to OSG_USE_DEPRECATED_API
2018-08-08 15:05:53 +03:00
OpenSceneGraph git repository
86bd4a4e8b
Merge branch 'master' into imagebinding3
2018-07-23 07:57:23 +01:00
Robert Osfield
dbcd3b0324
Added GLExtensions::isPointSpriteModeSupported to allow it to be enable for GL versions that support GL_POINT_SPRITE_ARB/GL_POINT_SPRITE_OES
2018-06-27 11:04:14 +01:00
Robert Osfield
d2c2ef3ec9
Moved osg::clampProjectionMatrix() template from CullVisitor.cpp into include/osg/CullSettings to make it easier to implement custom clampProjectionMatrix callbacks
2018-06-25 20:03:50 +01:00
Robert Osfield
8127ddc541
Fixed type of Timer_t under Windows
2018-05-23 06:34:51 +01:00
Robert Osfield
0bca415d5a
Restored the REGISTER_WINDOWINGSYSTEMINTERFACE macro to the include/osg/GraphicsContext header and removed the OSGVIEWER_EXPORT as this was causing compatibility issues with osgQt.
...
In GraphicsWindowWin32 replaced REGISTER_WINDOWINGSYSTEMINTERFACE usage with locally implemented equivilant with the required OSGVIEWER_EXPORT.
2018-05-21 13:19:06 +01:00
Robert Osfield
c4c84d4f94
Moved REGISTER_WINDOWINGSYSTEMINTERFACE from include/osg/GraphicsContext to include/osgViewer/GraphicsWindow and added OSGVIEWER_EXPORT
2018-05-18 15:33:29 +01:00
Robert Osfield
41f7efbab6
Imoroved backwards compatibility with 3.6
2018-05-14 10:47:50 +01:00
Robert Osfield
bc600bc9f7
Fixed crash when using ShapeDrawable with a TriangleMesh or ConvexHull shape due to missing texture coords
2018-05-13 11:53:21 +01:00
Robert Osfield
ac6eaee583
Fixed build when OSG_ENVVAR_SUPPORTED is disabled and quietened down warnings using OSG_UNUSED* macros
2018-05-10 19:00:13 +01:00
Alberto Luaces
bc4f181d41
Fix typos and spelling.
2018-04-20 18:18:22 +02:00
Robert Osfield
0dd5230d82
Cleaned up inbludes and unused code
2018-04-20 14:01:21 +01:00
Robert Osfield
85c835b902
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2018-04-19 20:11:19 +01:00
Robert Osfield
0836fa602a
Fixed the GLBufferObject size computation so that it takes into account padding.
2018-04-19 19:45:29 +01:00
Jason Beverage
7250cd717c
Removed unimplemented Uniform::getNameID from Uniform header as it's defined in UniformBase now.
2018-04-18 14:59:51 -04:00
Robert Osfield
724dbac41c
Fixed inline Drawable::draw(..) method
2018-04-16 15:08:24 +01:00
Robert Osfield
e884df59c7
Pulled in latest changes from 3.6 branch
2018-04-07 18:14:57 +01:00
Frank Bausch
72ab22e539
When testing XYZ/ECEF coordinate values that convert to LLA points with latitude = 90.0 or latitude = -90.0, the heights calculated by EllipsoidModel::convertXYZToLatLongHeight have substantial errors. With the provided change, points at the pole are handled more correctly. This has been tested against US NGA GoldData.
2018-04-04 08:50:39 +01:00
Robert Osfield
5c48904626
Rewrote the handling of AutoTransform::setAutoScaleToScreen(bool) functionality so that is disabling CullingActive when switched on.
2018-04-02 18:26:26 +01:00
Hartwig
1b3928a017
Removal of compiler warnings caused by integer conversions
...
In most systems today sizeof(size_t) is larger than sizeof(GLsizei). Therefore, the inclusion of GLExtensions may introduce a lot of compiler warnings as array.size() (of type size_t) is passed to a function with a parameter of type GLsizei.
2018-03-25 19:04:10 +02:00
Robert Osfield
deef029823
Fixed member variable names to avoid conflicts with osg::Node
2018-03-23 20:07:08 +00:00
Robert Osfield
76c584ab25
Added osg::UnfiromBase* StateSet::getUniformBase(..) and osg::Uniform* StateSet::getUniform(..) methods to help with backwards compatibility
2018-03-19 12:08:28 +00:00
Robert Osfield
98a7772fa7
Merge branch 'master' into shader_pipeline
2018-03-06 10:24:26 +00:00
Robert Osfield
64341cfb72
Added State::glDrawBuffer/glReadBuffer() method to implement lazy state updating for glDrawBuffer and glReadBuffer
2018-03-06 09:49:02 +00:00
Daniel Emminizer
28544a4e29
Minor typo fix on osg::StateAttribute
2018-03-05 10:26:54 -05:00
Robert Osfield
1b8567e11e
Added deprecated comments for ShaderComposer
2018-03-05 14:39:07 +00:00
Robert Osfield
1ae954f5c3
Merge branch 'master' into shader_pipeline
2018-02-28 09:11:29 +00:00
Robert Osfield
99bcd95756
Replaced GL_TEXTURE_2D_ARRAY_EXT with GL_TEXTURE_2D_ARRAY
2018-02-28 08:50:48 +00:00
Robert Osfield
351e8e3fe1
Merge branch 'master' into shader_pipeline
2018-02-19 11:23:29 +00:00
OpenSceneGraph git repository
56baa7bf04
Merge pull request #479 from LaurensVoerman/submit_vc14WarnC4800_v2
...
move Get/SetScalarvalue out of ValueObject and provide specialization…
2018-02-19 10:14:36 +00:00
OpenSceneGraph git repository
c52ae4f99f
Changed the doxygen control characters and clarifications
2018-02-19 08:39:23 +00:00
Hartwig Wiesmann
f01383c02a
Addition of comments for ClusterCullingCallback
2018-02-18 08:49:41 +03:00
Hartwig
73a36679df
Addition of radius parameter for ClusterCullingCallback's constructor
...
The radius parameter is already present in ClusterCullingCallback's set method but has been forgotten in the constructor.
2018-02-15 21:10:59 +01:00
Laurens Voerman
b79d680580
move Get/SetScalarvalue out of ValueObject and provide specialization for GetScalarValue<bool> fixing MSVC waring C4800
2018-02-15 14:59:24 +01:00
Laurens Voerman
ec4881da5a
bugfix: GetScalarValue returns inverted values for booleans; SetScalarValue needs to be a SetValueVisitor
2018-02-13 17:38:35 +01:00
Robert Osfield
91f3e8fa59
Merge branch 'master' into shader_pipeline
2018-02-13 12:24:26 +00:00
Robert Osfield
b8e5f22cb7
Added virtual bool Texture::isDirty(contextID) method to help determine whether a GL texture object is likely to be out of date and needs updating
2018-02-13 12:01:57 +00:00
mp3butcher
c6b5aba249
regroup and add missing funcs related to immutable texture storage
2018-02-08 23:35:43 +01:00
Robert Osfield
a0c23d914d
Merge branch 'master' into shader_pipeline
2018-02-07 09:27:53 +00:00