mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Cleaned up the GlyphData code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user