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-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 "client/scenes/scene.h"
24
25namespace cqsp {
26namespace scene {
27
29 public:
30 explicit ModelScene(cqsp::engine::Application& app) : cqsp::client::Scene(app) {}
31 ~ModelScene() = default;
32
33 void Init();
34 void Update(float deltaTime);
35 void Ui(float deltaTime);
36 void Render(float deltaTime);
37
38 private:
42};
43} // namespace scene
44} // namespace cqsp
Definition: scene.h:23
Definition: application.h:47
Scene()
Definition: scene.h:30
Definition: modelscene.h:28
asset::ShaderProgram_t shader
Definition: modelscene.h:40
ModelScene(cqsp::engine::Application &app)
Definition: modelscene.h:30
void Render(float deltaTime)
Definition: modelscene.cpp:36
asset::Model * model
Definition: modelscene.h:39
void Init()
Definition: modelscene.cpp:24
engine::Mesh_t mesh
Definition: modelscene.h:41
void Ui(float deltaTime)
Definition: modelscene.cpp:34
void Update(float deltaTime)
Definition: modelscene.cpp:32
std::shared_ptr< ShaderProgram > ShaderProgram_t
The preferred way of using a shader program.
Definition: shader.h:112
std::shared_ptr< Mesh > Mesh_t
Definition: mesh.h:44
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21
Definition: model.h:73