-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dc2dba
commit 6c827b8
Showing
11 changed files
with
118 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ | |
|
||
imgui.ini | ||
imzero | ||
*.gen.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ imgui_exe | |
imgui.wasm | ||
main_go | ||
core | ||
build | ||
*.ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# generated using cmakelists.dhall | ||
cmake_minimum_required(VERSION 3.24) | ||
project(imgui_exe) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_COMPILER clang++) | ||
|
||
add_compile_definitions(IMGUI_ENABLE_FREETYPE) | ||
include_directories("${CMAKE_CURRENT_LIST_DIR}/./imgui" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/arena/simple") | ||
set(COMPILE_OPTIONS -std=c++20 | ||
-O3) | ||
link_libraries(-DNDEBUG | ||
-lGL | ||
-lglfw | ||
-lfreetype) | ||
|
||
add_library(imgui OBJECT "${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_demo.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_draw.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_tables.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_widgets.cpp") | ||
|
||
add_library(imguiBackendGlfw OBJECT "${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_impl_glfw.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imgui/imgui_impl_opengl3.cpp") | ||
target_compile_options(imguiBackendGlfw PUBLIC ) | ||
|
||
add_library(imguiFreetype OBJECT "${CMAKE_CURRENT_LIST_DIR}/./imgui/misc/freetype/imgui_freetype.cpp") | ||
target_compile_options(imguiFreetype PUBLIC -I/usr/include/freetype2 -I/usr/include/libpng16) | ||
|
||
add_library(render OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/render.cpp") | ||
target_include_directories(render PUBLIC "${CMAKE_CURRENT_LIST_DIR}/./src" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_implot" | ||
"${CMAKE_CURRENT_LIST_DIR}/./imcolortextedit") | ||
|
||
add_library(marshalling OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/marshalling/receive.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/marshalling/send.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/marshalling/helper.cpp") | ||
target_include_directories(marshalling PUBLIC "${CMAKE_CURRENT_LIST_DIR}/./src/marshalling" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_implot") | ||
|
||
add_library(arena OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/arena/simple/simple.cpp") | ||
|
||
add_library(widgets OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/common.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/piemenu.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/coloredbutton.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/splitter.cpp") | ||
target_compile_options(widgets PUBLIC -Wno-unused-parameter | ||
-Wno-unused-variable) | ||
|
||
add_library(imguiToggle OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_toggle/imgui_toggle.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_toggle/imgui_toggle_palette.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_toggle/imgui_toggle_presets.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_toggle/imgui_toggle_renderer.cpp") | ||
target_compile_options(imguiToggle PUBLIC -Wno-unused-parameter | ||
-Wno-unused-variable) | ||
|
||
add_library(imguiImplot OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_implot/implot.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_implot/implot_demo.cpp" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_implot/implot_items.cpp") | ||
|
||
add_library(imguiKnobs OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_knobs/imgui-knobs.cpp") | ||
|
||
add_library(imguiCoolbar OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_coolbar/ImCoolbar.cpp") | ||
|
||
add_library(imguiFlamegraph OBJECT "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_flamegraph/imgui_widget_flamegraph.cpp") | ||
target_include_directories(imguiFlamegraph PUBLIC "${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_flamegraph" | ||
"${CMAKE_CURRENT_LIST_DIR}/./src/widgets/imgui_flamegraph") | ||
|
||
add_library(imguiTextedit OBJECT "${CMAKE_CURRENT_LIST_DIR}/./imcolortextedit/TextEditor.cpp") | ||
target_compile_options(imguiTextedit PUBLIC -Wno-unused-variable) | ||
|
||
|
||
add_library(main OBJECT "${CMAKE_CURRENT_LIST_DIR}/./main.cpp") | ||
add_executable(imgui_exe $<TARGET_OBJECTS:imgui> | ||
$<TARGET_OBJECTS:imguiBackendGlfw> | ||
$<TARGET_OBJECTS:imguiFreetype> | ||
$<TARGET_OBJECTS:render> | ||
$<TARGET_OBJECTS:marshalling> | ||
$<TARGET_OBJECTS:arena> | ||
$<TARGET_OBJECTS:widgets> | ||
$<TARGET_OBJECTS:imguiToggle> | ||
$<TARGET_OBJECTS:imguiImplot> | ||
$<TARGET_OBJECTS:imguiKnobs> | ||
$<TARGET_OBJECTS:imguiCoolbar> | ||
$<TARGET_OBJECTS:imguiFlamegraph> | ||
$<TARGET_OBJECTS:imguiTextedit> | ||
$<TARGET_OBJECTS:main>) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -ev | ||
here=$(dirname "$(readlink -f "$BASH_SOURCE")") | ||
cd "$here" | ||
rm -f main_go | ||
source tags.sh | ||
go build -tags "$build_tags" -o main_go ../../boxer/public/imzero/main.go |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -ev | ||
rm -f transfer | ||
mkfifo transfer | ||
font="./martian/MartianMono-StdRg.ttf" | ||
font="./SauceCodeProNerdFontMono-Regular.ttf" | ||
./main_go --logFormat console demo --mainFontTTF "$font" --mainFontSizeInPixels 13 "$@" < transfer | ./imgui_exe > transfer | ||
rm -f transfer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build_tags=binary_log,spectrum_color_scheme_dark,spectrum_scale_desktop,spectrum_theme_spectrum,spectrum_theme_none,boxer_enable_profiling |