|
how to set style |
stone830209
Member #7,509
July 2006
|
hello every one ,is there any function in allegro to set fill style or to set line style? (Just like the function in BGI)if not how to set style? |
miran
Member #2,407
June 2002
|
drawing_mode() -- |
stone830209
Member #7,509
July 2006
|
firstly thanks for your advise,but not exactly I just want to draw a line with different styles,such as SOLID_LINE ,DOTTED_LINE,DASHED_LINE ,etc.Is there such function in allegro? |
miran
Member #2,407
June 2002
|
Quote: Is there such function in allegro? I'm affraid not. It wouldn't be too difficult to make though. You can use the do_line() function. It will call your custom callback for every pixel of the line that needs to be drawn and all you have to do is figure out whether to draw the pixel or not, depending on the position of the pixel and the line style. There are similar functions for circle and ellipse as well... -- |
|