src/text.c

changeset 114
5b91bbab1ac0
parent 113
71ba88258ea0
child 115
e5f8c99b0987
equal deleted inserted replaced
113:71ba88258ea0 114:5b91bbab1ac0
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;

mercurial