Free Electron
DrawConsole.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __console_DrawConsole_h__
8 #define __console_DrawConsole_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Text-based implementations for DrawI
17 
18  @ingroup console
19 *//***************************************************************************/
20 class FE_DL_EXPORT DrawConsole: public DrawNull
21 {
22  public:
23  DrawConsole(void);
24 virtual ~DrawConsole(void);
25 
26 virtual void flush(void);
27 virtual void drawAlignedText(const SpatialVector &location,
28  const String text,const Color &color);
29 virtual void drawSphere(const SpatialTransform &transform,
30  const SpatialVector *scale,const Color &color);
31 
33 virtual void drawCylinder(const SpatialTransform &transform,
34  const SpatialVector *scale,Real baseScale,
35  const Color &color,U32 slices);
36 
37  private:
38  void clear(void);
39 
40  enum
41  {
42  e_width=90,
43  e_height=45,
44  };
45 
46  char m_raster[e_height][e_width+1];
47  U32 m_frame;
48 const Real m_scalarX;
49 const Real m_scalarY;
50 };
51 
52 } /* namespace ext */
53 } /* namespace fe */
54 
55 #endif /* __console_DrawConsole_h__ */
virtual void drawCylinder(const SpatialTransform &transform, const SpatialVector *scale, Real baseScale, const Color &color, U32 slices)
Draw a transformed cylinder or cone.
Definition: DrawNull.h:115
kernel
Definition: namespace.dox:3
Special vector for color (RGBA)
Definition: Color.h:21
Automatically reference-counted string container.
Definition: String.h:128
Draw nothing for DrawI, elegantly.
Definition: DrawNull.h:20
Text-based implementations for DrawI.
Definition: DrawConsole.h:20