Shirag
0.1.0
Loading...
Searching...
No Matches
src
window
window.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <raylib.h>
4
#include <string>
5
6
namespace
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
29
~Window
() {
30
if
(IsWindowReady())
31
CloseWindow();
32
}
33
34
void
updateWindow
();
35
};
36
}
Shirag::Window
Definition
window.hpp:7
Shirag::Window::updateWindow
void updateWindow()
Definition
window.cpp:3
Shirag::Window::~Window
~Window()
Definition
window.hpp:29
Shirag::Window::width
int width
Definition
window.hpp:10
Shirag::Window::title
std::string title
Definition
window.hpp:9
Shirag::Window::height
int height
Definition
window.hpp:11
Shirag::Window::Window
Window(std::string Title, Vector2 Size, int Monitor=0)
Definition
window.hpp:21
Shirag::Window::Window
Window(std::string Title, int Width, int Height, int Monitor=0)
Definition
window.hpp:13
Shirag
Definition
discord.hpp:5
Generated by
1.9.8