summaryrefslogtreecommitdiffhomepage
path: root/examples/text
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-03 23:05:52 +0100
committerRay <[email protected]>2021-03-03 23:05:52 +0100
commitc8ed231eca7a602bddea5e9c4f710ab503dd4d38 (patch)
tree4d0c24e9b17303d62d0e7c930a38da3e848f1ef3 /examples/text
parentca22a8794977aadce9a90f41bdb7693b16e3010f (diff)
downloadraylib-c8ed231eca7a602bddea5e9c4f710ab503dd4d38.tar.gz
raylib-c8ed231eca7a602bddea5e9c4f710ab503dd4d38.zip
Update text_font_filters.c
Diffstat (limited to 'examples/text')
-rw-r--r--examples/text/text_font_filters.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/text/text_font_filters.c b/examples/text/text_font_filters.c
index d90c4277..9ad5cff4 100644
--- a/examples/text/text_font_filters.c
+++ b/examples/text/text_font_filters.c
@@ -40,8 +40,8 @@ int main(void)
Vector2 textSize = { 0.0f, 0.0f };
// Setup texture scaling filter
- SetTextureFilter(font.texture, FILTER_POINT);
- int currentFontFilter = 0; // FILTER_POINT
+ SetTextureFilter(font.texture, TEXTURE_FILTER_POINT);
+ int currentFontFilter = 0; // TEXTURE_FILTER_POINT
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -56,18 +56,18 @@ int main(void)
// Choose font texture filter method
if (IsKeyPressed(KEY_ONE))
{
- SetTextureFilter(font.texture, FILTER_POINT);
+ SetTextureFilter(font.texture, TEXTURE_FILTER_POINT);
currentFontFilter = 0;
}
else if (IsKeyPressed(KEY_TWO))
{
- SetTextureFilter(font.texture, FILTER_BILINEAR);
+ SetTextureFilter(font.texture, TEXTURE_FILTER_BILINEAR);
currentFontFilter = 1;
}
else if (IsKeyPressed(KEY_THREE))
{
// NOTE: Trilinear filter won't be noticed on 2D drawing
- SetTextureFilter(font.texture, FILTER_TRILINEAR);
+ SetTextureFilter(font.texture, TEXTURE_FILTER_TRILINEAR);
currentFontFilter = 2;
}