17 lines
487 B
C
17 lines
487 B
C
#ifndef FB_H
|
|
#define FB_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
void fb_init(uint32_t * addr, uint32_t width, uint32_t height, uint32_t pitch);
|
|
bool fb_ready(void);
|
|
uint32_t * fb_addr(void);
|
|
uint32_t fb_width(void);
|
|
uint32_t fb_height(void);
|
|
void fb_blend_alpha8(const uint8_t * bitmap, int width, int height, int pitch, int x, int y, uint8_t r, uint8_t g, uint8_t b);
|
|
void fb_fill(int x, int y, int width, int height, uint8_t r, uint8_t g, uint8_t b);
|
|
void fb_clear(void);
|
|
|
|
#endif
|