Shirag 0.1.0
Loading...
Searching...
No Matches
window.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <raylib.h>
4#include <string>
5
6namespace Shirag {
7 class Window {
8 public:
9 std::string title = "";
10 int width = 0;
11 int height = 0;
12
13 Window(std::string Title, int Width, int Height, int Monitor = 0)
14 : title(Title)
15 , width(Width)
16 , height(Height) {
17 InitWindow(width, height, title.c_str());
18 SetWindowMonitor(Monitor);
19 };
20
21 Window(std::string Title, Vector2 Size, int Monitor = 0)
22 : title(Title)
23 , width(Size.x)
24 , height(Size.y) {
25 InitWindow(width, height, title.c_str());
26 SetWindowMonitor(Monitor);
27 };
28
30 if (IsWindowReady())
31 CloseWindow();
32 }
33
34 void updateWindow();
35 };
36}
Definition window.hpp:7
void updateWindow()
Definition window.cpp:3
~Window()
Definition window.hpp:29
int width
Definition window.hpp:10
std::string title
Definition window.hpp:9
int height
Definition window.hpp:11
Window(std::string Title, Vector2 Size, int Monitor=0)
Definition window.hpp:21
Window(std::string Title, int Width, int Height, int Monitor=0)
Definition window.hpp:13
Definition discord.hpp:5