Mercurial > molko
comparison libmlk-adventure/adventure/state/splashscreen.c @ 263:cd5bdb995052
cmake: create a new libmlk-data library
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 08 Dec 2020 17:00:03 +0100 |
parents | 16be1ad3ddba |
children | a15f77eda9a4 |
comparison
equal
deleted
inserted
replaced
262:afdeafb82c22 | 263:cd5bdb995052 |
---|---|
31 #include <core/texture.h> | 31 #include <core/texture.h> |
32 #include <core/window.h> | 32 #include <core/window.h> |
33 | 33 |
34 #include <ui/align.h> | 34 #include <ui/align.h> |
35 | 35 |
36 #include <assets/fonts/cubic.h> | 36 #include <adventure/molko.h> |
37 | 37 |
38 #include "splashscreen.h" | 38 #include "splashscreen.h" |
39 #include "mainmenu.h" | 39 #include "mainmenu.h" |
40 | 40 |
41 #define DELAY 3000 | 41 #define DELAY 3000 |
52 start(struct state *state) | 52 start(struct state *state) |
53 { | 53 { |
54 struct self *self = state->data; | 54 struct self *self = state->data; |
55 struct font font; | 55 struct font font; |
56 | 56 |
57 if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80)) | 57 if (!font_open(&font, molko_path("fonts/cubic.ttf"), 80)) |
58 panic(); | 58 panic(); |
59 | 59 |
60 font.style = FONT_STYLE_ANTIALIASED; | 60 font.style = FONT_STYLE_ANTIALIASED; |
61 | 61 |
62 if (!font_render(&font, &self->tex, "malikania", 0x19332dff)) | 62 if (!font_render(&font, &self->tex, "malikania", 0x19332dff)) |