comparison Discovery/Inc/gfx_engine.h @ 299:b70c26be71a0

Merged in janlmulder/ostc4/cleanup-3 (pull request #24) 1 bug fix, 1 possible bug fix and some cleanup.
author heinrichsweikamp <bitbucket@heinrichsweikamp.com>
date Fri, 17 May 2019 06:38:56 +0000
parents 87d54b4fd946
children e141b571a03d
comparison
equal deleted inserted replaced
295:718e5feded62 299:b70c26be71a0
121 121
122 void GFX_SetFrameTop(uint32_t pDestination); 122 void GFX_SetFrameTop(uint32_t pDestination);
123 void GFX_SetFrameBottom(uint32_t pDestination, uint32_t x0, uint32_t y0, uint32_t width, uint32_t height); 123 void GFX_SetFrameBottom(uint32_t pDestination, uint32_t x0, uint32_t y0, uint32_t width, uint32_t height);
124 void GFX_SetFramesTopBottom(uint32_t pTop, uint32_t pBottom, uint32_t heightBottom); 124 void GFX_SetFramesTopBottom(uint32_t pTop, uint32_t pBottom, uint32_t heightBottom);
125 125
126 uint32_t GFX_get_pActualFrameTop(void);
127 uint32_t GFX_get_pActualFrameBottom(void);
128
129 //void GFX_SetFrameBuffer(uint32_t pDestination, uint32_t LayerIdx);
130 //void GFX_SetFrameBufferAndResize(uint32_t pDestination, uint32_t LayerIdx, uint32_t height);
131
132 void GFX_SetWindowLayer0(uint32_t pDestination, int16_t XleftGimpStyle, int16_t XrightGimpStyle, int16_t YtopGimpStyle, int16_t YbottomGimpStyle); 126 void GFX_SetWindowLayer0(uint32_t pDestination, int16_t XleftGimpStyle, int16_t XrightGimpStyle, int16_t YtopGimpStyle, int16_t YbottomGimpStyle);
133 void change_CLUT_entry(uint8_t entryToChange, uint8_t entryUsedForChange); 127 void change_CLUT_entry(uint8_t entryToChange, uint8_t entryUsedForChange);
134 128
135 uint16_t GFX_return_offset(const tFont *Font, char *pText, uint8_t position); 129 uint16_t GFX_return_offset(const tFont *Font, char *pText, uint8_t position);
136 130
140 134
141 void GFX_LTDC_LayerTESTInit(uint16_t LayerIndex, uint32_t FB_Address); 135 void GFX_LTDC_LayerTESTInit(uint16_t LayerIndex, uint32_t FB_Address);
142 136
143 void GFX_fill_buffer(uint32_t pDestination, uint8_t alpha, uint8_t color); 137 void GFX_fill_buffer(uint32_t pDestination, uint8_t alpha, uint8_t color);
144 138
145 void GFX_clear_frame_immediately(uint32_t pDestination);
146 void GFX_clear_window_immediately(GFX_DrawCfgWindow* hgfx); 139 void GFX_clear_window_immediately(GFX_DrawCfgWindow* hgfx);
147 140
148 //void GFX_draw_circle_with_MEMORY(uint8_t use_memory, GFX_DrawCfgScreen *hgfx, point_t center, uint8_t radius, int8_t color); 141 //void GFX_draw_circle_with_MEMORY(uint8_t use_memory, GFX_DrawCfgScreen *hgfx, point_t center, uint8_t radius, int8_t color);
149 void GFX_draw_circle(GFX_DrawCfgScreen *hgfx, point_t center, uint8_t radius, int8_t color); 142 void GFX_draw_circle(GFX_DrawCfgScreen *hgfx, point_t center, uint8_t radius, int8_t color);
150 void GFX_draw_colorline(GFX_DrawCfgScreen *hgfx, point_t start, point_t stop, uint8_t color); 143 void GFX_draw_colorline(GFX_DrawCfgScreen *hgfx, point_t start, point_t stop, uint8_t color);
187 void write_content_simple(GFX_DrawCfgScreen *tMscreen, uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint8_t color); 180 void write_content_simple(GFX_DrawCfgScreen *tMscreen, uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint8_t color);
188 void gfx_write_topline_simple(GFX_DrawCfgScreen *tMscreen, const char *text, uint8_t color); 181 void gfx_write_topline_simple(GFX_DrawCfgScreen *tMscreen, const char *text, uint8_t color);
189 void gfx_write_page_number(GFX_DrawCfgScreen *tMscreen, uint8_t page, uint8_t total, uint8_t color); 182 void gfx_write_page_number(GFX_DrawCfgScreen *tMscreen, uint8_t page, uint8_t total, uint8_t color);
190 183
191 void GFX_draw_image_monochrome(GFX_DrawCfgScreen *hgfx, SWindowGimpStyle window, const tImage *image, uint8_t color); 184 void GFX_draw_image_monochrome(GFX_DrawCfgScreen *hgfx, SWindowGimpStyle window, const tImage *image, uint8_t color);
192 void GFX_draw_image_color(GFX_DrawCfgScreen *hgfx, SWindowGimpStyle window, const tImage *image);
193 void GFX_logoAutoOff(void); 185 void GFX_logoAutoOff(void);
194 uint8_t GFX_logoStatus(void); 186 uint8_t GFX_logoStatus(void);
195 void GFX_hwBackgroundOn(void); 187 void GFX_hwBackgroundOn(void);
196 void GFX_hwBackgroundOff(void); 188 void GFX_hwBackgroundOff(void);
197 189
198 uint8_t gfx_number_to_string(uint8_t max_digits, _Bool fill, char *pText, uint32_t number); 190 uint8_t gfx_number_to_string(uint8_t max_digits, _Bool fill, char *pText, uint32_t number);
199 191
200 void GFX_init1_no_DMA(uint32_t * pDestinationOut, uint8_t blockFrames);
201 void GFX_init2_DMA(void);
202
203 uint8_t GFX_is_colorschemeDiveStandard(void); 192 uint8_t GFX_is_colorschemeDiveStandard(void);
204 void GFX_use_colorscheme(uint8_t colorscheme); 193 void GFX_use_colorscheme(uint8_t colorscheme);
205 194
206 void GFX_screenshot(void); 195 void GFX_screenshot(void);
207 196