Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2b725a8
[ImGui]Integrate Dear ImGui library
TheGondos Jan 10, 2025
5810406
[ImGui]Replace InputBox and Select
TheGondos Jan 15, 2025
a55858c
[ImGui]Add support in OAPI
TheGondos Jan 15, 2025
52926e6
[ImGui]Declare as a cmake INTERFACE + initialise DlgMgr before loadin…
TheGondos Jan 17, 2025
fdc7699
[ImGui][test]Demo for Graphics dialog
TheGondos Jan 24, 2025
9c48d37
[ImGui]Bump version to 1.91.7
TheGondos Jan 25, 2025
f157a06
[ImGui]Rename DialogImGui->ImGuiDialog
TheGondos Jan 25, 2025
a00f9cd
[ImGui]Move ImGuiDialog from GraphicsAPI.h to OrbiterAPI.h
TheGondos Jan 25, 2025
475cc67
[ImGui]Handle dialog visibility from Orbiter core
TheGondos Jan 25, 2025
9e8b4e0
[ImGui]Fix values for the gfx controls
TheGondos Jan 25, 2025
2bbae11
[ImGui]Add SliderFloatReset helper to the core
TheGondos Jan 25, 2025
56d502d
[ImGui]Add icon font + helper for 'help'
TheGondos Jan 26, 2025
8a9cbb9
[ImGui]Example for style customisation
TheGondos Jan 26, 2025
52f1db9
[ImGui]Add font config option in Orbiter.cfg
TheGondos Jan 26, 2025
0b9d9ab
[ImGui]Don't show dialogs on the 'Current State' scenario preview
TheGondos Jan 26, 2025
d277895
[ImGui]Add support for notifications
TheGondos Jan 27, 2025
25aa2f4
[ImGui]Convert DlgCamera
TheGondos Jan 30, 2025
49f0540
[ImGui]Convert DlgFocus
TheGondos Jan 31, 2025
f282216
[ImGui]Convert DlgFunction
TheGondos Jan 31, 2025
b87d457
[ImGui]Convert DlgInfo
TheGondos Jan 31, 2025
6eaef81
[ImGui]Convert DlgRecorder
TheGondos Jan 31, 2025
3d076dd
[ImGui]Convert DlgTacc
TheGondos Jan 31, 2025
1093986
[ImGui]Convert DlgCapture
TheGondos Jan 31, 2025
79d585c
[ImGui]Convert DlgMenuCfg
TheGondos Jan 31, 2025
9974b51
[ImGui]Convert ExtMFD
TheGondos Feb 2, 2025
24dcef9
[ImGui]Convert LuaConsole
TheGondos Feb 4, 2025
5ecba8a
[ImGui]Convert PlaybackEd
TheGondos Feb 5, 2025
217a9a5
[ImGui]Convert DlgMap
TheGondos Feb 6, 2025
3218caf
[ImGui]Convert DlgHelp
TheGondos Feb 9, 2025
b10293f
SDL3 Port
ThePuzzlemaker Feb 11, 2025
00340b2
Fix WinAPI messages to Launchpad
ThePuzzlemaker Feb 23, 2025
4b6229d
Remove vendored libraries
ThePuzzlemaker Feb 23, 2025
0d5d008
Hopefully fix whitespace issues
ThePuzzlemaker Feb 24, 2025
fbe2312
Revert irrelevant changes
ThePuzzlemaker Feb 25, 2025
af22947
Fix DlgHelp
ThePuzzlemaker Feb 25, 2025
073f1f3
Fix exit button
ThePuzzlemaker Feb 25, 2025
091bfcd
Whoops
ThePuzzlemaker Feb 25, 2025
7a5aeee
Whoops pt.2
ThePuzzlemaker Feb 25, 2025
12f4d04
Remove irrelevant TODO
ThePuzzlemaker Feb 25, 2025
99b0f54
Keyboard input
ThePuzzlemaker Feb 26, 2025
f039974
SDLWrappers: OAPIFUNC/DLLEXPORT
ThePuzzlemaker Feb 26, 2025
3e1c67c
Fix mouse
ThePuzzlemaker Feb 26, 2025
a62ae38
Fix TerrainToolkit mouse processing
ThePuzzlemaker Feb 27, 2025
c179cc6
Joystick with SDL3
ThePuzzlemaker Mar 1, 2025
1b11e21
Cleanup; remove SDL3_image
ThePuzzlemaker Mar 1, 2025
ec2b5a1
Remove unused include
ThePuzzlemaker Mar 1, 2025
bd0802a
Fix encoding issue
ThePuzzlemaker Mar 1, 2025
94e39db
Undo name change
ThePuzzlemaker Mar 1, 2025
0db66d0
Remove added field which is never used
ThePuzzlemaker Mar 1, 2025
75742bd
Undo encoding change
ThePuzzlemaker Mar 1, 2025
b3e31c2
Resolve some TODOs
ThePuzzlemaker Mar 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Sound/XRSound/**/Release-with-OrbiterRelease/
.kdev/
[Bb]uild/

# CLion-specific files
.idea

Extern/irrKlang

Doc/**/*.log
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.19)
project (Orbiter VERSION 21.7.24)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

#Add /permissive if using C++20 or higher
Expand Down Expand Up @@ -83,7 +83,7 @@ set(ORBITER_INSTALL_DOC_DIR ${ORBITER_INSTALL_ROOT_DIR}/Doc)
set(ORBITER_INSTALL_UTILS_DIR ${ORBITER_INSTALL_ROOT_DIR}/Utils)
set(ORBITER_INSTALL_SDK_DIR ${ORBITER_INSTALL_ROOT_DIR}/Orbitersdk)

