2024-05-17 11:40:02 -04:00
|
|
|
//
|
|
|
|
// Created by william on 17/05/24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef NES_EMULATOR_WINDOW_H
|
|
|
|
#define NES_EMULATOR_WINDOW_H
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
2024-06-16 19:22:40 -04:00
|
|
|
typedef struct nes_sdl_context {
|
2024-05-17 11:40:02 -04:00
|
|
|
SDL_Renderer *renderer;
|
|
|
|
SDL_Window *window;
|
2024-06-16 19:22:40 -04:00
|
|
|
} NesSdlContext;
|
2024-05-17 11:40:02 -04:00
|
|
|
|
2024-06-16 19:22:40 -04:00
|
|
|
NesSdlContext window_init(char *title, int width, int height, int scale);
|
|
|
|
void window_uninit(NesSdlContext context);
|
2024-05-17 11:40:02 -04:00
|
|
|
|
|
|
|
#endif //NES_EMULATOR_WINDOW_H
|