Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
universeloadingscene.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <atomic>
20#include <memory>
21#include <thread>
22
23#include "client/scenes/scene.h"
24
25namespace cqsp {
26namespace scene {
28 public:
31
32 void Init();
33 void Update(float deltaTime);
34 void Ui(float deltaTime);
35 void Render(float deltaTime);
36
37 private:
38 std::atomic<bool> m_done_loading;
39 std::unique_ptr<std::thread> thread;
40
41 void LoadUniverse();
42
44
45 Rml::ElementDocument* document;
46};
47} // namespace scene
48} // namespace cqsp
Definition: scene.h:23
Definition: application.h:47
Definition: universeloadingscene.h:27
Rml::ElementDocument * document
Definition: universeloadingscene.h:45
void LoadUniverse()
Definition: universeloadingscene.cpp:58
void Update(float deltaTime)
Definition: universeloadingscene.cpp:46
void Init()
Definition: universeloadingscene.cpp:35
~UniverseLoadingScene()
Definition: universeloadingscene.cpp:31
bool m_completed_loading
Definition: universeloadingscene.h:43
std::unique_ptr< std::thread > thread
Definition: universeloadingscene.h:39
void Render(float deltaTime)
Definition: universeloadingscene.cpp:56
std::atomic< bool > m_done_loading
Definition: universeloadingscene.h:38
UniverseLoadingScene(cqsp::engine::Application &app)
Definition: universeloadingscene.cpp:29
void Ui(float deltaTime)
Definition: universeloadingscene.cpp:54
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21