Added initial GraphicsWindowX11 implementation, and fleshed out more of the

osgViewer and osg::GraphicsContext/osg::View infrastructure.
This commit is contained in:
Robert Osfield
2006-12-19 16:00:51 +00:00
parent afc77f9b39
commit dcebe4daa0
11 changed files with 695 additions and 16 deletions

View File

@@ -29,6 +29,15 @@ class OSG_EXPORT GraphicsContext : public Referenced
ScreenIdentifier():
_displayNum(0),
_screenNum(0) {}
ScreenIdentifier(unsigned int screenNum):
_displayNum(0),
_screenNum(screenNum) {}
ScreenIdentifier(const std::string& hostName,unsigned int displayNum, unsigned int screenNum):
_hostName(hostName),
_displayNum(displayNum),
_screenNum(screenNum) {}
std::string _hostName;
unsigned int _displayNum;

View File

@@ -74,11 +74,11 @@ class OSG_EXPORT View : public virtual osg::Referenced
Slave& getSlave(unsigned int pos) { return _slaves[pos]; }
const Slave& getSlave(unsigned int pos) const { return _slaves[pos]; }
void updateSlaves();
protected :
virtual ~View();
void updateSlaves();
osg::ref_ptr<osg::Camera> _camera;