Ignore:
Timestamp:
May 16, 2011, 2:37:19 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: make JCFont use vec2i classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/fonts.h

    r667 r668  
    1717class JCFont
    1818{
    19   int tl,th;
    20   TransImage *let[256];
    2119public:
    22   JCFont(image *letters);
    23   void put_char(image *screen,  int x, int y, char ch, int color=-1);
    24   void put_string(image *screen, int x, int y, char const *st, int color=-1);
    25   int height() { return th; }
    26   int length() { return tl; }
    27   int width() { return tl; }
    28   ~JCFont();
    29 } ;
     20    JCFont(image *letters);
     21    ~JCFont();
     22
     23    void PutChar(image *screen, vec2i pos, char ch, int color = -1);
     24    void PutString(image *screen, vec2i pos, char const *st, int color = -1);
     25    vec2i Size() const { return m_size; }
     26
     27private:
     28    vec2i m_size;
     29    TransImage *m_data[256];
     30};
    3031
    3132#endif
    3233
    33 
Note: See TracChangeset for help on using the changeset viewer.