Allocate a small chunk of display memory with back store.
Allocate a small chunk of display memory with back store. This structure can be used for sprites, cursors, message boxes or anything else that might need to display and keep its background for re-blitting later.Accepted tags:
XIVT_FLAGS: The flags are XIV_FILLBACK to fill the created rectangle in view->image with the specified background colour, XIV_NOSTORE to not create any storage for the background area and XIV_NOKEY to avoid colourkey blitting with the background colour as key (entire surface is copied instead of background showing through).
XIVT_SCREEN: SDL surface to blit onto (need not be main screen).
XIVT_XPOS, XIVT_YPOS: Position in suface to be blitted to.
XIVT_WIDTH, XIVT_HEIGHT: Size of view and background storage, unless an image to be loaded is specified.
XIVT_BGCOL: It's recommended that you use SDL_MapRGB() from the destination surface's format to set this, if you need it.
XIVT_IMAGE: An SDL_image supported file to load and use as view->image.