Repository navigation
Expand file tree
/
Copy pathlinux_window_manager.h
More file actions
65 lines (54 loc) · 1.6 KB
/
Copy pathlinux_window_manager.h
File metadata and controls
65 lines (54 loc) · 1.6 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at //
// https://www.boost.org/LICENSE_1_0.txt) //
////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <cstdint>
#include <memory>
#include "graphics/material_manager.h"
#include "graphics/texture_manager.h"
#include "graphics/window.h"
#include "graphics/window_manager.h"
namespace iris
{
/**
* Implementation of WindowManager for linux.
*/
class LinuxWindowManager : public WindowManager
{
public:
/**
* @param texture_manager
* Texture manager object.
*
* @param material_manager
* Material manager object.
*/
LinuxWindowManager(TextureManager &texture_manager, MaterialManager &material_manager);
/**
* Create a new Window.
*
* @param width
* Width of window.
*
* @param height
* Height of window.
*/
Window *create_window(std::uint32_t width, std::uint32_t height) override;
/**
* Get the currently active window.
*
* @returns
* Pointer to current window, nullptr if one does not exist.
*/
Window *current_window() const override;
private:
/** Texture manager object. */
TextureManager &texture_manager_;
/** Material manager object. */
MaterialManager &material_manager_;
/** Current window .*/
std::unique_ptr<Window> current_window_;
};
}