Ignore:
Timestamp:
Jun 22, 2005, 6:30:48 PM (20 years ago)
Author:
darran
Message:
  • writing out State on frame-by-frame basis to stdout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/main.cpp

    r111 r113  
    2020#include <keyboardeventhandler.h>
    2121#include <directionallight.h>
     22#include <state.h>
    2223#include <watersurface.h>
    2324#include <customviewer.h>
     
    210211
    211212
     213   // test state
     214   State* s = new State();
     215
    212216   unsigned int timestep = 0;
    213217   while( !viewer.done() )
     
    285289      }
    286290
     291      s->setTimestep( event_handler->getTimestep() );
     292      s->setTime( sww->getTime(timestep) );
     293      s->setCulling( sww->getCulling() );
     294      s->setWireframe( water->getWireframe() );
     295      s->setPosition( viewer.getPosition() );
     296      s->setOrientation( viewer.getOrientation() );
     297      s->write( std::cout );
     298
    287299
    288300      // update the scene by traversing with the update visitor
Note: See TracChangeset for help on using the changeset viewer.