nesemu/gui/main_window.h

29 lines
623 B
C
Raw Normal View History

2024-06-16 19:22:40 -04:00
//
// Created by william on 6/8/24.
//
#ifndef NES_EMULATOR_MAIN_WINDOW_H
#define NES_EMULATOR_MAIN_WINDOW_H
#include <SDL.h>
#include "../include/ppu.h"
#include "window.h"
2024-06-21 13:47:28 -04:00
#define MAIN_WINDOW_WIDTH 256
#define MAIN_WINDOW_HEIGHT 240
2024-06-16 19:22:40 -04:00
#define MAIN_WINDOW_SCALE 2
typedef struct nes_main_window {
NesSdlContext sdl_context;
SDL_Texture *texture;
} NesMainWindow;
2024-07-25 21:22:00 -04:00
void main_window_init(NesMainWindow *window);
2024-06-16 19:22:40 -04:00
void main_window_uninit(NesMainWindow *window);
2024-06-21 13:47:28 -04:00
void main_window_render(NesMainWindow *window, PPUPixel* pixels);
2024-06-16 19:22:40 -04:00
void main_window_present(NesMainWindow *window);
#endif //NES_EMULATOR_MAIN_WINDOW_H