Robert Osfield
38c515a600
Fixed handling of #define's that are used as functions
2016-12-16 16:16:50 +00:00
Robert Osfield
d4a4993285
Added GL_EXT_texture_border_clamp support for GLES
2016-11-30 17:18:33 +00:00
scrawl
1fffafb13a
Fix typo in StateSet::compileGLObjects, causing compilation of attributes to not be executed unless checkForGLErrors is true.
2016-11-26 01:09:45 +01:00
Robert Osfield
55f4778731
Added usage of GLExtensions::debugObjectLabel() to GLBufferObject::compile()
2016-11-15 14:52:59 +00:00
Robert Osfield
1abd99f084
Added support for glObjectLabel debugging
2016-11-15 14:35:47 +00:00
Robert Osfield
5b375124cc
Added osg::Geometry::configureBufferObjects() and ConfigureBufferObjectsVisitor visitor to help with setting up buffer objects in a coherent fashion.
2016-11-14 17:59:25 +00:00
Robert Osfield
99cb8ebacf
Added more flexibility into the State::checkGLErrors() method, allowing calling code to pass in two strings.
...
Improved the StateSet::compileGLObjects() usage of checkGLErrors() to make the warning reports more meaningful.
2016-11-14 11:59:47 +00:00
Robert Osfield
e17ad60c2d
Added _color copy to the copy constructor
2016-10-14 18:00:40 +01:00
Robert Osfield
1cc53246e9
Changed appending of \n to be to the version line.
2016-10-12 17:24:25 +01:00
Robert Osfield
9072f9653e
Added OES variants of vertex array object functions
2016-10-12 16:10:40 +01:00
Robert Osfield
b6afce773a
Removed unneccessary includes
2016-10-11 20:11:24 +01:00
Robert Osfield
38ff11f8c5
Renamed ArrayDispatchers to AttributeDispatchers to better reflect it's role
2016-10-11 15:14:14 +01:00
Robert Osfield
e14ee80282
Streamlined the dispatch and activation of attribute dispatchers
2016-10-11 11:29:29 +01:00
Robert Osfield
364c838ea1
Removed unused vertex and texcoord array dispatchers
2016-10-11 11:29:29 +01:00
Fabian Wiesel
1f562c003c
Missed rename in VertexAttribArrayDispatch
...
The variable array is by initialisation a null-pointer, new_array is the new array
2016-10-11 11:29:29 +01:00
Robert Osfield
66873b8c6c
Fixed build errors when OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION to OFF
2016-10-11 11:29:29 +01:00
Robert Osfield
007a19a027
Fixed warnings
2016-10-11 11:29:29 +01:00
Robert Osfield
0ee65c9d2f
Removed unneccessary parameter
2016-10-11 11:29:29 +01:00
Robert Osfield
e11e45a2e3
Removed GLBeginEndAdapter as it is no longer needed
2016-10-11 11:29:29 +01:00
Robert Osfield
d4d32cbde7
Improved handling of the BufferObject::Profile::_size, utilizing it's intial value when it is non zero and larger than the arrays assigned to it.
2016-10-11 11:29:29 +01:00
Robert Osfield
8febae1546
Fixed VertexArrayState::bind*BufferObject(..) methods so they correctly handle dirtied buffer objects
2016-10-11 11:29:29 +01:00
Robert Osfield
96b0e42c42
Fixed typo in comment
2016-10-11 11:29:29 +01:00
Robert Osfield
ff779e58ab
Added check against Array::Binding to decide whether to assign a VertexBufferObject to an array or not, only assigning it when Binding is BIND_PER_VERTEX
2016-10-11 11:29:29 +01:00
Robert Osfield
e5ab4355be
Added osg::convertShapeToGeometry(...) convinience functions for creating osg::Geometry from osg::Shape descriptions.
2016-10-11 11:29:29 +01:00
Robert Osfield
83b5cabac9
Refactored ShapeDrawable so that it is subclassed from osg::Geometry rather than osg::Drawable.
...
Created a BuildShapeGeometryVisitor visitor that can create osg::Geometry for osg::Shape objects
2016-10-11 11:29:29 +01:00
Robert Osfield
3be951f279
Fixed crash when using vertex attribute arrays
2016-10-11 11:29:29 +01:00
Robert Osfield
b2873132be
Added support for interleaved arrays
2016-10-11 11:29:29 +01:00
Robert Osfield
f842750342
Removed no longer used member variables
2016-10-11 11:29:29 +01:00
Robert Osfield
16da432be3
Moved FOG_COORD and SECONDARY_COLOR #define's from State header into VertexArrayState.cpp
2016-10-11 11:29:29 +01:00
Robert Osfield
164981f7a3
Replaced osg::State:set*Pointer() calls with VertexArrayState::set*Array() calls
2016-10-11 11:29:29 +01:00
Robert Osfield
359b136b5e
Added check against State::useVertexBufferObjects(..) so that Display Lists are only used when VBO is OFF.
2016-10-11 11:29:29 +01:00
Robert Osfield
94891778c4
Restructred the enabling of vertex array object support to allow one to set enable the default via osg::State.
...
Added OSG_VERTEX_BUFFER_HINT env var to osg::DisplaySettings with VERTEX_BUFFER_OBJECT/VBO, VERTEX_ARRAY_OBJECT/VAO and NO_PREFERENCE to allow one to foce on VBO or VAO usage.
Restructred BufferObject assigned in osg::Geometry
Added
2016-10-11 11:29:29 +01:00
Robert Osfield
cf52b2db50
Removed unncessary checks
2016-10-11 11:29:29 +01:00
Robert Osfield
ee31921520
Streamlined State::_is*Supported variables
2016-10-11 11:29:29 +01:00
Robert Osfield
1d75089bf8
Build fixes when compiling wuth CMake options OPENGL_PROFILE set to GLCORE
2016-10-11 11:29:29 +01:00
Mathieu MARACHE
3745b958e5
compilation fixes when no OSG_GL_DISPLAYLISTS_AVAILABLE
2016-10-11 11:29:29 +01:00
Mathieu MARACHE
afe45f66d2
compilation fixes when no OSG_GL_FIXED_FUNCTION_AVAILABLE
2016-10-11 11:29:29 +01:00
Robert Osfield
e3c663bb02
Removed deprecated code paths and moved implementations into headers
2016-10-11 11:29:29 +01:00
Robert Osfield
bf28e2d037
Refactored the VertexArrayState's handling of vertex attribute aliasing
2016-10-11 11:29:29 +01:00
Robert Osfield
1f147f6bc6
Moved implementations from .cpp's to headers as inline methods to improve performance.
2016-10-11 11:29:29 +01:00
Robert Osfield
97df15b205
Improved naming of createVertexArrayState(..) method
2016-10-11 11:29:29 +01:00
Robert Osfield
98344157c0
Removed resetting of the pointer state.
2016-10-11 11:29:29 +01:00
Robert Osfield
83f73df814
Added State::useVertexArrayObject() member to streamline toggling on/off of VAO usage
2016-10-11 11:29:29 +01:00
Robert Osfield
a4e682bb28
Added support for clean up Vertex Array Objects
2016-10-11 11:29:29 +01:00
Robert Osfield
4131d2da34
Added intialization of the VAO in Geometry::compileGLObjects() and refined the invocation of updates to the VAO
2016-10-11 11:29:29 +01:00
Robert Osfield
078598872f
Added lazy setting of arrays for osg::Geometry using vertex_array_object
2016-10-11 11:29:29 +01:00
Robert Osfield
4b4cd13d31
Implemented lighter weight setting of the CurrentVertexArrayState and introduced GlobalVertexArrayState.
2016-10-11 11:29:29 +01:00
Robert Osfield
7d83d735ad
Implemented a different approach to vertex array object support to enable creation of a single global vertex array object as well as provide individual vertex array objects per Drawable when required.
2016-10-11 11:29:29 +01:00
Robert Osfield
4d8a29b987
Added ability to initializer GL vertex array object id with Geometry::compileGLObjects().
...
Improved the handling of buffer object state when not using VAO's
2016-10-11 11:29:29 +01:00
Robert Osfield
14d1483b06
Experimental support for OpenGL Vertex Array Object
2016-10-11 11:29:29 +01:00
Robert Osfield
d92a79b876
Fixed crash associated with setting the affinity on a null pointer
2016-10-08 15:58:33 +01:00
OpenSceneGraph git repository
05ed7d1336
Merge pull request #152 from aluaces/spelling2
...
Some spelling fixes in comments.
2016-10-07 17:05:58 +01:00
Robert Osfield
10d8ac7f65
Fixed extension string typo
2016-10-07 12:17:03 +01:00
Robert Osfield
dc6b55a5e9
Added support for checking GL_OES_texture_npot
2016-10-07 12:17:03 +01:00
Robert Osfield
ee97db3488
Introduced OpenThreads::Affinity support into osg::Camera, osg::GraphicsContext::Traitse, osgDB::DatabasePager and osgViewer::ViewerBase/Viewer/CompositeViewer.
...
Added ViewerBase::configureAffinity() to help with the setting of the affinity of camera, graphics context and pager threads
2016-10-07 12:17:03 +01:00
Robert Osfield
197b4a0d30
Added GL_OES_geometry_shader and GL_OES_tessellation_shader checks
2016-10-06 10:48:29 +01:00
Alberto Luaces
7f3c92f492
Some spelling fixes in comments.
2016-10-05 18:10:46 +02:00
Laurens Voerman
0ee744f7a0
fix Visual studio warning C4138: '*/' found outside of comment
2016-09-26 13:43:51 +02:00
Robert Osfield
c6813cf8e2
Replaced local static usage to avoid threading and mulit-context issues
2016-09-22 14:33:03 +01:00
Robert Osfield
b0df75e674
Cleaned up the spacing and const of various method parameters.
...
Added non const versions of StateSet::getAttributePair() and getTextureAttributePair()
2016-09-20 17:01:26 +01:00
Robert Osfield
cb6e6ff2be
Fixed warnings, deprecated another out of date method
2016-09-05 15:35:54 +01:00
Robert Osfield
a494cd71e8
Fixed typo
2016-09-05 07:59:15 +01:00
Robert Osfield
79ff8ba273
Merge branch 'Submissions2e' of https://github.com/LaurensVoerman/OpenSceneGraph into LaurensVoerman-Submissions2e
2016-09-02 18:26:11 +01:00
OpenSceneGraph git repository
c19b271586
Merge pull request #119 from LaurensVoerman/Submissions2c
...
Fixed clone osgVolume::Scalarproperty and osg::TextureBuffer crash
2016-09-02 17:47:37 +01:00
Laurens Voerman
628f8fd9dc
added call to copy constructor for virtual base classes in copy constructor of derived classes, removed these for abstract classes
2016-08-29 10:41:40 +02:00
Laurens Voerman
d0020b7dfc
bugfix: osg::TextureBuffer::clone() crash
2016-08-29 10:01:48 +02:00
Robert Osfield
2e6f0d7aab
Quitened unused parameter warnings
2016-08-26 19:28:36 +01:00
Robert Osfield
0ad09d6dad
Fixed unused variable warnings
2016-08-26 19:18:00 +01:00
Robert Osfield
322adc266c
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2016-08-26 18:00:52 +01:00
Robert Osfield
11ddd53eb4
Removed redundent Referenced::s/getThreadSafeReferenceCounting() and associated static and env vars as there are now inapprorpiate and no longer supported
2016-08-26 17:59:30 +01:00
scrawl
0b450a5113
Remove an unneeded const_cast
2016-08-14 19:30:55 +02:00
Anish Thomas
2b9dfab1fc
GLSL 1.3 support for vertex-attrib aliasing
2016-08-10 14:12:27 +01:00
Juan Hernando Vieites
b3c242e270
Added missing GL enums to Texture::computeInternalFormatType
2016-08-04 17:03:51 +02:00
scrawl
5b70f208e3
Fix RenderBuffer not being attached (bug introduced with commit 55b3becb7c
)
2016-08-01 17:48:14 +02:00
Robert Osfield
0876677fb2
Removed check against changed flag as check is aleady done outside the method so no need for a duplicate check
2016-06-29 16:07:39 +01:00
Julien Valentin
98b81821fb
fix in StateSet.cpp
...
the State::DefineMap::changed flag is not resetted to false after currentDefines are updated
2016-06-29 16:05:14 +01:00
Robert Osfield
00b1173e70
Added osg::ScissorIndexed that wraps up glScissorIndexed function
2016-06-29 15:11:02 +01:00
Robert Osfield
412e9fc3dd
Added osg::DepthRangeIndexed class to wrap up glDepthRangeIndexed functionality.
2016-06-29 12:28:28 +01:00
Robert Osfield
54dbf438cc
Fixed cast
2016-06-29 11:36:44 +01:00
Robert Osfield
e932c8e5e8
Added build of new osg::ViewportIndexed
2016-06-29 11:35:56 +01:00
Robert Osfield
e30b570b1f
Revert "Fixed incorrect cast" as commit contained more changes than intended.
...
This reverts commit 2897ab13cb
.
2016-06-29 11:34:20 +01:00
Robert Osfield
8d7d5d12a1
Added osg::ViewportIndexed that adds support for glViewportIndexed
2016-06-29 11:26:54 +01:00
Robert Osfield
2897ab13cb
Fixed incorrect cast
2016-06-29 11:25:08 +01:00
Laurens Voerman
ec74518868
Added glViewerArray, glSissorArray, glDepthRangeArray etc. GL extension support
2016-06-29 09:53:04 +01:00
Robert Osfield
949aca196d
Refactored handling of StateAttiribute's that override the StateAttiribute::getMember() so that when they change their Member value they update the StateSet parents that own them to keep the StateSet's maps coherent.
2016-06-25 12:24:19 +01:00
Robert Osfield
07137f4111
Fixed unitialized variables
2016-06-23 16:32:02 +01:00
Robert Osfield
5c9b66a48d
Added initializer
2016-06-23 12:35:07 +01:00
Robert Osfield
1298ede4d5
Added initializer
2016-06-23 12:34:08 +01:00
Robert Osfield
ff38f84d04
Added initializer
2016-06-23 12:32:15 +01:00
Robert Osfield
8f7f6141e7
Added initializer
2016-06-23 12:30:36 +01:00
Robert Osfield
9c80078c07
Added initializer
2016-06-23 12:25:27 +01:00
Robert Osfield
e0d26ba1f5
Added copying of _syncSwapBuffers
2016-06-23 12:23:31 +01:00
Robert Osfield
1f73376476
Restructed the GLExtensions(..) constructor so that it now intializes all the variables to NULL if there is not a valid graphics context present
2016-06-23 12:19:59 +01:00
Robert Osfield
bc8452512f
Added initializers and handling of null case
2016-06-23 11:03:38 +01:00
Robert Osfield
79f174aee4
Fixed return value
2016-06-23 10:52:16 +01:00
Robert Osfield
55b3becb7c
Restructured to avoid NULL reference
2016-06-23 10:50:25 +01:00
Robert Osfield
5e73f0bb35
Removed dead code
2016-06-23 10:45:48 +01:00
Robert Osfield
46750d6b17
Removed dead code
2016-06-23 10:41:58 +01:00
Robert Osfield
25e04b8463
Fixed typo
2016-06-22 15:53:37 +01:00
Robert Osfield
011d60ec03
Fixed memory leak.
2016-06-21 17:04:22 +01:00