mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-02 09:37:59 +00:00
Fix Window::Init() to be inline
This commit is contained in:
@@ -42,9 +42,8 @@ class Window {
|
||||
* Initializes the window.
|
||||
*
|
||||
* @throws raylib::RaylibException Thrown if the window failed to initiate.
|
||||
* @return True or false, depending on if the Window initialized properly.
|
||||
*/
|
||||
void Init(int width = 800, int height = 450, const std::string& title = "raylib") {
|
||||
inline void Init(int width = 800, int height = 450, const std::string& title = "raylib") {
|
||||
::InitWindow(width, height, title.c_str());
|
||||
if (!IsWindowReady()) {
|
||||
throw RaylibException("Failed to create Window");
|
||||
|
||||
Reference in New Issue
Block a user