nesemu/gui/pattern_window.h

29 lines
716 B
C
Raw Normal View History

2024-06-16 19:22:40 -04:00
//
// Created by william on 6/14/24.
//
#ifndef NES_EMULATOR_PATTERN_WINDOW_H
#define NES_EMULATOR_PATTERN_WINDOW_H
#include "../include/types.h"
2024-07-12 13:07:16 -04:00
#include "window.h"
#include "pattern_display.h"
2024-06-16 19:22:40 -04:00
#define PW_ROW_TILE_COUNT 16
typedef struct nes_pattern_window {
NesSdlContext sdl_context;
2024-07-12 13:07:16 -04:00
PatternDisplay pattern_display;
2024-07-12 18:52:54 -04:00
byte* pattern_memory;
2024-06-16 19:22:40 -04:00
} NesPatternWindow;
2024-07-12 18:52:54 -04:00
void pattern_window_init(NesPatternWindow *window, byte *pattern_memory);
2024-06-16 19:22:40 -04:00
void pattern_window_uninit(NesPatternWindow *window);
2024-07-12 18:52:54 -04:00
void pattern_window_build_table(NesPatternWindow *window);
2024-06-16 19:22:40 -04:00
void pattern_window_render(NesPatternWindow *window);
void pattern_window_present(NesPatternWindow *window);
#endif //NES_EMULATOR_PATTERN_WINDOW_H