Cafu Engine
ScrlInfo.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_CLIENT_SCROLLINFO_HPP_INCLUDED
8 #define CAFU_CLIENT_SCROLLINFO_HPP_INCLUDED
9 
10 #include "Templates/Array.hpp"
11 #include <string>
12 
13 
14 class FontT;
15 
16 
18 {
19  public:
20 
21  ScrollInfoT();
22 
23  void Print(const std::string& Line);
24  void Draw(FontT& Font, unsigned long PosX, unsigned long PosY, float FrameWidth, float FrameHeight) const;
25  void AdvanceTime(float FrameTime);
26 
27 
28  private:
29 
30  const unsigned int m_MAX_LINES;
31  float m_TimeLeft;
32  ArrayT<std::string> m_InfoLines;
33 };
34 
35 #endif
A class for MatSys-based font rendering.
Definition: Font.hpp:19
Definition: ScrlInfo.hpp:17