diff examples/example-font/example-font.c @ 472:bc5483849614

core: texture -> mlk_texture
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 11:24:38 +0100
parents 0d6206cee6b9
children ca30ff96bbe0
line wrap: on
line diff
--- a/examples/example-font/example-font.c	Mon Feb 27 11:18:52 2023 +0100
+++ b/examples/example-font/example-font.c	Mon Feb 27 11:24:38 2023 +0100
@@ -100,7 +100,7 @@
 	(void)st;
 
 	struct mlk_font *font = theme_default()->fonts[THEME_FONT_INTERFACE];
-	struct texture tex;
+	struct mlk_texture tex;
 
 	mlk_painter_set_color(0xffffffff);
 	mlk_painter_clear();
@@ -108,9 +108,9 @@
 	if (mlk_font_render(font, &tex, "Example of text. Use <Left>/<Right> to change color and <Space> to toggle antialiasing.", colors[ci]) < 0)
 		mlk_panic();
 
-	texture_draw(&tex, 10, 10);
+	mlk_texture_draw(&tex, 10, 10);
 	mlk_painter_present();
-	texture_finish(&tex);
+	mlk_texture_finish(&tex);
 }
 
 static void