Commit Graph

32 Commits (668fd219cc7d18ca3887ea0125a694edaea02747)

Author SHA1 Message Date
Levin Li 668fd219cc Render lines with triangles 2021-01-03 17:21:55 +08:00
Levin Li 1f150db611 separate modelview and projection 2020-10-06 13:39:09 +08:00
Hleb Valoshka 8768f3497a Refactor depth state changing 2020-08-05 09:58:26 +03:00
Hleb Valoshka 6e8dbde814 Remove unneeded glUseProgram(0) 2020-08-05 09:58:26 +03:00
Hleb Valoshka 41f6b95c72 Add state tracking for depth 2020-07-08 15:09:18 +03: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
Hleb Valoshka 1fb1f2de91 Replace fixed function GL code with GL ES compatible one 2020-05-12 15:59:56 +03:00
Hleb Valoshka daf34b5656 Port to "unlit" lighting model 2020-04-30 10:23:19 +03:00
Hleb Valoshka df508a0c59 Make global/static VO class instances again
Closes: #659
2020-03-16 19:31:25 +03:00
Hleb Valoshka 705c383b9f Fix VBO data type
GL_DYNAMIC_DRAW == update occasionally
GL_STREAM_DRAW == update on every draw
2019-12-13 20:31:17 +03:00
Hleb Valoshka 32eaa68d0a Remove fixed pipeline calls 2019-12-05 11:37:33 +03:00
Hleb Valoshka b259987e95 Move ellipsoidTangent to mathlib.h 2019-11-09 15:08:03 +03:00
Hleb Valoshka a1bdca280a Make VisibleRegion more GL2-friendly 2019-07-07 22:24:59 +03:00
Hleb Valoshka f3a73dae71 Move math code into celmath namespace 2019-05-20 10:48:04 +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 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
Dmitry Brant a25d26720c Adapt code to Eigen 3.3
No functional changes, just adapting to API changes in Eigen.
2018-09-22 17:08:07 +03:00
Chris Laurel 78b6a87d81 Eliminated OrthogonalUnitVector function because Eigen already offers
MatrixBase::unitOrthogonal to do the same thing.
2009-12-02 03:35:59 +00:00
Chris Laurel 1c89b0568f Cleaned up include files used by modules in celengine:
- Include files in order from most specialized to most general
- Use C++ versions of headers (e.g. cmath instead of math.h)
2009-10-04 14:12:59 +00:00
cartrite 42281e4a53 Replaced lines that refered to celengine/gl.h with GL/glew.h
Added code for glewinit so all render modes work in kde
updated makefile includes path to use GL/glew.h
Removed glext from kde and gtk builds
Removed celengine/gl.h from celestia.pro
2009-08-15 17:51:15 +00:00
Chris Laurel d1a7e7c3cb Eigenized comet rendering code. Moved OrthogonalUnitVector function to geomutil.h, where it can be shared by multiple modules. 2009-07-25 23:18:32 +00:00
Chris Laurel dcfb117012 More Eigenization changes and fixes for UniversalCoord methods. 2009-07-24 06:59:54 +00:00
Chris Laurel 479ef22e15 Eigenized reference mark, label, and marker code. 2009-07-21 04:04:26 +00:00
Chris Laurel 86d1808519 Eigenized Body and Selection classes; adapted dependent code. Removed some
miscellaneous compile warnings in other modules.
2009-07-16 23:37:48 +00:00
Chris Laurel 5b2721e4db Ported terminator and all arrow reference marks to Eigen. 2009-07-15 04:00:22 +00:00
Chris Laurel 478be37f62 Don't render a visible region when the current simulation time is outside the target object's lifetime. 2009-01-30 22:07:24 +00:00
Chris Laurel 646d427802 Eliminated min and max macros in celutil/util.h. The STL functions should be
used instead. Fixed several locations in the code where int/unsigned int
type differences in calls to min/max were confusing the compiler.
2008-05-23 18:47:18 +00:00
Chris Laurel 76ff34af38 Implemented better sizing of planetographic grids and visible regions. The new approach leaves less of a gap between the reference marks and the planet surface while still minimizing z fighting artifacts. 2008-04-11 01:14:23 +00:00
Da Woon Jung e7080e0c6f HDR fixes for terminator refmark. 2008-04-10 00:12:51 +00:00
Chris Laurel 49688f854b Implemented VisibleRegion reference mark. This reference mark can be used to show a planet's terminator or the region of visibility for a satellite. Added Terminator to the reference mark menu for Qt4 and Windows front ends. Fixed a bug in toggling body and frame axes. 2008-04-09 00:26:07 +00:00