nesemu/gui/nametable_window.h

29 lines
698 B
C
Raw Normal View History

2024-07-12 13:07:16 -04:00
//
// Created by william on 12/07/24.
//
#ifndef NES_EMULATOR_NAMETABLE_WINDOW_H
#define NES_EMULATOR_NAMETABLE_WINDOW_H
#include "window.h"
#include "../include/types.h"
2024-08-03 21:51:31 -04:00
#define NW_SCALE 2
2024-07-23 20:46:13 -04:00
#define NW_ROW_COUNT 60
#define NW_ROW_TILE_COUNT 64
2024-07-12 13:07:16 -04:00
typedef struct nes_nametable_window {
NesSdlContext sdl_context;
2024-07-23 18:50:11 -04:00
SDL_Texture *texture;
2024-07-12 13:07:16 -04:00
} NesNametableWindow;
2024-07-21 16:41:38 -04:00
void nametable_window_init(NesNametableWindow *window);
2024-07-12 13:07:16 -04:00
void nametable_window_uninit(NesNametableWindow *window);
2024-07-23 20:46:13 -04:00
void nametable_window_update(NesNametableWindow *window);
2024-07-12 13:07:16 -04:00
void nametable_window_render(NesNametableWindow *window);
void nametable_window_present(NesNametableWindow *window);
#endif //NES_EMULATOR_NAMETABLE_WINDOW_H