VR-Forces 4.0.4 Class Documentation
include/vrvGraphics/DtFlat2DLineRenderer.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile:  $ $Revision:  $ $State:  $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvGraphics/DtEffectRenderer.h>
00016 
00017 namespace makVrv
00018 {
00019    class DtProjected2DLineEffect;
00020 
00023    struct DtLineVertex
00024    {
00025       DtLineVertex()
00026       {
00027          memset(position,0,sizeof(float[4]));
00028          memset(offset,0,sizeof(float[3]));
00029          memset(color,0,sizeof(float[4]));
00030          memset(lineParams,0,sizeof(float[2]));
00031          memset(directionAndLength,0,sizeof(float[4]));
00032       }
00033 
00034       float position[4];
00035       float offset[3];
00036       float color[4];
00037       float lineParams[2];
00038       float directionAndLength[4];
00039    };
00040 
00041 
00044    class DT_DLL_VRVGRAPHICS DtFlat2DLineRenderer :
00045       public DtEffectRenderer<DtLineVertex>
00046    {
00047    public: 
00048 
00051       DtFlat2DLineRenderer(DtProjected2DLineEffect* effect);
00052 
00053    protected:
00054 
00056       virtual void bindVertexArrays(const DtLineVertex* vertexArray);
00057 
00059       virtual void unbindVertexArrays();
00060 
00061    protected:
00062       DtProjected2DLineEffect* myEffect;
00063    };
00064 }
00065 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)