VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtProjected2DFlatEffect.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvGraphics/Dt2DEffect.h>
13 
14 namespace makVrv
15 {
16 
20  {
21  public:
22 
25 
27  virtual ~DtProjected2DFlatEffect();
28 
30  virtual void setCamera( bool geocentric, float occluded,
31  const double position[3], const double projection[16] );
32 
33  //Set the number of groups.
34  virtual void setGroupCount( unsigned int count );
35 
36  // Sets the given attributes to the OpenGL context.
37  virtual void setVaryingAttributes( size_t stride,
38  const VaryingAttributeAddress& positionAddress,
39  const VaryingAttributeAddress& colorAddress,
40  const VaryingAttributeAddress& offsetAddress,
41  const VaryingAttributeAddress& rotationAddress );
42 
44  virtual void unsetVaryingAttributes();
45 
46  protected:
47 
49  virtual void updateUniformLocations();
50 
52  virtual void updateUniforms();
53 
55  virtual void initializeShaderSource( void );
56 
57  protected:
58 
64 
65  unsigned int myUnit;
66  unsigned int myGroupCount;
67  double myCameraPos[3];
68  double myMatrix[16];
71 
72  };
73 
74 
78  {
79  public:
80 
81  virtual DtEffect* create( CreateParameters* params = 0 )
82  {
83  return new DtProjected2DFlatEffect();
84  }
85 
86  };
87 
88 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)