~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: b74dd4384e0716c5935dce755e02c034819e60cf CTU-FEE-B0B35APO-Semestral-project/lib-pheripherals/include/xwin_sdl.h -rw-r--r-- 309 bytes
b74dd438 — František Boháček feat: add text viewer to root Makefile 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __XWIN_SDL_H__
#define __XWIN_SDL_H__

#include <stdbool.h>
#include <SDL.h>
#include <stdint.h>

int xwin_init(uint16_t w, uint16_t h);
void xwin_close();
void xwin_redraw(uint16_t w, uint16_t h, uint8_t *img);
bool xwin_poll_event(SDL_Event *event);
void xwin_save_image(char *output_name);

#endif