Browse Source

add bitmap functions prototype

master
milang 10 months ago
parent
commit
2fa7e5a082
No known key found for this signature in database GPG Key ID: D287C9D6C33D9035
2 changed files with 12 additions and 7 deletions
  1. +11
    -4
      include/render/bitmap.h
  2. +1
    -3
      src/render/bitmap.c

+ 11
- 4
include/render/bitmap.h View File

@@ -6,9 +6,6 @@
1 dans layout -> 1 dans color -> noir
0 dans color -> blanc */




struct bitmap_rich_8
{
uint32_t size_x,
@@ -34,4 +31,14 @@ struct bitmap_rich_32

uint32_t * color;
uint32_t * layout;
};
};


/* bitmap_get_color_<type>(int x, int y)
returns a color coded in 2 bytes
byte 7 -> layout (visible, invisible)
byte 6 -> color (N || B) */

uint8_t bitmap_get_color_8(int x, int y);
uint8_t bitmap_get_color_16(int x, int y);
uint8_t bitmap_get_color_32(int x, int y);

+ 1
- 3
src/render/bitmap.c View File

@@ -1,3 +1 @@
#include <bitmap.h>

bool
#include <bitmap.h>

Loading…
Cancel
Save