[svn] / trunk / src / examples / eqPly / frameData.h Repository:
ViewVC logotype

Annotation of /trunk/src/examples/eqPly/frameData.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1044 - (view) (download) (as text)

1 : eile 194
2 : eile 743 /* Copyright (c) 2006-2007, Stefan Eilemann <eile@equalizergraphics.com>
3 : eile 194 All rights reserved. */
4 :    
5 : eile 301 #ifndef EQ_PLY_FRAMEDATA_H
6 :     #define EQ_PLY_FRAMEDATA_H
7 : eile 194
8 : eile 301 #include "eqPly.h"
9 : eile 194
10 :     #include <eq/eq.h>
11 :    
12 : eile 1044 namespace eqPly
13 : eile 194 {
14 : eile 1044 class FrameData : public eqNet::Object
15 :     {
16 :     public:
17 : dustin82 401
18 : eile 1044 FrameData()
19 :     {
20 :     reset();
21 :     setInstanceData( &data, sizeof( Data ));
22 :     EQINFO << "New FrameData " << std::endl;
23 :     }
24 : eile 194
25 : eile 1044 void reset()
26 :     {
27 :     data.translation = vmml::Vector3f::ZERO;
28 :     data.translation.z = -1.f;
29 :     data.rotation = vmml::Matrix4f::IDENTITY;
30 :     data.rotation.rotateX( static_cast<float>( -M_PI_2 ));
31 :     data.rotation.rotateY( static_cast<float>( -M_PI_2 ));
32 :     }
33 :    
34 :     struct Data
35 : eile 366 {
36 : eile 1044 vmml::Matrix4f rotation;
37 :     vmml::Vector3f translation;
38 :     bool color;
39 :     } data;
40 : eile 773
41 : eile 1044 protected:
42 :     virtual bool isStatic() const { return false; }
43 :     };
44 :     }
45 : eile 194
46 :    
47 : eile 301 #endif // EQ_PLY_FRAMEDATA_H
48 : eile 194

Back to Equalizer website
ViewVC Help
Powered by ViewVC 1.0.3