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/textures | |
| 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/textures')
| -rw-r--r-- | examples/web/textures/textures_draw_tiled.c | 2 | ||||
| -rw-r--r-- | examples/web/textures/textures_npatch_drawing.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/web/textures/textures_draw_tiled.c b/examples/web/textures/textures_draw_tiled.c index 160117f..893d9b8 100644 --- a/examples/web/textures/textures_draw_tiled.c +++ b/examples/web/textures/textures_draw_tiled.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) Texture texPattern = LoadTexture("resources/patterns.png"); - SetTextureFilter(texPattern, FILTER_TRILINEAR); // Makes the texture smoother when upscaled + SetTextureFilter(texPattern, TEXTURE_FILTER_TRILINEAR); // Makes the texture smoother when upscaled // Coordinates for all patterns inside the texture const Rectangle recPattern[] = { diff --git a/examples/web/textures/textures_npatch_drawing.c b/examples/web/textures/textures_npatch_drawing.c index bf49177..a90bcff 100644 --- a/examples/web/textures/textures_npatch_drawing.c +++ b/examples/web/textures/textures_npatch_drawing.c @@ -39,14 +39,14 @@ Rectangle dstRecH = { 160.0f, 93.0f, 32.0f, 32.0f }; Rectangle dstRecV = { 92.0f, 160.0f, 32.0f, 32.0f }; // A 9-patch (NPT_9PATCH) changes its sizes in both axis -NPatchInfo ninePatchInfo1 = { (Rectangle){ 0.0f, 0.0f, 64.0f, 64.0f }, 12, 40, 12, 12, NPT_9PATCH }; -NPatchInfo ninePatchInfo2 = { (Rectangle){ 0.0f, 128.0f, 64.0f, 64.0f }, 16, 16, 16, 16, NPT_9PATCH }; +NPatchInfo ninePatchInfo1 = { (Rectangle){ 0.0f, 0.0f, 64.0f, 64.0f }, 12, 40, 12, 12, NPATCH_NINE_PATCH }; +NPatchInfo ninePatchInfo2 = { (Rectangle){ 0.0f, 128.0f, 64.0f, 64.0f }, 16, 16, 16, 16, NPATCH_NINE_PATCH }; // A horizontal 3-patch (NPT_3PATCH_HORIZONTAL) changes its sizes along the x axis only -NPatchInfo h3PatchInfo = { (Rectangle){ 0.0f, 64.0f, 64.0f, 64.0f }, 8, 8, 8, 8, NPT_3PATCH_HORIZONTAL }; +NPatchInfo h3PatchInfo = { (Rectangle){ 0.0f, 64.0f, 64.0f, 64.0f }, 8, 8, 8, 8, NPATCH_THREE_PATCH_HORIZONTAL }; // A vertical 3-patch (NPT_3PATCH_VERTICAL) changes its sizes along the y axis only -NPatchInfo v3PatchInfo = { (Rectangle){ 0.0f, 192.0f, 64.0f, 64.0f }, 6, 6, 6, 6, NPT_3PATCH_VERTICAL }; +NPatchInfo v3PatchInfo = { (Rectangle){ 0.0f, 192.0f, 64.0f, 64.0f }, 6, 6, 6, 6, NPATCH_THREE_PATCH_VERTICAL }; //---------------------------------------------------------------------------------- // Module Functions Declaration |
