mch2022-template-app/components/renze-graphics/include/driver_framebuffer_dirty.h

22 lines
523 B
C
Raw Normal View History

2022-01-11 23:53:38 +00:00
#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