aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 17:30:35 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 17:30:35 +0100
commit66f2777086e4d554067da7400f543fe7cc9e4b0b (patch)
treef0abc1ab150a683b5f9cea0842aed583acceff4a /src/crepe/facade
parent2c1f7df48bfd1ea87912826c4faa39a18e936146 (diff)
removed unused functions and friend relationss
Diffstat (limited to 'src/crepe/facade')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
-rw-r--r--src/crepe/facade/SDLContext.h18
2 files changed, 0 insertions, 22 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 6becf60..abdfed0 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -340,8 +340,6 @@ SDLContext::CameraValues SDLContext::set_camera(const Camera & cam) {
return ret_cam;
}
-uint64_t SDLContext::get_ticks() const { return SDL_GetTicks64(); }
-
std::unique_ptr<SDL_Texture, std::function<void(SDL_Texture *)>>
SDLContext::texture_from_path(const std::string & path) {
@@ -372,8 +370,6 @@ ivec2 SDLContext::get_size(const Texture & ctx) {
return size;
}
-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;
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index e232511..31646a6 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -140,24 +140,6 @@ private:
MouseButton sdl_to_mousebutton(Uint8 sdl_button);
private:
- //! Will only use delay
- friend class LoopTimer;
- /**
- * \brief Gets the current SDL ticks since the program started.
- * \return Current ticks in milliseconds as a constant uint64_t.
- */
- uint64_t get_ticks() const;
- /**
- * \brief Pauses the execution for a specified duration.
- *
- * This function uses SDL's delay function to halt the program execution for a given number
- * of milliseconds, allowing for frame rate control or other timing-related functionality.
- *
- * \param ms Duration of the delay in milliseconds.
- */
- void delay(int ms) const;
-
-private:
/**
* \brief Constructs an SDLContext instance.
* Initializes SDL, creates a window and renderer.