45 int main(
int argc,
char** argv )
49 if( !
eq::init( argc, argv, &nodeFactory ))
51 LBERROR <<
"Equalizer init failed" << std::endl;
57 if( !client->initLocal( argc, argv ))
59 LBERROR <<
"Can't init client" << std::endl;
66 if( !client->connectServer( server ))
68 LBERROR <<
"Can't open server" << std::endl;
77 server->chooseConfig( configParams ));
81 LBERROR <<
"No matching config on server" << std::endl;
82 client->disconnectServer( server );
89 lunchbox::Clock clock;
91 if( !config->
init( co::uint128_t( )))
93 server->releaseConfig( config );
94 client->disconnectServer( server );
100 LBLOG(
eq::LOG_CUSTOM ) <<
"Config init took " << clock.getTimef() <<
" ms"
105 for( uint32_t i = 0; i < 3; ++i )
110 LBLOG(
eq::LOG_CUSTOM ) <<
"Rendering took " << clock.getTimef() <<
" ms ("
111 << ( 1.0f / clock.getTimef() * 1000.f) <<
" FPS)"
117 LBLOG(
eq::LOG_CUSTOM ) <<
"Exit took " << clock.getTimef() <<
" ms"
121 server->releaseConfig( config );
122 if( !client->disconnectServer( server ))
123 LBERROR <<
"Client::disconnectServer failed" << std::endl;
Parameters for running a configuration.
virtual EQ_API bool init(const uint128_t &initID)
Initialize this configuration.
A channel represents a two-dimensional viewport within a Window.
A configuration is a visualization session driven by an application.
Proxy object for the connection to an Equalizer server.
virtual EQ_API bool exit()
Exit this configuration.
A Pipe represents a graphics card (GPU) on a Node.
User-defined log topics (65536)
virtual EQ_API uint32_t finishAllFrames()
Finish rendering all pending frames.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
A Window represents an on-screen or off-screen drawable.
virtual eq::Channel * createChannel(eq::Window *parent)
Create a new channel.
lunchbox::RefPtr< Client > ClientPtr
A reference-counted pointer to an eq::Client.
virtual eq::Window * createWindow(eq::Pipe *parent)
Create a new window.
bool init(const int argc, char **argv, NodeFactory *nodeFactory)
Initialize the Equalizer client library.
The client represents a network node of the application in the cluster.
EQ_API bool exit()
De-initialize the Equalizer client library.
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)
virtual eq::Config * createConfig(eq::ServerPtr parent)
Create a new config.