VR-Forces 4.0.4 Class Documentation
include/vrvGraphics/DtFlat2DRenderer.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvGraphics/DtEffectRenderer.h>
00013 
00014 namespace makVrv
00015 {
00016 
00019    struct DtOffsetColoredVertex
00020    {
00021       DtOffsetColoredVertex()
00022       {
00023          memset( position, 0, sizeof(float[4]) );
00024          memset( offset, 0, sizeof(float[3]) );
00025          memset( color, 0, sizeof(float[4]) );
00026          trigRotation[0] = 1.0f;
00027          trigRotation[1] = 0.0f;
00028       }
00029 
00030       float trigRotation[2];
00031       float position[4];
00032       float offset[3];
00033       float color[4];
00034    };
00035 
00036    class DtProjected2DFlatEffect;
00037 
00040    class DT_DLL_VRVGRAPHICS DtFlat2DRenderer :
00041       public DtEffectRenderer<DtOffsetColoredVertex>
00042    {
00043    public:
00044 
00046       DtFlat2DRenderer( DtProjected2DFlatEffect* effect );
00047 
00048    protected:
00049 
00051       virtual void bindVertexArrays( const DtOffsetColoredVertex* vertexArray );
00052 
00054       virtual void unbindVertexArrays();
00055 
00056    protected:
00057 
00058       DtProjected2DFlatEffect* myEffect;
00059 
00060    };
00061 
00062 }

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)