aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-08 12:54:35 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-08 12:54:35 +0100
commitdc7a1c3d669b901adb9c520b4a76a868a3cc94e9 (patch)
tree3e2fb8781ba648a9d8ff4bb4b033cd5cc83c85cc /src/crepe/facade/SDLContext.cpp
parent81de5e68ba6cf5cd8bc64c3fc0eecef84c417b61 (diff)
fixed inputtest test because of adjusting inputtest values. however inputtest passes while sdlcontext returns pixel coordinates?????
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 4cc2206..e010ac3 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -11,6 +11,7 @@
#include <cstddef>
#include <cstdint>
#include <functional>
+#include <iostream>
#include <memory>
#include <stdexcept>
@@ -324,6 +325,8 @@ SDLContext::CameraValues SDLContext::set_camera(const Camera & cam) {
render_scale.x = render_scale.y = scale;
}
+ //cout << render_scale.x << " " << bar_size.x << " " << bar_size.y << endl;
+
SDL_SetRenderDrawColor(this->game_renderer.get(), cam_data.bg_color.r, cam_data.bg_color.g,
cam_data.bg_color.b, cam_data.bg_color.a);
@@ -374,6 +377,7 @@ ivec2 SDLContext::get_size(const Texture & ctx) {
void SDLContext::delay(int ms) const { SDL_Delay(ms); }
+
std::vector<SDLContext::EventData> SDLContext::get_events() {
std::vector<SDLContext::EventData> event_list;
SDL_Event event;