|
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.
|
#include <starsystemrenderer.h>
Public Member Functions | |
| SysStarSystemRenderer (core::Universe &, engine::Application &) | |
| void | Initialize () |
| void | OnTick () |
| void | Render (float delta_time) |
| void | SeeStarSystem () |
| void | Update (float delta_time) |
| void | DoUI (float delta_time) |
| double | GetDivider () |
| void | DrawAllOrbits () |
| entt::entity | GetSelectedCountry () |
| ~SysStarSystemRenderer () | |
Public Attributes | |
| double | previous_mouseX |
| double | previous_mouseY |
| double | min_zoom = 1 |
| double | max_zoom = 9.4605284e15 |
Private Member Functions | |
| void | DrawStars () |
| void | DrawBodies () |
| void | DrawShips () |
| void | DrawSkybox () |
| void | DrawModels () |
| void | DrawEntityName (glm::vec3 &object_pos, entt::entity ent_id) |
| void | DrawEntityName (glm::vec3 &object_pos, const std::string &name) |
| void | DrawPlanetBillboard (const entt::entity &ent_id, const glm::vec3 &object_pos) |
| void | DrawShipIcon (const glm::vec3 &object_pos) |
| void | DrawCityIcon (const glm::vec3 &object_pos, float alpha_value) |
| void | DrawAllCities (auto &bodies) |
| void | DrawAllPlanets (auto &bodies) |
| void | DrawAllPlanetBillboards (auto &bodies) |
| void | DrawTexturedPlanet (const glm::vec3 &object_pos, const entt::entity entity) |
| void | GetPlanetTexture (const entt::entity entity, bool &have_normal, bool &have_roughness, bool &have_province) |
| void | DrawTerrainlessPlanet (const entt::entity &entity, glm::vec3 &object_pos) |
| void | DrawStar (const entt::entity &entity, glm::vec3 &object_pos) |
| void | RenderCities (glm::vec3 &object_pos, const entt::entity &body_entity) |
| void | DrawIndividualCity (const entt::entity city_entity, const glm::vec3 &offset, const glm::vec3 &object_pos, const glm::quat &quat, double radius, const std::string &name) |
| bool | CityIsVisible (glm::vec3 city_pos, glm::vec3 planet_pos, glm::vec3 cam_pos) |
| asset::ShaderProgram_t | ConstructShader (const std::string &key) |
| void | LoadPlanetTextures () |
| void | LoadPlanetProvinceMap (entt::entity body) |
| void | InitializeFramebuffers () |
| void | InitializeMeshes () |
| void | DrawOrbit (const entt::entity &entity) |
| glm::vec3 | TranslateToNormalized (const glm::vec3 &) |
| glm::vec4 | CalculateGLPosition (const glm::vec3 &object_pos) |
| Calculates the GL position for a log renderbuffer. More... | |
| bool | GLPositionNotInBounds (const glm::vec4 &gl_Position, const glm::vec3 &pos) |
| Check if the GL position is within the window More... | |
| glm::mat4 | GetBillboardMatrix (const glm::vec3 &pos) |
| glm::vec3 | GetBillboardPosition (const glm::vec3 &object_pos) |
| void | SetBillboardProjection (cqsp::asset::ShaderProgram_t &shader, glm::mat4 mat) |
| float | GetWindowRatio () |
| float | Lerp (float a, float b, float t) |
| void | SetupDummyTextures () |
| void | UpdatePlanetProvinceColors (entt::entity body, entt::entity province, glm::vec4 color) |
| void | MassUpdatePlanetProvinceColors (entt::entity entity) |
| void | ResetPlanetProvinceColors (entt::entity entity) |
| void | ComputeOverlay () |
| cqsp::client::systems::SysStarSystemRenderer::SysStarSystemRenderer | ( | core::Universe & | _u, |
| engine::Application & | _a | ||
| ) |
| cqsp::client::systems::SysStarSystemRenderer::~SysStarSystemRenderer | ( | ) |
|
private |
Calculates the GL position for a log renderbuffer.
|
private |
|
private |
|
private |
| void cqsp::client::systems::SysStarSystemRenderer::DoUI | ( | float | delta_time | ) |
|
private |
| void cqsp::client::systems::SysStarSystemRenderer::DrawAllOrbits | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
|
private |
|
inline |
|
private |
|
private |
Check if the GL position is within the window
| void cqsp::client::systems::SysStarSystemRenderer::Initialize | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void cqsp::client::systems::SysStarSystemRenderer::OnTick | ( | ) |
| void cqsp::client::systems::SysStarSystemRenderer::Render | ( | float | delta_time | ) |
|
private |
|
private |
| void cqsp::client::systems::SysStarSystemRenderer::SeeStarSystem | ( | ) |
|
private |
|
private |
|
private |
| void cqsp::client::systems::SysStarSystemRenderer::Update | ( | float | delta_time | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| double cqsp::client::systems::SysStarSystemRenderer::max_zoom = 9.4605284e15 |
|
private |
| double cqsp::client::systems::SysStarSystemRenderer::min_zoom = 1 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| double cqsp::client::systems::SysStarSystemRenderer::previous_mouseX |
| double cqsp::client::systems::SysStarSystemRenderer::previous_mouseY |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |