From bb5758f94711e0db078d8907da0894ca17cafae6 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 16 Jan 2021 17:43:08 -0500 Subject: [PATCH] Add window overrides --- include/Functions.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/Functions.hpp b/include/Functions.hpp index 3413763..2c8d53c 100644 --- a/include/Functions.hpp +++ b/include/Functions.hpp @@ -32,6 +32,20 @@ namespace raylib { +/** + * Initialize window and OpenGL context + */ +inline void InitWindow(int width, int height, const std::string& title) { + ::InitWindow(width, height, title.c_str()); +} + +/** + * Set title for window + */ +inline void SetWindowTitle(const std::string& title) { + ::SetWindowTitle(title.c_str()); +} + /** * Get the human-readable, UTF-8 encoded name of the primary monitor */