3 /////////////////////////////////////////////////////////////////////////////
5 // Copyright (c) 2005 David Ward
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __View_DelayedDraw_h_
10 #define __View_DelayedDraw_h_
12 #include "../DasherTypes.h"
18 class Dasher::CDasherScreen
;
24 /// Class for delayed draw events
25 /// Useful for rendering the text on top of the nodes without using
26 /// 2 buffers or 2 passes of the model
29 //! DelayDraw string String of size Size positioned at x1 and y1
30 void DelayDrawText(const std::string
& String
, screenint x1
, screenint y1
, int Size
);
32 //! Draw all DelayDraw events
33 void Draw(CDasherScreen
* screen
);
39 CTextSymbol(symbol Character
, screenint x
, screenint y
, int iSize
)
40 : m_Character(Character
), m_x(x
), m_y(y
), m_iSize(iSize
) {
49 CTextString(const std::string
& str
, screenint x
, screenint y
, int iSize
)
50 : m_String(str
), m_x(x
), m_y(y
), m_iSize(iSize
) {
51 } std::string m_String
;
57 std::vector
< CTextSymbol
> m_DrawTextSymbol
;
58 std::vector
< CTextString
> m_DrawTextString
;