![]() |
![]() |
![]() |
![]() |
Repeatedly draw an image stored in a PhImage_t structure
int PgDrawRepPhImage( PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space ); int PgDrawRepPhImagemx( PhImage_t const *image, int flags, PhPoint_t const *pos, PhPoint_t const *rep, PhPoint_t const *space );
ph
These functions unite the convenience of PgDrawPhImage() or PgDrawPhImagemx() and the ability to tile images of PgDrawRepImage() or PgDrawRepBitmap().
PgDrawRepPhImage() and PgDrawRepPhImagemx() draw:
The pos, rep, and space arguments all point to structures of type PhPoint_t.
You can pass any combination of the following bits in the flags argument:
![]() |
If you call the "mx" form of this function, the data isn't
physically copied into the draw buffer. Instead, a pointer
to the image is stored until the draw buffer is flushed.
Make sure you call
PgFlush()
before you modify the image.
If the data is in shared memory, the "mx" form of this function automatically passes a shared memory reference instead of the image. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApGetImageRes(), PgDrawPhImage(), PgDrawPhImagemx(), PgDrawPhImageRectmx(), PgDrawRepImage(), PgDrawRepBitmap(), PgFlush(), PhCreateImage(), PhImage_t, PhMakeGhostBitmap(), PhMakeTransBitmap(), PhMakeTransparent(), PhPoint_t, PhReleaseImage(), PmMemCreateMC(), PmMemFlush(), PxLoadImage()
"Images" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |