12 #ifndef BLITTER_8BPP_BASE_HPP 13 #define BLITTER_8BPP_BASE_HPP 22 void *
MoveTo(
void *video,
int x,
int y);
23 void SetPixel(
void *video,
int x,
int y, uint8 colour);
24 void DrawRect(
void *video,
int width,
int height, uint8 colour);
25 void CopyFromBuffer(
void *video,
const void *src,
int width,
int height);
26 void CopyToBuffer(
const void *video,
void *dst,
int width,
int height);
27 void CopyImageToBuffer(
const void *video,
void *dst,
int width,
int height,
int dst_pitch);
28 void ScrollBuffer(
void *video,
int &left,
int &top,
int &width,
int &height,
int scroll_x,
int scroll_y);
void DrawRect(void *video, int width, int height, uint8 colour)
Make a single horizontal line in a single colour on the video-buffer.
uint32 PaletteID
The number of the palette.
Information about the currently used palette.
void SetPixel(void *video, int x, int y, uint8 colour)
Draw a pixel with a given colour on the video-buffer.
void * MoveTo(void *video, int x, int y)
Move the destination pointer the requested amount x and y, keeping in mind any pitch and bpp of the r...
int GetBytesPerPixel()
Get how many bytes are needed to store a pixel.
How all blitters should look like.
uint8 GetScreenDepth()
Get the screen depth this blitter works for.
void PaletteAnimate(const Palette &palette)
Called when the 8bpp palette is changed; you should redraw all pixels on the screen that are equal to...
void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal)
Draw a colourtable to the screen.
Base for all 8bpp blitters.
void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y)
Scroll the videobuffer some 'x' and 'y' value.
void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch)
Copy from the screen to a buffer in a palette format for 8bpp and RGBA format for 32bpp...
void CopyFromBuffer(void *video, const void *src, int width, int height)
Copy from a buffer to the screen.
Blitter::PaletteAnimation UsePaletteAnimation()
Check if the blitter uses palette animation at all.
void CopyToBuffer(const void *video, void *dst, int width, int height)
Copy from the screen to a buffer.
PaletteAnimation
Types of palette animation.
int BufferSize(int width, int height)
Calculate how much memory there is needed for an image of this size in the video-buffer.