set(ORBITER_SDK_LIB $<TARGET_FILE:Orbitersdk>)
set(ORBITER_SDK_LIB $<TARGET_FILE:Orbitersdk> SDL3::SDL3)
set(ORBITER_DLGCTRL_LIB $<TARGET_FILE:DlgCtrl>)
set(LUAINTERPRETER_LIB $<TARGET_LINKER_FILE:LuaInterpreter>)
set(GDICLIENT_LIB $<TARGET_LINKER_FILE:GDIClient>)
Expand Down
5 changes: 5 additions & 0 deletions Doc/Orbiter User Manual/CREDITS.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ \subsection{Libraries, code, data, algorithms}
Jean-loup Gailly \href{mailto:jloup@gzip.org}{jloup@gzip.org}\\
Mark Adler \href{mailto:madler@alumni.caltech.edu}{madler@alumni.caltech.edu}\\
\\
\textbf{Font Awesome}\\
Icons font\\
Fonticons, Inc. \url{https://fontawesome.com}\\
CC BY 4.0 License \url{https://creativecommons.org/licenses/by/4.0/}\\
\\
\textbf{VSOP87}\\
Planetary perturbation terms for Mercury to Neptune\\
Bureau des Longitudes, CNRS URA 707\\
Expand Down
2 changes: 2 additions & 0 deletions Extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ endif(NOT DEFINED ORBITER_BINARY_ROOT_DIR)

add_subdirectory(Lua)
add_subdirectory(zlib)
add_subdirectory(imgui)
add_subdirectory(SDL3)

## LFS
add_library(lfs SHARED luafilesystem/src/lfs.c)
Expand Down
28 changes: 28 additions & 0 deletions Extern/SDL3/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
project(SDL3)

Include(FetchContent)

FetchContent_Declare(
SDL3
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG release-3.2.4
)
FetchContent_MakeAvailable(SDL3)

set_target_properties(SDL3-shared PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
LIBRARY_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
RUNTIME_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
)

set_target_properties(SDL3_Headers PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${ORBITER_INSTALL_SDK_DIR}/include"
LIBRARY_OUTPUT_DIRECTORY "${ORBITER_INSTALL_SDK_DIR}/include"
RUNTIME_OUTPUT_DIRECTORY "${ORBITER_INSTALL_SDK_DIR}/include"
)

file(GLOB SDL3_HEADERS "${SDL3_SOURCE_DIR}/include/SDL3/*.h" "${SDL3_BINARY_DIR}/include-revision/SDL3/*.h")
file(COPY ${SDL3_HEADERS} DESTINATION "${ORBITER_BINARY_SDK_DIR}/include/SDL3")

install(TARGETS SDL3_Headers RUNTIME DESTINATION "${ORBITER_INSTALL_SDK_DIR}/include")
install(TARGETS SDL3-shared RUNTIME DESTINATION ${ORBITER_INSTALL_ROOT_DIR})
27 changes: 27 additions & 0 deletions Extern/imgui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
project(imgui)

Include(FetchContent)

FetchContent_Declare(
imgui
GIT_REPOSITORY https://github.com/ocornut/imgui.git
GIT_TAG v1.91.7-docking
PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/imconfig.h .
# UPDATE_DISCONNECTED 1
)
FetchContent_MakeAvailable(imgui)

install(FILES ${imgui_SOURCE_DIR}/misc/fonts/Roboto-Medium.ttf fa-solid-900.ttf ${imgui_SOURCE_DIR}/misc/fonts/Cousine-Regular.ttf
DESTINATION ${ORBITER_INSTALL_ROOT_DIR}
)
file(COPY ${imgui_SOURCE_DIR}/misc/fonts/Roboto-Medium.ttf fa-solid-900.ttf ${imgui_SOURCE_DIR}/misc/fonts/Cousine-Regular.ttf DESTINATION ${ORBITER_BINARY_ROOT_DIR})

install(FILES ${imgui_SOURCE_DIR}/imgui.h ${imgui_SOURCE_DIR}/imconfig.h
DESTINATION ${ORBITER_INSTALL_SDK_DIR}/include
)

add_library(imgui INTERFACE)

set(IMGUI_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include)
file(COPY ${imgui_SOURCE_DIR}/imgui.h ${imgui_SOURCE_DIR}/imconfig.h DESTINATION ${IMGUI_INCLUDE_DIR})
target_include_directories(imgui INTERFACE ${IMGUI_INCLUDE_DIR})
165 changes: 165 additions & 0 deletions Extern/imgui/License-FA.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
Fonticons, Inc. (https://fontawesome.com)

--------------------------------------------------------------------------------

Font Awesome Free License

Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.

--------------------------------------------------------------------------------

# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)

The Font Awesome Free download is licensed under a Creative Commons
Attribution 4.0 International License and applies to all icons packaged
as SVG and JS file types.

--------------------------------------------------------------------------------

# Fonts: SIL OFL 1.1 License

In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.

Copyright (c) 2023 Fonticons, Inc. (https://fontawesome.com)
with Reserved Font Name: "Font Awesome".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting — in part or in whole — any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

--------------------------------------------------------------------------------

# Code: MIT License (https://opensource.org/licenses/MIT)

In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.

Copyright 2023 Fonticons, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

--------------------------------------------------------------------------------

# Attribution

Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
Awesome Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.

We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about Font Awesome.

--------------------------------------------------------------------------------

# Brand Icons

All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by Font
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**
Binary file added Extern/imgui/fa-solid-900.ttf
Binary file not shown.
Loading
Loading