VR-Forces 4.10 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 
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  public DtEffectRenderer<DtLineVertex>
43  {
44  public:
45 
49 
50  protected:
51 
53  virtual void bindVertexArrays(const DtLineVertex* vertexArray);
54 
56  virtual void unbindVertexArrays();
57 
58  protected:
60  };
61 }
62 
float color[4]
Definition: DtFlat2DLineRenderer.h:33
float position[4]
Definition: DtFlat2DLineRenderer.h:31
Contains makVrv::DtEffectRenderer class.
DtProjected2DLineEffect * myEffect
Definition: DtFlat2DLineRenderer.h:59
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:98

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)