Commit Graph

72 Commits (465fbf3277525fda4690751a7d13114e3bb98dfb)

Author SHA1 Message Date
Hleb Valoshka f2004da817 debug 2022-01-26 19:11:06 +02:00
Hleb Valoshka c13ea716a0 test 2022-01-18 23:12:42 +02:00
Andrew Tribick 86f2aab284 Remove glcontext.* 2021-12-29 14:48:36 +01:00
Hleb Valoshka 50deb54bff Remove unneeded fs::path.string() conversions 2021-12-28 21:14:29 +01:00
Hleb Valoshka a264433697 [win32] Create logger earlier to fix segv
SplashScreen class uses LoadImageFromFile which calls GetLogger
2021-12-26 23:06:16 +03:00
Hleb Valoshka 14af83a391 Implement Logger to replace raw cerr/cout and DPRINTF usage 2021-12-20 17:54:50 +03:00
Hleb Valoshka 08b0cd0682 Use custom gettext file to translated object names 2021-12-14 13:16:18 +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 b067799a3c Use old way to capture video in windows environment 2021-08-23 11:04:03 +03:00
Hleb Valoshka f731579681 Revert "Refactor movie capture to use FFMPEG only" 2021-08-23 11:04:03 +03:00
Hleb Valoshka e78a178a16 [win32] Fix "codecs" combobox
The 3rd parameter is a position not a special id associated with the entry
2021-06-24 17:59:04 +03:00
Hleb Valoshka 51f8af2479 [win32] Add "select primary body" menu entry to win UI 2021-06-07 10:43:16 +03:00
Hleb Valoshka 45635522dc [win32] Add minor moons and dwarf planets into an object's context menu (Closes: #459) 2021-06-07 10:43:16 +03:00
Hleb Valoshka 0efba5944b [win32] Fix compilation without FFMPEG 2021-06-07 10:43:16 +03:00
Hleb Valoshka 6e83aa9e04 Refactor movie capture to use FFMPEG only 2021-06-06 08:44:21 +03:00
Hleb Valoshka 8dab250f22 Use FFMpeg to capture video 2021-06-06 08:44:21 +03:00
Levin Li f72f5993c6 Apply changes to frontends 2021-05-23 11:03:07 +08:00
Hleb Valoshka c906f917eb [i18n] translate more strings 2021-05-08 13:13:37 +03:00
Hleb Valoshka 668a6023e9 [win32] Remove useless check for nullptr 2021-05-08 13:13:37 +03:00
Levin Li 8540ed5d9f Move UI related code to celestia/win32 2021-03-15 17:44:55 +08:00
Hleb Valoshka f89d9068ab [win] copy old favorites file to the new location 2021-03-09 09:07:21 +03:00
Hleb Valoshka 332840fdd1 Refactor Url class
* Critical change:
   - Drop Url versions 1, 2 and 4. Versions 1 and 2 are
     too old and can't be handled properly. Version 4
     was added to handle 64 bit RenderFlags but we can
     encode them in backward compatible way by adding a
     new parameter "nrf" ignored by Celestia 1.6.

 * Use string_view to reduce memory allocation during Url
   parsing.

 * Use non-throwing functions to parse numbers.
2021-03-08 14:08:36 +03:00
Hleb Valoshka db9dd5cb18 Extract string utilities to own file 2021-03-08 14:08:36 +03:00
Hleb Valoshka b714d109af Fix warnings shown by MinGW compiler 2021-03-03 20:18:32 +03:00
Hleb Valoshka 7043d45164 Restore possibility to blacklist GL extensions 2021-03-03 20:18:32 +03:00
Hleb Valoshka d41a375c04 Use std::tie in `operator<` 2021-03-03 20:18:32 +03:00
unknown 94cd51ac64 Replace LF with CRLF for render info on Windows 2020-06-22 17:27:10 +08:00
unknown 10e25e808d Do not call bind_text_domain_codeset 2020-06-21 23:35:51 +08: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
Hleb Valoshka 8bb74a6ef3 [win32] Fix possible failure if config was not read 2020-03-26 11:24:56 +03:00
Hleb Valoshka bd7f9ebc9b Use libepoxy instead of GLEW
Unlike GLEW libepoxy supports OpenGL ES and better handles cases with
functions provided by different extensions, e.g. the same functions
provided by vendor/EXT/ARB/core.
2020-03-26 11:24:56 +03:00
pirogronian 035aa30ae5 Replace generic catalog type and related minor polishing. 2020-03-06 18:11:53 +01:00
pirogronian 1ebc427f41 Transform CatEntry into AstroObject with minimal common indexing rountines. 2020-03-06 18:11:53 +01:00
Hleb Valoshka 9e433e6cd8 Build configuration cleanup 2020-03-03 20:04:55 +03:00
Hleb Valoshka f8831d4d2e Common OpenGL information code
Closes: #609
2020-02-18 15:13:06 +03:00
Hleb Valoshka fb4bede3d1 Allow building without NLS 2020-02-15 00:20:13 +03:00
Hleb Valoshka 6969373ec4 Add and use time-related helper methods 2020-01-25 11:50:28 +03:00
Hleb Valoshka 097d7113e2 Provide a common method to save screenshots 2019-10-19 17:47:31 +03:00
Hleb Valoshka 1ab6b27f3f [win32] Remove copy of CelestiaCore::runScript, part 2 2019-10-19 13:17:32 +03:00
Hleb Valoshka b849e76bf3 [win32] Remove copy of CelestiaCore::runScript from win frontend 2019-10-19 12:01:40 +03:00
Hleb Valoshka 3cb4d3154d Make options maps common to all scripts 2019-10-18 12:13:48 +03:00
Hleb Valoshka 9401a4389e Move scripts to their own subdirectories 2019-10-17 21:21:12 +03:00
Hleb Valoshka e3baaad767 Big common application code refactoring
* Allow to parse four element vectors
 * Allow colors defined in HTML notation (#rrggbbaa)
   in CEL scripts
 * Refactor Overlay::Rectangle to an independent class
 * Refactor CelestiaCore::OverlayImage to an independent class
 * Refactor CelestiaCore::View to an independent class
 * Rename Renderer::getScreenSize to getViewport
 * Add wrappers for scissors test and MSAA control
2019-10-09 15:55:14 +03:00
Hleb Valoshka 7fd01f38b0 Fix PVS Studio reported errors (Closes: #425) 2019-10-04 20:49:34 +03:00
Li Linfeng 56d2b8765a bring menu handler change to gtk/win 2019-08-30 20:57:07 +08:00
Hleb Valoshka 11897032d4 Fix some warnings 2019-08-27 23:54:27 +03:00
Hleb Valoshka b6b543438d Port to filesystem API 2019-08-16 18:11:24 +03:00
laikh cfdda11bf6 Move cmdparser.*, command.*, and execution.* from celengine to celestia, modify celephem to OBJECT library and merge the objects in the celengine library, fix Spice dependency 2019-08-13 11:24:37 +03:00
Hleb Valoshka de1a8d181e Remove unneeded celengine/celestia.h 2019-07-09 23:38:41 +03:00
Hleb Valoshka 2250dd9c23 [win32] Update registry key, fix uint64_t saving 2019-07-09 00:53:04 +03:00