diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-25 14:59:20 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-25 14:59:20 +0100 |
commit | 0e6f7148ab0987574c45e78cb8fd6ff72fdf103a (patch) | |
tree | 2ccc32a6708e079db94cab4911eb10f912756af3 /src/ppusim/work.h | |
parent | 5850f4ab766256791f72301349e30d4cd304c675 (diff) |
optimize ppusim with threads
Diffstat (limited to 'src/ppusim/work.h')
-rw-r--r-- | src/ppusim/work.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ppusim/work.h b/src/ppusim/work.h new file mode 100644 index 0000000..1171a22 --- /dev/null +++ b/src/ppusim/work.h @@ -0,0 +1,14 @@ +#pragma once + +#include <SDL2/SDL.h> + +#include "ppu/consts.h" + +typedef uint8_t hh_s_ppusim_color[3]; +typedef hh_s_ppusim_color hh_s_ppusim_scanline[HH_PPU_SCREEN_WIDTH]; +typedef hh_s_ppusim_scanline hh_s_ppusim_screen[HH_PPU_SCREEN_HEIGHT]; + +void* hh_ppusim_draw_scanline(void*); + +void hh_ppusim_draw_frame(SDL_Renderer*); + |