// Present / slam. // // surfacePresent copies pixels, SCBs, and palettes from a source // surface to the visible display. On chunky platforms (IIgs, DOS) this // is a direct copy; on planar platforms (Amiga, Atari ST) this is a // chunky-to-planar conversion. See docs/DESIGN.md section 7. #ifndef JOEYLIB_PRESENT_H #define JOEYLIB_PRESENT_H #include "platform.h" #include "surface.h" #include "types.h" // Present the entire source surface to the display. void surfacePresent(const SurfaceT *src); // Present a rectangular region of the source surface to the display. // The rect is clipped to the surface. Negative or zero dimensions are // no-ops. void surfacePresentRect(const SurfaceT *src, int16_t x, int16_t y, uint16_t w, uint16_t h); #endif