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.
planetrendering.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 <entt/entt.hpp>
20#include <glm/glm.hpp>
21
24
27 entt::entity resource;
28};
29
30struct Offset {
31 glm::vec3 offset;
32};
33
37
38 void DeleteData() {
39 delete terrain_albedo;
40 delete heightmap;
41 }
42};
43
49 std::vector<entt::entity> province_map;
50};
51
52struct OrbitMesh {
54
55 ~OrbitMesh() = default;
56};
57} // namespace cqsp::client::components
Definition: texture.h:32
Definition: planetrendering.h:25
std::shared_ptr< Mesh > Mesh_t
Definition: mesh.h:43
Definition: planetrendering.h:30
glm::vec3 offset
Definition: planetrendering.h:31
Definition: planetrendering.h:52
engine::Mesh_t orbit_mesh
Definition: planetrendering.h:53
Definition: planetrendering.h:26
entt::entity resource
Definition: planetrendering.h:27
Definition: planetrendering.h:44
std::vector< entt::entity > province_map
Definition: planetrendering.h:49
asset::Texture * terrain
Definition: planetrendering.h:45
asset::Texture * province_texture
Definition: planetrendering.h:48
asset::Texture * normal
Definition: planetrendering.h:46
asset::Texture * roughness
Definition: planetrendering.h:47
Definition: planetrendering.h:34
asset::Texture * heightmap
Definition: planetrendering.h:36
void DeleteData()
Definition: planetrendering.h:38
asset::Texture * terrain_albedo
Definition: planetrendering.h:35