src/context.c

changeset 214
9d460888a83e
parent 177
954512fc391f
equal deleted inserted replaced
213:3d252dbd7c8e 214:9d460888a83e
58 asc_context.shader_path = cx_strdup(CX_STR("./shader")); 58 asc_context.shader_path = cx_strdup(CX_STR("./shader"));
59 asc_context.texture_path = cx_strdup(CX_STR("./textures")); 59 asc_context.texture_path = cx_strdup(CX_STR("./textures"));
60 60
61 // initialize the font cache 61 // initialize the font cache
62 asc_font_cache_init(); 62 asc_font_cache_init();
63
64 // set a default font but do not load it
65 asc_context.active_font.style = ASC_FONT_REGULAR;
66 asc_context.active_font.size = 14;
67 63
68 // no window, yet 64 // no window, yet
69 asc_context.active_window = ASC_MAX_WINDOWS; 65 asc_context.active_window = ASC_MAX_WINDOWS;
70 66
71 // initialize error buffer 67 // initialize error buffer

mercurial