Font objects now have mipmap filter and mipmap sharpness support

This commit is contained in:
Alexander Szpakowski
2013-01-07 16:31:48 -04:00
parent a6f4a3ab0f
commit 36c5259e12
4 changed files with 127 additions and 12 deletions
+12 -1
View File
@@ -127,7 +127,10 @@ public:
float getSpacing() const;
void setFilter(const Image::Filter &f);
Image::Filter getFilter();
const Image::Filter &getFilter();
void setMipmapSharpness(float sharpness);
float getMipmapSharpness() const;
// Implements Volatile.
bool loadVolatile();
@@ -196,6 +199,14 @@ private:
int texture_x, texture_y;
int rowHeight;
// Mipmap texture LOD bias value
float mipmapsharpness;
// Implementation-dependent maximum/minimum mipmap sharpness values
float maxmipmapsharpness;
void checkMipmapsCreated() const;
bool initializeTexture(GLint format);
void createTexture();
Glyph *addGlyph(const int glyph);