mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +00:00
Adds some very basic logging to the SDL target.
This commit is contained in:
parent
e0113d5dce
commit
a97c478a34
@ -177,6 +177,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
GLint target_framebuffer = 0;
|
GLint target_framebuffer = 0;
|
||||||
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
|
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
|
||||||
|
std::cout << "Target framebuffer has ID " << target_framebuffer << std::endl;
|
||||||
|
|
||||||
// For vanilla SDL purposes, assume system ROMs can be found in one of:
|
// For vanilla SDL purposes, assume system ROMs can be found in one of:
|
||||||
//
|
//
|
||||||
@ -248,6 +249,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
int window_width, window_height;
|
int window_width, window_height;
|
||||||
SDL_GetWindowSize(window, &window_width, &window_height);
|
SDL_GetWindowSize(window, &window_width, &window_height);
|
||||||
|
std::cout << "Window size is " << window_width << ", " << window_height << std::endl;
|
||||||
|
|
||||||
// Run the main event loop until the OS tells us to quit.
|
// Run the main event loop until the OS tells us to quit.
|
||||||
bool should_quit = false;
|
bool should_quit = false;
|
||||||
@ -265,6 +267,8 @@ int main(int argc, char *argv[]) {
|
|||||||
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
|
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
|
||||||
machine->crt_machine()->get_crt()->set_target_framebuffer(target_framebuffer);
|
machine->crt_machine()->get_crt()->set_target_framebuffer(target_framebuffer);
|
||||||
SDL_GetWindowSize(window, &window_width, &window_height);
|
SDL_GetWindowSize(window, &window_width, &window_height);
|
||||||
|
|
||||||
|
std::cout << "Resized; framebuffer is " << target_framebuffer << ", and window size is " << window_width << ", " << window_height << std::endl;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user