nesemu/gui/gui.h

31 lines
542 B
C
Raw Normal View History

2024-05-17 00:33:37 -04:00
//
// Created by william on 16/05/24.
//
#ifndef NES_EMULATOR_GUI_H
#define NES_EMULATOR_GUI_H
#include "canvas.h"
2024-05-17 13:16:21 -04:00
#define WINDOW_ID_MAIN 1
#define WINDOW_MAIN_WIDTH 256
#define WINDOW_MAIN_HEIGHT 240
#define WINDOW_MAIN_SCALING 3
2024-05-17 13:16:21 -04:00
#define WINDOW_ID_PATTERN 2
#define WINDOW_PATTERN_WIDTH 128
#define WINDOW_PATTERN_HEIGHT 256
#define WINDOW_PATTERN_SCALING 2
2024-05-17 00:33:37 -04:00
void gui_init();
void gui_uninit();
2024-05-17 00:33:37 -04:00
int gui_input();
void gui_render();
void gui_present();
2024-05-17 13:16:21 -04:00
void gui_delay();
2024-05-17 00:33:37 -04:00
Canvas *gui_get_canvas(char win_id);
2024-05-17 00:33:37 -04:00
#endif //NES_EMULATOR_GUI_H