src/text.c

changeset 18
00c0632f0f40
parent 17
25013a35e07d
child 19
d0e88022e209
equal deleted inserted replaced
17:25013a35e07d 18:00c0632f0f40
52 glTexParameteri(GL_TEXTURE_RECTANGLE, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 52 glTexParameteri(GL_TEXTURE_RECTANGLE, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
53 asc_dprintf("Generated new texture for text node: %u", node->tex_id); 53 asc_dprintf("Generated new texture for text node: %u", node->tex_id);
54 } 54 }
55 55
56 // Render text onto a surface 56 // Render text onto a surface
57 SDL_Surface *surface = TTF_RenderText_Blended_Wrapped( 57 SDL_Surface *surface = TTF_RenderUTF8_Blended_Wrapped(
58 asc_context.active_font->ptr, 58 asc_context.active_font->ptr,
59 text.ptr, 59 text.ptr,
60 (SDL_Color) { 60 (SDL_Color) {
61 .r = asc_context.ink.red, 61 .r = asc_context.ink.red,
62 .g = asc_context.ink.green, 62 .g = asc_context.ink.green,

mercurial