VR-Forces 5.0.3 Developer's Guide
 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makVrv
15 {
16  class DtProjected2DLineEffect;
17 
20  struct DtLineVertex
21  {
23  {
24  memset(position,0,sizeof(float[4]));
25  memset(offset,0,sizeof(float[3]));
26  memset(color,0,sizeof(float[4]));
27  memset(lineParams,0,sizeof(float[2]));
28  memset(directionAndLength,0,sizeof(float[4]));
29  }
30 
31  float position[4];
32  float offset[3];
33  float color[4];
34  float lineParams[2];
36  };
37 
38 
42  {
43  public:
44 
48 
49  protected:
50 
52  virtual void bindVertexArrays();
53 
55  virtual void unbindVertexArrays();
56 
57  protected:
59  };
60 }
61 
float color[4]
Definition: DtFlat2DLineRenderer.h:33
float position[4]
Definition: DtFlat2DLineRenderer.h:31
Contains makVrv::DtEffectRenderer class.
DtProjected2DLineEffect * myEffect
Definition: DtFlat2DLineRenderer.h:58
float directionAndLength[4]
Definition: DtFlat2DLineRenderer.h:35
DtLineVertex()
Definition: DtFlat2DLineRenderer.h:22
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
A vertex element used for rendering a line.
Definition: DtFlat2DLineRenderer.h:20
float lineParams[2]
Definition: DtFlat2DLineRenderer.h:34
An effect for rendering 2D projected lines Has support for direction and length information per verte...
Definition: DtProjected2DLineEffect.h:19
A Renderer which renders 2D lines with only a color.
Definition: DtFlat2DLineRenderer.h:41
voidpf uLong offset
Definition: ioapi.h:42
Definition: DtEffectRenderer.h:20

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)