VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtProjected2DLineEffect.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvGraphics/Dt2DEffect.h>
16 
17 namespace makVrv
18 {
23  {
24  public:
25 
28 
30  virtual ~DtProjected2DLineEffect();
31 
33  virtual void setCamera(bool geocentric, float geocentricAlpha,
34  const double position[3],const double projection[16]);
35 
36  //Set the number of groups.
37  virtual void setGroupCount(unsigned int count);
38 
39  virtual void setVaryingAttributes( size_t stride,
40  const VaryingAttributeAddress& positionAddress,
41  const VaryingAttributeAddress& colorAddress,
42  const VaryingAttributeAddress& offsetAddress,
43  const VaryingAttributeAddress& directionAndLengthAddress );
44 
45  virtual void unsetVaryingAttributes();
46 
47  protected:
48 
49  virtual void updateUniformLocations();
50  virtual void updateUniforms();
51  virtual void initializeShaderSource( void );
52 
53  protected:
59 
60 
61  unsigned int myUnit;
62  unsigned int myGroupCount;
63  double myCameraPos[3];
64  double myMatrix[16];
67  };
68 
69 
73  {
74  public:
75 
76  virtual DtEffect* create(CreateParameters* params = 0)
77  {
78  return new DtProjected2DLineEffect();
79  }
80  };
81 }
82 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)