diff options
| author | Ray <[email protected]> | 2021-03-17 12:17:35 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-17 12:17:35 +0100 |
| commit | 23b966d5155c721b71447ddb5129f9a3424ce5fb (patch) | |
| tree | cdb63a53df1a177a28b63deffbc5650a6f77adcf /examples/web/text | |
| parent | 0ae8e4d606b8d9bd41f875f9395fcf3bfa1c9121 (diff) | |
| download | raylib.com-23b966d5155c721b71447ddb5129f9a3424ce5fb.tar.gz raylib.com-23b966d5155c721b71447ddb5129f9a3424ce5fb.zip | |
Update examples to use latest enum values
Diffstat (limited to 'examples/web/text')
| -rw-r--r-- | examples/web/text/text_font_filters.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/web/text/text_font_filters.c b/examples/web/text/text_font_filters.c index f2b44f8..8248bba 100644 --- a/examples/web/text/text_font_filters.c +++ b/examples/web/text/text_font_filters.c @@ -59,7 +59,7 @@ int main(void) fontSize = font.baseSize; - SetTextureFilter(font.texture, FILTER_POINT); + SetTextureFilter(font.texture, TEXTURE_FILTER_POINT); fontPosition = (Vector2){ 40, screenHeight/2 - 70 }; @@ -100,18 +100,18 @@ void UpdateDrawFrame(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; } |
