Show
Ignore:
Timestamp:
04/17/03 01:09:31 (12 years ago)
Author:
don
Message:

InputRectangle? converted to RenderSurface?->get()...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgwindows/osgwindows.cpp

    r1875 r1892  
    1919    rs1->setScreenNum(0); 
    2020    //rs1->useBorder(false); 
    21     rs1->setWindowRect(0,0,640,480); 
     21    rs1->setWindowRectangle(0,0,640,480); 
    2222    Producer::Camera *camera1 = new Producer::Camera; 
    2323    camera1->setRenderSurface(rs1); 
     
    2727    rs2->setScreenNum(0); 
    2828    //rs2->useBorder(false); 
    29     rs2->setWindowRect(640,0,640,480); 
     29    rs2->setWindowRectangle(640,0,640,480); 
    3030    Producer::Camera *camera2 = new Producer::Camera; 
    3131    camera2->setRenderSurface(rs2); 
    3232    camera2->setOffset( -1.0, 0.0 ); 
    3333 
     34    rs1->setInputRectangle( Producer::RenderSurface::InputRectangle(0.0,0.5,0.0,1.0)); 
     35    rs2->setInputRectangle( Producer::RenderSurface::InputRectangle(0.5,1.0,0.0,1.0)); 
     36 
    3437    Producer::InputArea *ia = new Producer::InputArea; 
    35     ia->addInputRectangle( rs1, Producer::InputRectangle(0.0,0.5,0.0,1.0)); 
    36     ia->addInputRectangle( rs2, Producer::InputRectangle(0.5,1.0,0.0,1.0)); 
    37 //    ia->addInputRectangle( rs1, Producer::InputRectangle(-1.0,0.0,-1.0,1.0)); 
    38 //    ia->addInputRectangle( rs2, Producer::InputRectangle(0.0,1.0,-1.0,1.0)); 
    39  
     38    ia->addRenderSurface(rs1); 
     39    ia->addRenderSurface(rs2); 
    4040 
    4141    Producer::CameraConfig *cfg = new Producer::CameraConfig;