src/text.c

changeset 102
0d94fd280c6e
parent 95
622887f7e954
equal deleted inserted replaced
101:febf3dc10011 102:0d94fd280c6e
87 node->update_func = asc_text_update; 87 node->update_func = asc_text_update;
88 88
89 node->flags = args.alignment; 89 node->flags = args.alignment;
90 node->position.x = (float) args.x; 90 node->position.x = (float) args.x;
91 node->position.y = (float) args.y; 91 node->position.y = (float) args.y;
92 node->position.z = ASC_SCENE_2D_DEPTH_OFFSET;
93 node->scale.depth = 1.f;
92 text->max_width = args.max_width; 94 text->max_width = args.max_width;
93 text->font = asc_active_font; 95 text->font = asc_active_font;
94 text->color = asc_context.ink; 96 text->color = asc_context.ink;
95 if (args.text == NULL) { 97 if (args.text == NULL) {
96 text->text = cx_mutstr(strdup(" ")); 98 text->text = cx_mutstr(strdup(" "));

mercurial