add const accessor for Texture
This commit is contained in:
@@ -20,6 +20,7 @@ class FontPage;
|
|||||||
struct glyph {
|
struct glyph {
|
||||||
FontPage *fp;
|
FontPage *fp;
|
||||||
RageTexture *Texture;
|
RageTexture *Texture;
|
||||||
|
RageTexture *GetTexture() const { return const_cast<RageTexture *>(Texture); }
|
||||||
|
|
||||||
/* Number of pixels to advance horizontally after drawing this character. */
|
/* Number of pixels to advance horizontally after drawing this character. */
|
||||||
int hadvance;
|
int hadvance;
|
||||||
|
|||||||
Reference in New Issue
Block a user