53 // Draw mesh |
53 // Draw mesh |
54 asc_primitives_draw_plane(); |
54 asc_primitives_draw_plane(); |
55 } |
55 } |
56 |
56 |
57 static void asc_text_update(AscText *node) { |
57 static void asc_text_update(AscText *node) { |
58 // short circuit if fully transparent or hidden, we don't need anything |
|
59 if (node->color.alpha == 0 || node->hidden) { |
|
60 return; |
|
61 } |
|
62 |
|
63 // Generate new texture, if required |
58 // Generate new texture, if required |
64 if (asc_texture_uninitialized(&node->tex)) { |
59 if (asc_texture_uninitialized(&node->tex)) { |
65 asc_texture_init_rectangle(&node->tex); |
60 asc_texture_init_rectangle(&node->tex); |
66 } |
61 } |
67 |
62 |