VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
debugDrawerGeometryMemory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: debugDrawerGeometryMemory.h,v $ $Revision: 1.0 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
18 #include "matrix/vlVector.h"
19 
25 
29 {
30  typedef std::vector<DtDebugDrawerGeometryMemoryColor> ColorSequence;
31 
37  static ColorSequence GoldrenRatioColors(
38  unsigned n,
41  double offset = 0);
42 
54 
57  unsigned char red, unsigned char green, unsigned char blue,
58  unsigned char alpha = 128);
59 
60  DtDebugDrawerGeometryMemoryColor operator* (unsigned) const;
61  DtDebugDrawerGeometryMemoryColor operator/ (unsigned) const;
62 
65 
68 
69  DtDebugDrawerGeometryMemoryColor setRed(unsigned) const;
70  DtDebugDrawerGeometryMemoryColor setGreen(unsigned) const;
71  DtDebugDrawerGeometryMemoryColor setBlue(unsigned) const;
72  DtDebugDrawerGeometryMemoryColor setAlpha(unsigned) const;
73  DtDebugDrawerGeometryMemoryColor setOpaque() const;
74 
75  unsigned char red;
76  unsigned char green;
77  unsigned char blue;
78  unsigned char alpha;
79 };
80 
81 namespace DtBufferSerialize
82 {
84  DT_DLL_simTerrainDrawer char *encode(const DtDebugDrawerGeometryMemoryColor& val, char *buffer);
85  DT_DLL_simTerrainDrawer const char *decode(DtDebugDrawerGeometryMemoryColor& val, const char *buffer);
86 }
87 
89 {
90 public:
92  virtual ~DtDebugDrawerGeometryMemory();
93 
98  virtual char* encode(char* buffer) = 0;
99 
108  virtual const char* decode(const char* buffer) = 0;
109 
112  virtual int getSize() = 0;
113 
117  virtual int type() = 0;
118 
122 };
123 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)