FxEngine  0.0.1
3d engine for fx9860G calculators
bitmap.h
Go to the documentation of this file.
1 #include <stdint.h>
2 #include <stdbool.h>
3 
9 struct bitmap_rich
10 {
11  uint32_t size_px_x;
12  uint32_t size_px_y;
13  uint32_t size_o_y;
14 
15  uint32_t * color;
17  uint32_t * layout;
19 };
20 typedef struct bitmap_rich bitmap_rich;
21 
22 
35 bitmap_rich* bitmap_new_rich(uint32_t size_px_x, uint32_t size_px_y, uint32_t* color, bool copy_color,
36  uint32_t *layout, bool copy_layout);
37 
44 
45 
65 inline uint8_t bitmap_get_pixel_r(const bitmap_rich * bmp, uint32_t x, uint32_t y);
66 
67 
77 void bitmap_display_pixel_r(const bitmap_rich * bmp, uint32_t bmp_x, uint32_t bmp_y, uint32_t x, uint32_t y);
78 
79 
80 
bitmap rich type transparency is in the layout
Definition: bitmap.h:9
bool color_dynamic
Definition: bitmap.h:16
bool layout dynamic
Definition: bitmap.h:18
bitmap_rich * bitmap_new_rich(uint32_t size_px_x, uint32_t size_px_y, uint32_t *color, bool copy_color, uint32_t *layout, bool copy_layout)
{ function_description }
uint32_t size_px_x
Definition: bitmap.h:11
void bitmap_delete_rich(bitmap_rich *bmp)
delete a rich bitmap created with bitmap_new_rich()
uint32_t size_px_y
Definition: bitmap.h:12
uint8_t bitmap_get_pixel_r(const bitmap_rich *bmp, uint32_t x, uint32_t y)
get the color of pixel from rich bitmap
uint32_t * color
Definition: bitmap.h:15
uint32_t * layout
Definition: bitmap.h:17
uint32_t size_o_y
Definition: bitmap.h:13
void bitmap_display_pixel_r(const bitmap_rich *bmp, uint32_t bmp_x, uint32_t bmp_y, uint32_t x, uint32_t y)
display a specific rich bitmap pixel on the screen