a while ago I asked how to draw with MSL but no one seemed to know the answer. Today, I looked into the sources and found that although drawing method is called in msl.c (around line 2550), no primitive is defined (and thus nothing is drawn).
However, adding new attribute (primitive) does the trick (added under parsing poinsize atribute):
Code: Select all
if (LocaleCompare(keyword,"primitive") == 0)
{
CloneString(&draw_info->primitive,value);
break;
}
Code: Select all
<draw pointsize="40" fill="blue" primitive="text 30,30 Hullo" />
<draw pointsize="40" fill="blue" primitive="line 30,30,20,20" />
Bye
- Vojta