VR-Forces 4.5 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]
35  , const double positionMatrix[16]
36  , const double projectionMatrix[16]);
37 
38  //Set the number of groups.
39  virtual void setGroupCount(unsigned int count);
40 
41  virtual void setVertexAttribPointers(size_t stride
42  , const VertexAttribPtrInfo& positionAddress
43  , const VertexAttribPtrInfo& colorAddress
44  , const VertexAttribPtrInfo& offsetAddress
45  , const VertexAttribPtrInfo& directionAndLengthAddress);
46 
47  virtual void unsetVertexAttribPointers();
48  protected:
49 
50  virtual void updateUniformLocations();
51  virtual void updateUniforms();
52  virtual void initializeShaderSource( void );
53 
54  protected:
61 
62 
63  unsigned int myUnit;
64  unsigned int myGroupCount;
65  double myCameraPos[3];
66  double myMatrix[16];
67  double myProjectionMatrix[16];
70 
71  void updateOtherUniforms(void);
72  };
73 
74 
78  {
79  public:
80 
81  virtual DtEffect* create(CreateParameters* params = 0)
82  {
83  return new DtProjected2DLineEffect();
84  }
85  };
86 }
87 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)