mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
#ifndef _GDS_DRAW_H_
|
|
#define _GDS_DRAW_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "esp_attr.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct GDS_Device;
|
|
|
|
enum { GDS_RGB565, GDS_RGB555, GDS_RGB444 };
|
|
|
|
#ifndef _GDS_PRIVATE_H_
|
|
void IRAM_ATTR GDS_DrawPixelFast( struct GDS_Device* Device, int X, int Y, int Color );
|
|
void IRAM_ATTR GDS_DrawPixel( struct GDS_Device* Device, int X, int Y, int Color );
|
|
#endif
|
|
void GDS_DrawHLine( struct GDS_Device* Device, int x, int y, int Width, int Color );
|
|
void GDS_DrawVLine( struct GDS_Device* Device, int x, int y, int Height, int Color );
|
|
void GDS_DrawLine( struct GDS_Device* Device, int x0, int y0, int x1, int y1, int Color );
|
|
void GDS_DrawBox( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color, bool Fill );
|
|
void GDS_DrawRGB16( struct GDS_Device* Device, int x, int y, int Width, int Height, int RGB_Mode, uint16_t **Image );
|
|
|
|
// draw a bitmap with source 1-bit depth organized in column and col0 = bit7 of byte 0
|
|
void GDS_DrawBitmapCBR( struct GDS_Device* Device, uint8_t *Data, int Width, int Height, int Color);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|