source: trunk/src/font.h @ 2370

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

New year copyright update.

  • Property svn:keywords set to Id
File size: 884 bytes
RevLine 
[100]1//
[221]2// Lol Engine
[100]3//
[2216]4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
[221]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
[2183]8//   http://www.wtfpl.net/ for more details.
[221]9//
[87]10
[100]11//
12// The Font class
13// --------------
14//
[87]15
[748]16#if !defined __LOL_FONT_H__
17#define __LOL_FONT_H__
[87]18
[147]19#include "entity.h"
[111]20
[686]21namespace lol
22{
23
[87]24class FontData;
25
[147]26class Font : public Entity
[87]27{
28public:
29    Font(char const *path);
30    ~Font();
31
[111]32protected:
[147]33    /* Inherited from Entity */
[153]34    virtual char const *GetName();
[1310]35    virtual void TickDraw(float seconds);
[111]36
37public:
38    /* New methods */
[1198]39    void Print(vec3 pos, char const *str, vec2 scale = vec2(1.0f));
[863]40    ivec2 GetSize() const;
[87]41
42private:
43    FontData *data;
44};
45
[686]46} /* namespace lol */
47
[748]48#endif // __LOL_FONT_H__
[87]49
Note: See TracBrowser for help on using the repository browser.