Commit Graph

42 Commits (14af83a3912c2c1d35faf06d82880f1d15f93f25)

Author SHA1 Message Date
Hleb Valoshka 14af83a391 Implement Logger to replace raw cerr/cout and DPRINTF usage 2021-12-20 17:54:50 +03:00
Andrew Tribick a670d8e3be Cleanup and fix celutil/util.h; rename to tzutil.h
- Replace deleteFunc with lambdas
- Remove unused printlineFunc, memsize
- string_view does not allow returning the TZ name, replace with std::string&
2021-12-04 11:44:36 +01:00
Hleb Valoshka bece12f6e4 Refactor Image class and image capture
* use GL_MESA_pack_invert to flip captured buffer
 * move enum PixelFormat to own file
 * use PixelFormat instead of GL formats in Image
 * provide captureImage() in CelestiaCore
 * use CelestiaCore methods to capture images in Qt UI
2021-06-16 14:15:32 +03:00
Levin Li 28bb2b52bd Fix compatibility with QT6 2021-05-31 15:13:02 +08:00
Andrew Tribick 3836d4cf23 [qt] Fix deprecation warnings 2021-05-23 16:25:38 +03:00
Levin Li 72367cc1b7 HiDPI mouse events for QT 2021-05-16 10:15:52 +08:00
Levin Li 631d109741 Support HiDPI on QT front end 2021-05-15 07:57:40 +08:00
Hleb Valoshka 5124962d07 [qt] Don't use deprecated features 2020-06-16 21:59:21 +03:00
Hleb Valoshka e5d54df6bb Initial implementation of self shadowing
Known bugs and limitations:
  * Only the 1st light source casts shadows.
  * Thin objects have incorrect shadows, see ISS.
2020-04-03 11:31:09 +03:00
Li Linfeng 71ca974838 Replace the apple macro in qt project 2019-08-21 11:59:40 +03:00
Li Linfeng 2c92aee13a Fix backspace on qt osx 2019-08-12 15:56:40 +03:00
Hleb Valoshka de1a8d181e Remove unneeded celengine/celestia.h 2019-07-09 23:38:41 +03:00
Hleb Valoshka b09b48b1ab Disable GLContext usage as it does nothing now 2019-06-20 13:03:02 +03:00
pirogronian 03be74e3c7 Revert "Replace deprecated QGLWidget with QOpenGLWidget"
This reverts commit 2f7adf19d0.
2019-01-06 23:20:35 +03:00
pirogronian 2f7adf19d0 Replace deprecated QGLWidget with QOpenGLWidget 2018-12-27 23:06:53 +03:00
Hleb Valoshka 0bd0b4e19c Pass SolarSystemMaxDistance to a renderer (Closes: #133) 2018-11-26 13:16:40 +03:00
Hleb Valoshka 60c42c2588 Add new Renderer flags
* ShowDwarfPlanets
 * ShowMoons
 * ShowMinorMoons
 * ShowAsteroids
 * ShowComets
 * ShowSpacecrafts
 * ShowFadingOrbits (not used yet)
2018-11-16 21:25:16 +01:00
Hleb Valoshka e40b9549a7 Allow to disable and enable planet rings (Closes: #47) 2018-11-13 19:59:17 +01:00
Hleb Valoshka c45e85fbfa Remove dead rendering code 2018-10-07 20:42:06 +03:00
Hleb Valoshka 2ef2df3b80 Remove basic (OpenGL 1.0) render path 2018-10-07 19:39:33 +03:00
Hleb Valoshka 829a17d4ac Remove multitexture render path 2018-10-07 19:04:50 +03:00
Hleb Valoshka 0d7a20ea77 Remove GL VP render path 2018-10-07 19:03:14 +03:00
Hleb Valoshka 0849e2658a Remove NV combiners render path 2018-10-07 18:54:55 +03:00
Hleb Valoshka f5fee44693 Cleanup includes 2018-10-07 13:38:25 +03:00
Hleb Valoshka b082d5f47f Automatically convert to c++11 using clan-tidy
+ manual cleanups
2018-09-22 23:42:02 +03:00
Gavin Stark bd076c38ab fixing panning issue #34 2018-09-22 23:41:57 +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
Nils Larsson a1043fbfaa Various Qt5 fixes.
# Conflicts:
#	src/celestia/qt/qtglwidget.cpp
2018-09-22 23:41:56 +03:00
Alexell a43ae267e3 Added store in the registry for new options
Added store in the registry for star color and VisualMagnitude for QT
and Win interface.

# Conflicts:
#	src/celestia/win32/winmain.cpp
2018-09-22 17:08:06 +03:00
Alexell 4c49fbaa55 QT hotkeys fix
Added hotkey [Shift+F10] for video capture, fix hotkeys for MultiView.
2018-08-11 22:05:17 +03:00
Alexell 7cc3d26391 QT version: change default window position
Fixed critical error at removing last item bookmark, changed default
render flags.
2018-08-11 21:51:36 +03:00
Vincent Giangiulio 68479992e6 Added an infinite mouse feature to the Qt4 front end 2011-04-16 11:08:24 +00:00
Chris Laurel f5d97be5c9 More GLEW-related cleanup.
- Added missing GLEW_STATIC define to VC++ project file
- Fixed Qt4 build to use GLEW
- Stripped out more references to old glext functions
- Fixed miscellaneous compiler warnings.
2009-08-15 00:48:42 +00:00
Chris Laurel cb8f095d46 Modified Qt4 keyboard input handler to pass keyboard modifiers to CelestiaCore. 2008-08-02 04:33:26 +00:00
Chris Laurel 8db5a85e19 Updated Qt4 front-end to save and restore local time setting. 2008-04-12 20:54:28 +00:00
Chris Laurel 2a469e015a Fixed Qt4 interface so that Ctrl+A and Ctrl+Z don't accelerate/decelerate the
observer.
2008-03-12 00:36:08 +00:00
Chris Laurel 62df109b68 Emulate right dragging with Option+left drag in Qt4 front-end for Mac OS X. 2008-02-12 01:41:49 +00:00
Da Woon Jung 6916a937aa Mac Qt patch 2008-01-18 06:08:18 +00:00
Fridger Schrempp 828d2e4b30 modified headers for porting to MSVS compiler 2008-01-11 20:48:41 +00:00
Chris Laurel ea21967164 Updates for experimental Qt4 front-end:
- Implemented selection popup menu (modeled on KDE version)
- Save/restore texture resolution
- Save/restore main window and docked window states
2008-01-08 12:36:32 +00:00
Christophe Teyssier 6ea17c7ec8 Added missing cassert include 2008-01-06 11:03:38 +00:00
Chris Laurel 470c3fce9b Checked in Qt4 front-end for Celestia. 2008-01-06 05:45:49 +00:00