malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Engine
Window
WindowManager.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
//
5
// Created by Dave Smith on 3/7/25.
6
//
7
8
#ifndef MALENA_WINDOWMANAGER_H
9
#define MALENA_WINDOWMANAGER_H
10
11
#pragma once
12
13
#include <
Malena/Core/malena_export.h
>
14
#include <SFML/Graphics.hpp>
15
16
namespace
ml::WindowManager
17
{
49
inline
sf::RenderWindow
&
getWindow
()
50
{
51
static
sf::RenderWindow
* window =
new
sf::RenderWindow
;
52
return
*window;
53
}
54
55
}
// namespace ml::WindowManager
56
57
#endif
// MALENA_WINDOWMANAGER_H
sf::RenderWindow
ml::WindowManager::getWindow
sf::RenderWindow & getWindow()
Return the framework's shared sf::RenderWindow.
Definition
WindowManager.h:49
malena_export.h
ml::WindowManager
Definition
WindowManager.h:17