mch2022-template-app/components/renze-graphics/include/driver_framebuffer_dirty.h
2022-01-24 22:32:33 +01:00

21 lines
523 B
C

#pragma once
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
bool driver_framebuffer_is_dirty();
/* Returns true if the framebuffer contains a dirty area */
void driver_framebuffer_set_dirty_area(int16_t x0, int16_t y0, int16_t x1, int16_t y1, bool force);
/* Set the dirty area, either incremental or directly by setting the force flag */
void driver_framebuffer_get_dirty_area(int16_t* x0, int16_t* y0, int16_t* x1, int16_t* y1);
/* Get the dirty area */
#ifdef __cplusplus
}
#endif