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.
modelscene.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 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 "client/scenes/scene.h"
24
25namespace cqsp::client::scene {
26
27class ModelScene : public ClientScene {
28 public:
30 ~ModelScene() = default;
31
32 void Init();
33 void Update(float deltaTime);
34 void Ui(float deltaTime);
35 void Render(float deltaTime);
36
37 private:
41};
42} // namespace cqsp::client::scene
Definition: scene.h:23
Definition: modelscene.h:27
void Init()
Definition: modelscene.cpp:26
asset::Model * model
Definition: modelscene.h:38
void Ui(float deltaTime)
Definition: modelscene.cpp:36
void Render(float deltaTime)
Definition: modelscene.cpp:38
void Update(float deltaTime)
Definition: modelscene.cpp:34
engine::Mesh_t mesh
Definition: modelscene.h:40
ModelScene(engine::Application &app)
Definition: modelscene.h:29
asset::ShaderProgram_t shader
Definition: modelscene.h:39
Definition: application.h:48
std::shared_ptr< ShaderProgram > ShaderProgram_t
The preferred way of using a shader program.
Definition: shader.h:113
Definition: loadingscene.cpp:43
std::shared_ptr< Mesh > Mesh_t
Definition: mesh.h:43
Definition: model.h:60