VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFlat2DLineRenderer.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 
16 
17 namespace makVrv
18 {
19  class DtProjected2DLineEffect;
20 
23  struct DtLineVertex
24  {
26  {
27  memset(position,0,sizeof(float[4]));
28  memset(offset,0,sizeof(float[3]));
29  memset(color,0,sizeof(float[4]));
30  memset(lineParams,0,sizeof(float[2]));
31  memset(directionAndLength,0,sizeof(float[4]));
32  }
33 
34  float position[4];
35  float offset[3];
36  float color[4];
37  float lineParams[2];
39  };
40 
41 
45  public DtEffectRenderer<DtLineVertex>
46  {
47  public:
48 
52 
53  protected:
54 
56  virtual void bindVertexArrays(const DtLineVertex* vertexArray);
57 
59  virtual void unbindVertexArrays();
60 
61  protected:
63  };
64 }
65 
float color[4]
Definition: DtFlat2DLineRenderer.h:36
float position[4]
Definition: DtFlat2DLineRenderer.h:34
Contains makVrv::DtEffectRenderer class.
DtProjected2DLineEffect * myEffect
Definition: DtFlat2DLineRenderer.h:62
float directionAndLength[4]
Definition: DtFlat2DLineRenderer.h:38
DtLineVertex()
Definition: DtFlat2DLineRenderer.h:25
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
A vertex element used for rendering a line.
Definition: DtFlat2DLineRenderer.h:23
float lineParams[2]
Definition: DtFlat2DLineRenderer.h:37
An effect for rendering 2D projected lines Has support for direction and length information per verte...
Definition: DtProjected2DLineEffect.h:22
A Renderer which renders 2D lines with only a color.
Definition: DtFlat2DLineRenderer.h:44
voidpf uLong offset
Definition: ioapi.h:42
Definition: DtEffectRenderer.h:98

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)