nesemu/gui/gui.h

31 lines
524 B
C

//
// Created by william on 16/05/24.
//
#ifndef NES_EMULATOR_GUI_H
#define NES_EMULATOR_GUI_H
#include <SDL.h>
#include "canvas.h"
#define GUI_SCALING 3
#define GUI_WIDTH CANVAS_WIDTH * GUI_SCALING
#define GUI_HEIGHT CANVAS_HEIGHT * GUI_SCALING
typedef struct nes_gui {
SDL_Renderer *renderer;
SDL_Window *window;
Canvas canvas;
} NesGui;
int gui_init();
int gui_input();
void gui_prepare();
void gui_render();
void gui_present();
void gui_uninit();
Canvas *gui_get_canvas();
#endif //NES_EMULATOR_GUI_H