-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindow.h
More file actions
executable file
·32 lines (27 loc) · 813 Bytes
/
window.h
File metadata and controls
executable file
·32 lines (27 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by polarnik on 13.10.2024.
//
#ifndef BREAKCLONE_WINDOW_H
#define BREAKCLONE_WINDOW_H
#include <string>
#include <string_view>
#include <raylib.h>
#include "constants.h"
class Window {
public:
Window() = default;
Window(const Window&) = delete;
Window& operator=(const Window&) = delete;
~Window() = default;
void Init(int32_t width = BreakClone::kDefaultWindowWidth,
int32_t height = BreakClone::kDefaultWindowHeight,
std::string_view title = "Default");
[[nodiscard]] bool ShouldClose() const noexcept;
void Close() const noexcept;
[[nodiscard]] static int32_t GetWidth() noexcept;
[[nodiscard]] static int32_t GetHeight() noexcept;
private:
static int32_t width_;
static int32_t height_;
};
#endif // BREAKCLONE_WINDOW_H