![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: debugDrawerGeometryMemory.h,v $ $Revision: 1.0 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include "simTerrainDrawer/simTerrainDrawerDefines.h" 00017 #include "vrfutil/bufferSerialize.h" 00018 #include "matrix/vlVector.h" 00019 00020 const int DtDebugDrawerGeometryMemorySphereType = 1; 00021 const int DtDebugDrawerGeometryMemoryLineType = 2; 00022 const int DtDebugDrawerGeometryMemoryTriangleType = 3; 00023 00026 struct DT_DLL_simTerrainDrawer DtDebugDrawerGeometryMemoryColor 00027 { 00028 unsigned char red; 00029 unsigned char green; 00030 unsigned char blue; 00031 }; 00032 00033 class DT_DLL_simTerrainDrawer DtDebugDrawerGeometryMemory 00034 { 00035 public: 00037 DtDebugDrawerGeometryMemory() {} 00038 00040 virtual ~DtDebugDrawerGeometryMemory() {} 00041 00046 virtual char* encode(char* buffer)=0; 00047 00056 virtual const char* decode(const char* buffer)=0; 00057 00060 virtual int getSize()=0; 00061 00065 virtual int type()=0; 00066 00069 DtDebugDrawerGeometryMemoryColor myColor; 00070 }; 00071