void hw_RawWritePixel(APTR dst, int x, int y, ULONG color, ULONG flags, struct hwTagList *tags);
hw_RawWritePixel()
in lots of different contexts. If you want to use hw_RawWritePixel()
on a Hollywood bitmap, you need to lock the bitmap first using hw_LockBitMap()
and then pass the raw pixel buffer pointer obtained by hw_LockBitMap()
to hw_RawWritePixel()
.
The following tags are recognized by hw_RawWritePixel()
:
HWRWPTAG_PIXFMT:
hw_RawWritePixel()
should use when drawing
into the pixel buffer. You have to pass a pixel format constant in the iData
member
of this tag. See Pixel format information for details. This tag defaults to HWOS_PIXFMT_ARGB32
.
HWRWPTAG_DSTWIDTH:
iData
member of this tag. If you don't pass this tag, hw_RawWritePixel()
won't work.
HWRWPTAG_CLIPRECT:
hw_RawWritePixel()
clip its output to the specified clipping
rectangle. If you pass this tag, you must set the pData
member of the tag to a
struct hwRect
containing the desired clipping rectangle. Note that by default
there is no clipping at all, so you must make sure that the destination raw pixel buffer
is large enough. (V8.0)
Additionally, hw_RawWritePixel()
supports the following flags:
HWRWPFLAGS_BLEND:
hw_RawWritePixel()
will plot a pixel with alpha-blending
to the destination pixel buffer. The blend intensity is taken from the upper 8 bits
in the color
parameter that you've passed to hw_RawWritePixel()
. If this flag is not set,
then hw_RawWritePixel()
will just draw with a static color.
Note that by default this function does not do any clipping. You must make sure that the destination
raw pixel buffer is large enough or use the HWRWPTAG_CLIPRECT
tag to set a clipping
rectangle.
HWRWPFLAGS_BLEND
has been set