nesemu/gui/nametable_window.h

30 lines
765 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"
#include "pattern_display.h"
#define NW_SCALE 2
2024-07-23 18:50:11 -04:00
#define NW_ROW_COUNT 30
2024-07-12 13:07:16 -04:00
#define NW_ROW_TILE_COUNT 32
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-21 16:41:38 -04:00
void nametable_window_update(NesNametableWindow *window, byte* nametable_0, byte* nametable_1);
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