summaryrefslogtreecommitdiffstats
path: root/hal/framebuffer.h
blob: e0708898c4f2926545fac3295fcad030f921d025 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _JOVE_HAL_FRAMEBUFFER_H
#define _JOVE_HAL_FRAMEBUFFER_H 1

#include <stddef.h>
#include "hal/obj.h"

size_t fb_width(jove_owned_obj_t *fb);
size_t fb_height(jove_owned_obj_t *fb);
int fb_blit(jove_owned_obj_t *obj, uint32_t *data, size_t x, size_t y, size_t width, size_t height);

void *fb_remap(uintptr_t fb_address, size_t fb_size);
void fb_init(void);

#endif