source: trunk/src/font.h @ 2815

Last change on this file since 2815 was 2815, checked in by lolbot, 6 years ago

fixed 542 files out of 2754:

  • removed 0 CR characters
  • removed 0 trailing whitespaces
  • replaced 0 tabs with spaces
  • fixed 542 svn:eol-style properties
  • Property svn:eol-style set to CR
  • Property svn:keywords set to Id
File size: 884 bytes
Line 
1// // Lol Engine // // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> //   This program is free software; you can redistribute it and/or //   modify it under the terms of the Do What The Fuck You Want To //   Public License, Version 2, as published by Sam Hocevar. See //   http://www.wtfpl.net/ for more details. // // // The Font class // -------------- // #if !defined __LOL_FONT_H__ #define __LOL_FONT_H__ #include "entity.h" namespace lol { class FontData; class Font : public Entity { public:     Font(char const *path);     ~Font(); protected:     /* Inherited from Entity */     virtual char const *GetName();     virtual void TickDraw(float seconds); public:     /* New methods */     void Print(vec3 pos, char const *str, vec2 scale = vec2(1.0f));     ivec2 GetSize() const; private:     FontData *data; }; } /* namespace lol */ #endif // __LOL_FONT_H__
Note: See TracBrowser for help on using the repository browser.