-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dedicated renderers for deep sky objects
- Loading branch information
Showing
26 changed files
with
2,071 additions
and
1,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// dsorenderer.h | ||
// | ||
// Copyright (C) 2001-2020, the Celestia Development Team | ||
// Copyright (C) 2001-present, the Celestia Development Team | ||
// Original version by Chris Laurel <[email protected]> | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
|
@@ -12,23 +12,29 @@ | |
|
||
#include <Eigen/Core> | ||
#include <celmath/frustum.h> | ||
#include <celrender/rendererfwd.h> | ||
#include "objectrenderer.h" | ||
|
||
class DeepSkyObject; | ||
|
||
class DSORenderer : public ObjectRenderer<DeepSkyObject*, double> | ||
{ | ||
public: | ||
public: | ||
DSORenderer(); | ||
|
||
void process(DeepSkyObject* const &, double, float); | ||
|
||
public: | ||
Eigen::Vector3d obsPos; | ||
Eigen::Matrix3f orientationMatrixT; | ||
celmath::Frustum frustum { 45.0_deg, 1.0f, 1.0f }; | ||
DSODatabase* dsoDB { nullptr }; | ||
|
||
float avgAbsMag { 0.0f }; | ||
uint32_t dsosProcessed { 0 }; | ||
|
||
celestia::render::GalaxyRenderer *galaxyRenderer{ nullptr }; | ||
celestia::render::GlobularRenderer *globularRenderer{ nullptr }; | ||
celestia::render::NebulaRenderer *nebulaRenderer{ nullptr }; | ||
celestia::render::OpenClusterRenderer *openClusterRenderer{ nullptr }; | ||
|
||
}; |
Oops, something went wrong.
build error on openSUSE Tumbleweed with gcc 13
https://build.opensuse.org/package/live_build_log/home:munix9:unstable/celestia/openSUSE_Tumbleweed/x86_64