//
// VIDEO.CPP: SDL/local hardware specific video routines
//
-// by James L. Hammons
+// by James Hammons
//
#include "video.h"
#include "log.h"
#include "settings.h"
-
// Exported global variables (actually, these are LOCAL global variables, EXPORTED...)
static SDL_Window * sdlWindow = NULL;
static SDL_Texture * sdlTexture = NULL;
uint32_t scrBuffer[VIRTUAL_SCREEN_WIDTH * VIRTUAL_SCREEN_HEIGHT * sizeof(uint32_t)];
-
//
// Prime SDL and create surfaces
//
return true;
}
-
//
// Free various SDL components
//
SDL_Quit();
}
-
//
// Render the backbuffer to the primary screen surface
//
SDL_RenderPresent(sdlRenderer);
}
-
//
// Fullscreen <-> window switching
//
WriteLog("Video::ToggleFullScreen: SDL error = %s\n", SDL_GetError());
}
}
-