Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
eqPly.h
1 
2 /* Copyright (c) 2006-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * - Redistributions of source code must retain the above copyright notice, this
8  * list of conditions and the following disclaimer.
9  * - Redistributions in binary form must reproduce the above copyright notice,
10  * this list of conditions and the following disclaimer in the documentation
11  * and/or other materials provided with the distribution.
12  * - Neither the name of Eyescale Software GmbH nor the names of its
13  * contributors may be used to endorse or promote products derived from this
14  * software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef EQ_PLY_H
30 #define EQ_PLY_H
31 
32 #include "types.h"
33 
34 #include <eq/eq.h>
35 #include <triply/vertexBufferDist.h>
36 #include <triply/vertexBufferRoot.h>
37 
38 #ifndef M_PI_2
39 # define M_PI_2 1.57079632679489661923
40 #endif
41 
43 namespace eqPly
44 {
46 class EqPly : public eq::Client
47 {
48 public:
49  EqPly( const LocalInitData& initData );
50 
52  int run();
53 
55  static const std::string& getHelp();
56 
57 protected:
59  virtual void clientLoop();
60 
61 private:
62  virtual ~EqPly() {}
63 
64  const LocalInitData& _initData;
65 };
66 }
67 #endif // EQ_PLY_H
int run()
Run an eqPly instance.
Definition: eqPly.cpp:83
virtual void clientLoop()
Definition: eqPly.cpp:173
static const std::string & getHelp()
Definition: eqPly.cpp:74
Manages the argument parsing and non-distributed part of the initialization data. ...
The client represents a network node of the application in the cluster.
Definition: client/client.h:39
The EqPly application instance.
Definition: eqPly.h:46