45 int main(
int argc,
char** argv )
49 if( !
eq::init( argc, argv, &nodeFactory ))
51 LBERROR <<
"Equalizer init failed" << std::endl;
56 if( !client->initLocal( argc, argv ))
58 LBERROR <<
"Can't init client" << std::endl;
65 if( !client->connectServer( server ))
67 LBERROR <<
"Can't open server" << std::endl;
76 server->chooseConfig( configParams ));
80 LBERROR <<
"No matching config on server" << std::endl;
81 client->disconnectServer( server );
88 lunchbox::Clock clock;
90 if( !config->
init( eq::uint128_t( )))
92 server->releaseConfig( config );
93 client->disconnectServer( server );
99 LBWARN <<
"Error during initialization: " << config->
getError()
102 LBLOG(
eq::LOG_CUSTOM ) <<
"Config init took " << clock.getTimef() <<
" ms"
107 for( uint32_t i = 0; i < 3; ++i )
112 LBLOG(
eq::LOG_CUSTOM ) <<
"Rendering took " << clock.getTimef() <<
" ms ("
113 << ( 1.0f / clock.getTimef() * 1000.f) <<
" FPS)"
119 LBLOG(
eq::LOG_CUSTOM ) <<
"Exit took " << clock.getTimef() <<
" ms"
123 server->releaseConfig( config );
124 if( !client->disconnectServer( server ))
125 LBERROR <<
"Client::disconnectServer failed" << std::endl;
virtual eq::Window * createWindow(eq::Pipe *parent)
Create a new window.
A configuration is a visualization session driven by an application.
virtual eq::Config * createConfig(eq::ServerPtr parent)
Create a new config.
virtual uint32_t finishAllFrames()
Finish rendering all pending frames.
A channel represents a two-dimensional viewport within a Window.
eq::fabric::Error getError() const
virtual bool init(const uint128_t &initID)
Initialize this configuration.
A Window represents an on-screen or off-screen drawable.
User-defined log topics (65536)
A Pipe represents a graphics card (GPU) on a Node.
Proxy object for the connection to an Equalizer server.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
The node factory is a per-node singleton used to create and release Equalizer resource instances...
virtual uint32_t startFrame(const eq::uint128_t &frameID)
The client represents a network node of the application in the cluster.
lunchbox::RefPtr< Client > ClientPtr
A reference-counted pointer to an eq::Client.
bool init(const int argc, char **argv, NodeFactory *nodeFactory)
Initialize the Equalizer client library.
bool exit()
De-initialize the Equalizer client library.
virtual bool exit()
Exit this configuration.
Parameters for running a configuration.
virtual eq::Channel * createChannel(eq::Window *parent)
Create a new channel.