98 } else { |
98 } else { |
99 text->text = cx_mutstr(strdup(args.text)); |
99 text->text = cx_mutstr(strdup(args.text)); |
100 } |
100 } |
101 |
101 |
102 // initialize |
102 // initialize |
|
103 asc_scene_node_name(node, args.name); |
103 text->base.texture = malloc(sizeof(AscTexture)); |
104 text->base.texture = malloc(sizeof(AscTexture)); |
104 asc_texture_init_rectangle(text->base.texture, 1); |
105 asc_texture_init_rectangle(text->base.texture, 1); |
105 asc_text_update(node); |
106 asc_text_update(node); |
106 |
107 |
107 return node; |
108 return node; |