gds_draw.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _GDS_DRAW_H_
  2. #define _GDS_DRAW_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "esp_attr.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. struct GDS_Device;
  10. enum { GDS_RGB565, GDS_RGB555, GDS_RGB444 };
  11. #ifndef _GDS_PRIVATE_H_
  12. void IRAM_ATTR GDS_DrawPixelFast( struct GDS_Device* Device, int X, int Y, int Color );
  13. void IRAM_ATTR GDS_DrawPixel( struct GDS_Device* Device, int X, int Y, int Color );
  14. #endif
  15. void GDS_DrawHLine( struct GDS_Device* Device, int x, int y, int Width, int Color );
  16. void GDS_DrawVLine( struct GDS_Device* Device, int x, int y, int Height, int Color );
  17. void GDS_DrawLine( struct GDS_Device* Device, int x0, int y0, int x1, int y1, int Color );
  18. void GDS_DrawBox( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color, bool Fill );
  19. void GDS_DrawRGB16( struct GDS_Device* Device, int x, int y, int Width, int Height, int RGB_Mode, uint16_t **Image );
  20. // draw a bitmap with source 1-bit depth organized in column and col0 = bit7 of byte 0
  21. void GDS_DrawBitmapCBR( struct GDS_Device* Device, uint8_t *Data, int Width, int Height, int Color);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif