Cleaned up the GlyphData code.

This commit is contained in:
Alex Szpakowski
2016-03-02 22:12:32 -04:00
parent f51bbb8462
commit a3ff90c94c
2 changed files with 38 additions and 31 deletions
+11 -1
View File
@@ -69,6 +69,16 @@ public:
void *getData() const;
size_t getSize() const;
/**
* Gets the data starting at a specific pixel in the glyph.
**/
void *getData(int x, int y) const;
/**
* Gets the size in bytes of each pixel in the glyph.
**/
size_t getPixelSize() const;
/**
* Gets the height of the glyph.
**/
@@ -141,7 +151,7 @@ private:
GlyphMetrics metrics;
// Glyph texture data.
unsigned char *data;
uint8 *data;
// The format the data's in.
Format format;