source: trunk/src/text.h @ 2216

Last change on this file since 2216 was 2216, checked in by touky, 7 years ago

New year copyright update.

  • Property svn:keywords set to Id
File size: 923 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The Text class
13// --------------
14//
15
16#if !defined __LOL_TEXT_H__
17#define __LOL_TEXT_H__
18
19#include "entity.h"
20
21namespace lol
22{
23
24class TextData;
25
26class Text : public Entity
27{
28public:
29    Text(char const *text, char const *font);
30    virtual ~Text();
31
32    void SetText(char const *text);
33    void SetInt(int val);
34    void SetPos(vec3 pos);
35    void SetAlign(int align);
36
37    enum
38    {
39        ALIGN_LEFT,
40        ALIGN_RIGHT,
41        ALIGN_CENTER,
42    };
43
44protected:
45    virtual void TickDraw(float seconds);
46
47private:
48    TextData *data;
49};
50
51} /* namespace lol */
52
53#endif // __LOL_TEXT_H__
54
Note: See TracBrowser for help on using the repository browser.