Drawing pixmaps
BlitzMax Forums/BlitzMax Beginners Area/Drawing pixmaps
| ||
I just decided to get into bmax after owning it since its debut. ive come across somthing i cant seem to find an answer for in the help file. Is there a way to draw a pixmap to the buffer with a mask ? ive tried SetBlend MaskBlend DrawPixmap (spritepm.window(0,0,32,32),x,y) ive also tried running though the pixmap and setting all values of color 0,0,0 with writepixel putting an alpha value of 0 in there. Its drawing the pixmap as a block regardless. Do I have to copy the pixmap to an image to use masking ? |
| ||
If you're using alpha, shouldn't you use SetBlend AlphaBlend? |
| ||
The DrawPixmap function forces SOLIDBLEND before drawing the pixmap. So you either need to make your own version, which is very easy (just copy the source and remove the SetBlend call), or use DrawImage instead. |
| ||
thanks Fredborg ill just do that. Perturbatio , from what I understand opengl uses alpha 0 for mask. it just uses alpha 0 for any color that matches the mask color. |