Commit Graph

40 Commits (d7b896c013e222f96d29baa399cd3eda24fd91fb)

Author SHA1 Message Date
Andrew Tribick d7b896c013 Remove pre-C++17 Eigen alignment code 2021-12-28 21:14:29 +01:00
Andrew Tribick 9651e9e265 Use inline constexpr for constants in header files 2021-12-28 21:14:29 +01:00
Andrew Tribick debcca3a1c Further celmath cleanup
- Tidy up includes and namespace handling
- Replace Ray with Eigen::ParametrizedLine
2021-11-14 19:42:39 +01:00
Hleb Valoshka e2bbd838a5 Add state tracking for blending 2020-07-08 15:09:18 +03:00
Hleb Valoshka c588f80824 OpenGL ES 2.0 initial support 2020-06-15 19:27:46 +03:00
pirogronian 1ebc427f41 Transform CatEntry into AstroObject with minimal common indexing rountines. 2020-03-06 18:11:53 +01:00
Hleb Valoshka b6b543438d Port to filesystem API 2019-08-16 18:11:24 +03:00
Hleb Valoshka a10da37741 Return correct type from DeepSkyObject::getRenderMask()
More correctly is to return Renderer::RenderFlags, but this require big
render.h refactoring.
2019-07-07 12:10:21 +03:00
Hleb Valoshka b09b48b1ab Disable GLContext usage as it does nothing now 2019-06-20 13:03:02 +03:00
Hleb Valoshka f3a73dae71 Move math code into celmath namespace 2019-05-20 10:48:04 +03:00
Hleb Valoshka ea3988b6f3 Remove unused GLContext 2018-12-11 20:32:13 +03:00
Hleb Valoshka dbd7090117 Make ShaderManager private property of Renderer 2018-12-11 20:32:13 +03:00
Hleb Valoshka 35ff97a07a Mark some enums as uint32_t
By default enums are int, so 0xffffffff == -1. But those enums are used in
unsigned context so some compilers (Visual C++ at least) throw warnings.
2018-12-08 02:05:52 +03:00
Hleb Valoshka 514a948144 Return reference from getInfoURL() of DeepSkyObject and Location 2018-12-08 02:05:52 +03:00
pirogronian e6e84d1ce3 User-defined categories. Core + Lua. 2018-12-07 10:17:11 +01:00
Hleb Valoshka 1fda8e35f0 Fix warnings found by PVS
- 1 copy-paste error
  - 1 nullptr dereference
  - fixed self-assignment in Mesh::VertexDescription::operator=
  - a few missing delete
  - all other are checks for nullptr after new
2018-10-28 22:00:27 +03:00
Hleb Valoshka 363abc40f3 Use libfmt instead of C-style & iostream workflow
TODO: check StarDatabase::getStarName
2018-10-17 22:19:03 +03:00
Hleb Valoshka 73638c116d Remove basictypes.h and use standard c++11 types 2018-09-22 23:42:03 +03:00
Hleb Valoshka b082d5f47f Automatically convert to c++11 using clan-tidy
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka 882e4ecf28 fix whitespaces and indents
trailing spaces are removed
tabs are replaced with 4 spaces

# Conflicts:
#	src/celengine/cmdparser.cpp
#	src/celengine/command.cpp
#	src/celestia/celestiacore.cpp
#	src/celestia/celestiacore.h
#	src/celestia/qt/qtappwin.cpp
#	src/celestia/qt/qtglwidget.cpp
#	src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Chris Laurel e36646501b Eigenized more DSO code. 2009-07-25 00:28:19 +00:00
Chris Laurel 5a31a08df9 Eigenized galaxy rendering and more of the core renderer. 2009-07-21 03:14:29 +00:00
Fridger Schrempp 222ee6b1a5 major upgrade of globular cluster code 2009-02-03 20:21:36 +00:00
Chris Laurel 074df10527 Removed spacecraft.ssc from celestia.cfg; spacecraft are now all in
extras-standard.
2008-10-22 23:29:28 +00:00
Fridger Schrempp c46e6c41fd Implement globular clusters 2008-09-20 14:17:39 +00:00
Chris Laurel 8dac3c6931 Added the Clickable property for deep sky objects. 2008-09-09 20:48:28 +00:00
Chris Laurel 93acae93e1 Implemented the visible flag for deep sky objects. The visible attribute may
be set either in the dsc object definition or in a celx script.
2008-08-07 05:35:29 +00:00
Vincent Giangiulio e938b9012a - Added getObjTypeName method to DeepSkyObject class for making celx type return "galaxy", "nebula", or "opencluster" instead of the generic "deepsky"
- Remove unnecessary implementation of get/setHubbleType methods and use getType method instead
2007-04-02 07:55:49 +00:00
Vincent Giangiulio 155320d999 - Added catalogNumber, hubbleType and absoluteMagnitude fields to the table returned when getinfo is called on a DSO in a celx script.
- Added getdsocount and getdso methods for celestia object.
2007-03-13 21:14:31 +00:00
Toti f55ed1dd3c Clarified variable names 2007-01-08 00:03:07 +00:00
Toti 11b26cdf45 Corrected metric for DSO pickingdeepskyobj.cpp 2007-01-05 20:29:32 +00:00
Toti b667cc4cae Made several changes to DSO picking code:
- picking is now delegated to subclasses
- ray-ellipsoid intersection test used for galaxies
- made picking of overlapping DSOs possible
2006-12-08 19:19:29 +00:00
Chris Laurel 83bab00d30 Added getDescription method to DeepSkyObject class for returning more detailed information about an object than just its type. 2005-11-21 10:22:52 +00:00
Chris Laurel 974213f905 Integrated changes from Fridger and Toti's Celestia FT 1.2 2005-11-18 09:00:39 +00:00
Chris Laurel 3fb7a9c689 - Add context as a parameter when rendering deep sky objects (required in order to use shaders)
- Add absolute magnitude for deep sky objects
2005-07-12 17:37:00 +00:00
Chris Laurel 57ff878447 Added separate render and label flags for the various types of deep sky objects. This will break some scripts and cel:// URLs that relied on the 'show galaxies' flag to also show nebulae, but this is the inescapable cost of moving to a more flexible set of render settings. 2005-02-11 06:09:37 +00:00
Chris Laurel 7f0df46561 Support local resource directories for deep sky objects and 3DS meshes. 2003-03-24 08:55:54 +00:00
Chris Laurel c8771b0168 Added InfoURL field, as for solar system objects. 2003-02-20 08:34:19 +00:00
Chris Laurel 08d472ac7d Changed ReadDeepSkyCatalog to LoadDeepSkyObjects; the latter reads deep sky objects and adds them to a vector that's passed as an argument. 2003-01-31 23:39:07 +00:00
Chris Laurel 7c3c365a96 Added general support for deep sky objects. 2003-01-27 02:04:46 +00:00