Skip to content

Commit

Permalink
Refactor|BitmapFont|Client: Applied pimpl idiom; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Nov 10, 2013
1 parent 4f2cc2f commit d91ec88
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 207 deletions.
16 changes: 3 additions & 13 deletions doomsday/client/include/resource/bitmapfont.h
Expand Up @@ -42,21 +42,8 @@ class BitmapFont : public AbstractFont
Point2Raw coords[4];
};

/// Absolute file path to the archived version of this font (if any).
ddstring_t _filePath;

/// GL-texture name.
DGLuint _tex;

/// Size of the texture in pixels.
Size2Raw _texSize;

/// Character map.
bitmapfont_char_t _chars[MAX_CHARS];

public:
BitmapFont(fontid_t bindId);
~BitmapFont();

static BitmapFont *fromFile(fontid_t bindId, char const *resourcePath);

Expand All @@ -77,6 +64,9 @@ class BitmapFont : public AbstractFont
RectRaw const *charGeometry(unsigned char ch);
int charWidth(unsigned char ch);
int charHeight(unsigned char ch);

private:
DENG2_PRIVATE(d)
};

#endif // CLIENT_RESOURCE_BITMAPFONT_H

0 comments on commit d91ec88

Please sign in to comment.