Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
r88 r107 99 99 //OSG_NOTIFY( osg::ALWAYS ) << "znear: " << znear << ", zfar: " << zfar << std::endl; 100 100 101 if (skyDrawable )101 if (skyDrawable.valid()) 102 102 { 103 103 skyDrawable->setSkyboxSize(((zfar - znear) * 0.5 + znear) * 2.0); … … 124 124 //OSG_NOTIFY( osg::ALWAYS ) << "znear: " << znear << ", zfar: " << zfar << std::endl; 125 125 126 if (skyDrawable )126 if (skyDrawable.valid()) 127 127 { 128 128 skyDrawable->setSkyboxSize(((zfar - znear) * 0.5 + znear) * 2.0); … … 222 222 //clamp the near plane if low above ground. 223 223 double x,y,z,hat; 224 util::getXYZofCamera( camera, x, y, z );225 if( util::queryHeightAboveTerrainInWorld( hat, csn , x, y, z ) )224 util::getXYZofCamera( camera.get(), x, y, z ); 225 if( util::queryHeightAboveTerrainInWorld( hat, csn.get(), x, y, z ) ) 226 226 { 227 227 if (hat < 80 ) … … 238 238 near_ = 2; 239 239 far_ = 125000; 240 util::getXYZofCamera( camera , x, y, z );241 if( util::queryHeightAboveTerrainInWorld( hat, csn , x, y, z ) )240 util::getXYZofCamera( camera.get(), x, y, z ); 241 if( util::queryHeightAboveTerrainInWorld( hat, csn.get(), x, y, z ) ) 242 242 { 243 243 osg::Vec2 planesNearFar; … … 259 259 * Pointer to the Cullvisitor which applies the projection matrix. 260 260 */ 261 osg Util::CullVisitor *stockCullVisitor;261 osg::ref_ptr<osgUtil::CullVisitor> stockCullVisitor; 262 262 263 263 /** 264 264 * Pointer to silverlinings atmosphere instance. 265 * It has to be a pure C++ Pointer, because SilverLining::athmosphere is not derived from osg/Referenced 265 266 */ 266 267 SilverLining::Atmosphere *atmosphere; … … 269 270 * Pointer to the camera on which the callback is installed 270 271 */ 271 osg::Camera *camera;272 osg::observer_ptr<osg::Camera> camera; 272 273 273 274 /** 274 275 * Pointer to the skyDrawable 275 276 */ 276 skySilverLining_skyDrawable *skyDrawable;277 osg::observer_ptr<skySilverLining_skyDrawable> skyDrawable; 277 278 278 279 /** … … 280 281 * @todo: wofür ist diese variable nötig? 281 282 */ 282 osg:: CoordinateSystemNode *csn;283 osg::observer_ptr<osg::CoordinateSystemNode> csn; 283 284 284 285 -
osgVisual/src/cluster/dataIO_clusterENet_implementation.cpp
r95 r107 262 262 void dataIO_clusterENet_implementation::onReceivePacket(ENetEvent* event_) 263 263 { 264 receivedTransportContainer.assign((char*)(event_->packet->data), event_->packet->dataLength); 265 //std::cout << "A packet of length "<<event_->packet->dataLength<<" containing "<<receivedTransportContainer<<" was received from "<<receivedTransportContainer<<" on channel "<<(int)(event_->channelID)<<std::endl; 264 receivedTransportContainer.assign((char*)(event_->packet->data), event_->packet->dataLength); 265 enet_packet_destroy(event_->packet); 266 //std::cout << "A packet of length "<<receivedTransportContainer.size()<<" containing "<<receivedTransportContainer<<" was received from "<<receivedTransportContainer<<" on channel "<<(int)(event_->channelID)<<std::endl; 266 267 } 267 268
Note: See TracChangeset
for help on using the changeset viewer.