OpenSceneGraph/include/osgDB
Robert Osfield ec6edf535d From Miha Ravselj, "Regarding previous submission it was only partial solution. After further testing I found similar bug also in ClearNode serializer.
//GLbitfield mask = GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT;
This line was problematic since it produced incorrect result when let's say COLOR flag is serialized
it should be null as in Camera serializer or in a proposed BitFlagsSerializer


This line of code caused that whenever only GL_COLOR_BUFFER_BIT bit was written and on value read GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT was restored instead of GL_COLOR_BUFFER_BIT only.

//GLbitfield mask = 0; //this resolves the issue same as in camera
Also same bit-wise comparison bug was also present in write method.
-------------------------------------------------------------------------------------

As you can see there are total 3 bit mask serializers in OSG and all 3 had bugs so I decided to add ADD_BITFLAGS_SERIALIZER and replace USER serializers in osg::Camera, osg::ClearNode and osgText::TextBase. I have made sure that bitflags serializer does not break backwards-compatibility since it uses same code as user serializer does in all 3 cases. (see tester.cpp on how compatibility test was performed)"



git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14752 16af8721-9629-0410-8352-f15c8da7e697
2015-03-03 12:03:23 +00:00
..
Archive Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
AuthenticationMap Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Callbacks Added readScript/writeScript methods to ReaderWriter 2014-07-14 15:59:06 +00:00
ClassInterface Renamed osgDB::PropertyInterface to osgDB::ClassInterface to better reflect it's functionality 2014-07-14 14:09:08 +00:00
ConvertBase64 From Johannes Scholz, "Attached you find a patch for osgDB::OutputStream and osgDB::InputStream to include osg::Image::data() using Base64 encoding inside the ASCII OSGT, if WriteImageHint=IncludeData is set, only." 2015-03-02 12:11:43 +00:00
ConvertUTF Standardized on defined(__ANDROID__) 2014-11-28 10:54:40 +00:00
DatabasePager Refactored the handling of use of the osgDB::ObjectCache in the DatabasePager to use a local thread specific ObjectCache to handle new additions and 2014-11-13 09:40:11 +00:00
DatabaseRevisions From David Callu, warning fixes and removal of spaces at end of lines. 2013-06-28 12:00:43 +00:00
DataTypes Added access methods to Serializer to help with using wrappers for other purposes such as script integration. 2013-09-11 15:44:08 +00:00
DotOsgWrapper Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
DynamicLibrary Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Export Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
ExternalFileWriter Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
FileCache Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
FileNameUtils Added osgDB::getSortedDirectoryContents and osgDB::FileNameComparator to help with sorting directory contents into alphabetic and numerical order. 2012-09-12 16:02:02 +00:00
FileUtils Added osgDB::getSortedDirectoryContents and osgDB::FileNameComparator to help with sorting directory contents into alphabetic and numerical order. 2012-09-12 16:02:02 +00:00
fstream From Martin Naylor, replace osgDB::fstream with an osgDB::open() call. 2013-06-12 12:49:18 +00:00
ImageOptions Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
ImagePager From Ulrich Hertlein, "Attached is a patch that introduces 'static_cast<unsigned int>' on some instances where 2013-05-14 16:12:21 +00:00
ImageProcessor Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
Input Refactored osgDB::Input::readObjectOfType to use a template, and updated associated wrappers to avoid using local static's 2012-11-21 13:38:11 +00:00
InputStream Added handling of the reading of field properties to a dummy object for cached images to avoid threading issues associated with reusing and modifying an active object. 2014-11-05 16:08:42 +00:00
ObjectCache Refactored the handling of use of the osgDB::ObjectCache in the DatabasePager to use a local thread specific ObjectCache to handle new additions and 2014-11-13 09:40:11 +00:00
ObjectWrapper From Miha Ravselj, "Regarding previous submission it was only partial solution. After further testing I found similar bug also in ClearNode serializer. 2015-03-03 12:03:23 +00:00
Options Refactored the handling of use of the osgDB::ObjectCache in the DatabasePager to use a local thread specific ObjectCache to handle new additions and 2014-11-13 09:40:11 +00:00
Output Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
OutputStream From Pjotr Svetachov, "Today I found a bug in the IutputStream class when saving array 2014-04-29 13:41:35 +00:00
ParameterOutput Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
PluginQuery Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
ReaderWriter Added readScript/writeScript methods to ReaderWriter 2014-07-14 15:59:06 +00:00
ReadFile Added osgDB::readShaderFileWithFallback(..) convinience functions to make it easier to set up reading external shader files with a built in fallback. 2014-12-24 10:13:42 +00:00
Registry Moved implementation of ObjectCache functionality out of Registry into a dedicated osgDB::ObjectCache class. 2014-11-11 18:28:07 +00:00
Serializer From Miha Ravselj, "Regarding previous submission it was only partial solution. After further testing I found similar bug also in ClearNode serializer. 2015-03-03 12:03:23 +00:00
SharedStateManager Fixed usage of META_NodeVisitor so it doesn't include "" 2013-01-24 18:48:34 +00:00
StreamOperator From Wang Rui, "The file attached includes two new features for the serialization IO functionality. First, custom serializer version control should work now, just by defining a new REGISTER_CUSTOM_OBJECT_WRAPPER macro. For example: 2013-06-24 08:48:55 +00:00
Version Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
WriteFile Added readScript/writeScript methods to ReaderWriter 2014-07-14 15:59:06 +00:00
XmlParser Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00