Hleb Valoshka
77af6f7419
Refactor images related code
...
* move different formats support to its own directory
* add common CaptureBufferToFile subroutine
2021-04-06 10:23:53 +03:00
Hleb Valoshka
ad5f3d31b3
Change texture clamp mode for stars to Texture::EdgeClamp
...
For better compatibility with OpenGL ES
2021-04-05 13:33:32 +03:00
Hleb Valoshka
ccd0d64bdc
[gtk] Fix buffer overflow in eclipse finder
...
Fixes : #935
2021-03-30 14:23:51 +03:00
Levin Li
37de4c3784
Fix incorrect bracket around &
2021-03-30 15:23:54 +08:00
Hleb Valoshka
94ed734f83
Add Doxygen config
2021-03-29 10:35:56 +03:00
Levin Li
164d8ef8bd
Avoid usiing reserve and assign by index, as it might result in undefined behavior
2021-03-27 22:30:39 +08:00
Levin Li
80fb64ecc5
Use quoted include for lua.hpp
2021-03-27 22:30:39 +08:00
Levin Li
dc88685c2c
Fix compilation with std filesystem
2021-03-27 22:30:39 +08:00
Hleb Valoshka
b8dd1d2282
Refactor software DDS decoder
...
* Use C++ memory API (new/delete) instead of malloc/free
* Remove unneeded variables
* Format using clang-format
* Use PackRGBA instead of hardcoding color value
2021-03-19 11:00:49 +03:00
Levin Li
2f7662fd3b
Avoid undefined behavior caused by passing negative value to isdigit
2021-03-15 17:44:55 +08:00
Levin Li
7a21915460
Add missing using namespace std;
2021-03-15 17:44:55 +08:00
Levin Li
2f12dd9452
Add some utils for apple platform and remove functions for portable builds
2021-03-15 17:44:55 +08:00
Levin Li
08037d78e8
Add cctype include for toupper
2021-03-15 17:44:55 +08:00
Levin Li
8540ed5d9f
Move UI related code to celestia/win32
2021-03-15 17:44:55 +08:00
Levin Li
bce3dd0b9d
Use new[] for GalaxyVertices
2021-03-14 20:40:59 +08:00
Levin Li
4959ffbe6e
Correctly set __cplusplus with /Zc:__cplusplus
2021-03-14 20:40:59 +08:00
Levin Li
a32e905556
Fix for lua 5.4
2021-03-14 20:40:59 +08:00
Levin Li
e24d7e002d
Use string_view.data instead of .begin and .end
2021-03-14 20:40:59 +08:00
Levin Li
2ccf453644
Make dds_decompress .cpp instead of .c
2021-03-14 20:40:59 +08:00
Hleb Valoshka
f16c355d11
Add a new body parameter "reflectivity" complementing albedos
2021-03-10 17:51:10 +03:00
Hleb Valoshka
8e0efe3868
Build GTK+ frontend in CI
2021-03-09 09:07:21 +03:00
Hleb Valoshka
de06f3d3cd
Fix gtk+ frontend build failures caused by #925
2021-03-09 09:07:21 +03:00
Hleb Valoshka
f89d9068ab
[win] copy old favorites file to the new location
2021-03-09 09:07:21 +03:00
Hleb Valoshka
93ec39a836
Add guards for portable builds
...
ports commit c4f02af
from 1.6.x
2021-03-09 09:07:21 +03:00
Hleb Valoshka
451fe6ffcb
Read favorites file from system data directory
...
This commits ports 8ba1ab7
from 1.6.x branch
2021-03-09 09:07:21 +03:00
Hleb Valoshka
df25eed5a2
Add fs::create_directory() and move fs utility function to their own file
2021-03-09 09:07:21 +03:00
Hleb Valoshka
f1d84435a0
Add missing operators and constructors to array_view
2021-03-09 09:07:21 +03:00
Hleb Valoshka
757fda0e36
Disable more MSVC warnings
2021-03-08 14:08:36 +03:00
Hleb Valoshka
7069cebb90
Fix missing return statement
2021-03-08 14:08:36 +03:00
Hleb Valoshka
6b14925798
Produce release builds without exceptions and RTTI
2021-03-08 14:08:36 +03:00
Hleb Valoshka
f5f8770f7f
Keep Url objects instead of pointer in history
2021-03-08 14:08:36 +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
5f911ca18e
Add ISO-8801 time format used in URL to astro::Date
2021-03-08 14:08:36 +03:00
Hleb Valoshka
fe810135f6
Translate and simplify displayed RA/Dec
2021-03-08 14:08:36 +03:00
Hleb Valoshka
b954e279a2
A bit of refactoring in legacy scripting support
2021-03-08 14:08:36 +03:00
Hleb Valoshka
ba7e0602a0
Remove 'using namespace std' from header files
2021-03-08 14:08:36 +03:00
Hleb Valoshka
8f46b2b978
astro - use std::string_view where appropriate
2021-03-08 14:08:36 +03:00
Hleb Valoshka
0dab2d9d5b
astro - add useful literals
...
* au (astronomic units)
* ly (light years)
* c (speed of light)
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
41c4ecf47c
Fix RenderFlags' compatibility with 1.6.x
2021-03-03 20:18:32 +03:00
Hleb Valoshka
959d31de70
Fix LuaState::loadScript() usage
2021-03-03 20:18:32 +03:00
Hleb Valoshka
d41a375c04
Use std::tie in `operator<`
2021-03-03 20:18:32 +03:00
Hleb Valoshka
f265e70607
Add an array_view class as a read-only analog of c++20's std::span
2021-03-03 20:18:32 +03:00
Hleb Valoshka
bb9551bcf5
Add a C++17 compatible charconv, from_chars only
2021-03-03 20:18:32 +03:00
Hleb Valoshka
95c24446c1
Add a C++17 compatible string_view implementation
...
Actually there are some limitation caused by the fact that other classes
(e.g. std::string) don't know about string_view, so such limitation must
be handled manually.
2021-03-03 20:18:32 +03:00
Levin Li
00a395d3c6
Fix crash due to use of uninitialized memory
2021-03-01 19:24:06 +08:00
Levin Li
f761c59f32
Fix crash in rendering orbits again
2021-02-26 20:56:16 +08:00
Darshaka Pathirana
52cb444d02
Update Debian 10 (buster) installation instruction
...
Avoid using `apt-key add -` and follow Debian best-practices on how to use 3rd party Debian repository signed keys:
* https://michael-prokop.at/blog/2021/02/16/how-to-properly-use-3rd-party-debian-repository-signing-keys-with-apt/
* https://wiki.debian.org/DebianRepository/UseThirdParty#Sources.list_entry
That way you can also encourage the user to check the GPG fingerprint.
Added Debian codename "buster", so people can find it when searching for it in this repository.
Also removed Bintray URL as it is deprecated and is going "sunset" on May 1st 2021,
see: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
2021-02-26 15:56:08 +03:00