New name. Minor corrections. Includes PONG.
This commit is contained in:
6
vdp.cpp
6
vdp.cpp
@@ -26,6 +26,7 @@ static SDL_Window* sdlWindow = NULL;
|
||||
static SDL_Renderer* sdlRenderer = NULL;
|
||||
static SDL_Texture* sdlTexture = NULL;
|
||||
static SDL_Rect src, dst;
|
||||
static bool fullscreen = false;
|
||||
static const Uint8* keys = nullptr;
|
||||
static Uint8 just_pressed = SDL_SCANCODE_UNKNOWN;
|
||||
|
||||
@@ -148,6 +149,11 @@ void vdp_flip() {
|
||||
SDL_RenderPresent(sdlRenderer);
|
||||
}
|
||||
|
||||
void vdp_switch_fullscreen() {
|
||||
SDL_SetWindowFullscreen(sdlWindow, fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||
fullscreen = !fullscreen;
|
||||
}
|
||||
|
||||
void vdp_data_out(const unsigned char& value) {
|
||||
data_stack[data_stack_pos++] = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user