Added support for sample and sampleBuffers to osg::GraphicsContext::Traits and
cleaned up the Traits naming
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osg/Notify>
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
@@ -39,6 +40,14 @@ GraphicsContext* GraphicsContext::createGraphicsContext(Traits* traits)
|
||||
}
|
||||
|
||||
|
||||
std::string GraphicsContext::ScreenIdentifier::displayName() const
|
||||
{
|
||||
std::stringstream ostr;
|
||||
ostr<<hostName<<":"<<displayNum<<"."<<screenNum;
|
||||
return ostr.str();
|
||||
}
|
||||
|
||||
|
||||
typedef std::map<unsigned int, unsigned int> ContextIDMap;
|
||||
static ContextIDMap s_contextIDMap;
|
||||
static OpenThreads::Mutex s_contextIDMapMutex;
|
||||
|
||||
Reference in New Issue
Block a user