Skip to content
Snippets Groups Projects
Commit 00aea315 authored by slevy's avatar slevy
Browse files

Let Ppszg be a subclass of arMasterSlaveFramework.

parent c92b7887
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
* Main scene data for szgPartiview.
*/
#include "arMasterSlaveFramework.h"
#ifdef WIN32
# include "winjunk.h"
#endif
......@@ -73,7 +75,7 @@ struct PvScene {
void draw( bool inpick = false );
};
struct Ppszg { // This might become a subclass of the generic syzygy framework...?
struct Ppszg : public arMasterSlaveFramework {
PvScene *scene;
// XXX Could have a draw callback kinda like
......@@ -125,7 +127,17 @@ struct Ppszg { // This might become a subclass of the generic syzygy framewor
std::vector <Subcam> sc;
int subcam;
virtual bool onStart( arSZGClient& SZGClient );
virtual bool onWindowStartGL( arGUIWindowInfo * );
virtual void onPreExchange( void ); // called on master only
virtual void onPostExchange( void ); // called on master + slaves
virtual void onWindowInit( void ); // clear to background... ar_defaultWindowInitCallback()
virtual void onDraw( arGraphicsWindow& win, arViewport& vp );
virtual void onDisconnectDraw( void );
virtual void onCleanup( void );
virtual void onUserMessage( const string& messageBody );
};
extern struct Ppszg ppszg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment