Skip to content

Commit

Permalink
init upload
Browse files Browse the repository at this point in the history
  • Loading branch information
adeliktas committed Oct 30, 2023
0 parents commit ddedcc0
Show file tree
Hide file tree
Showing 217 changed files with 98,324 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/imgui"]
path = external/imgui
url = [email protected]:ocornut/imgui.git
56 changes: 56 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
cmake_minimum_required(VERSION 3.1)

project(ImguiOverlay)

set(ImguiOverlay_INCLUDES src/include)
include_directories(${ImguiOverlay_INCLUDES})

set(IMGUI_DIR external/imgui) #https://github.com/ocornut/imgui/tree/master
include_directories(${IMGUI_DIR})
include_directories(${IMGUI_DIR}/backends)
set(SOURCES
src/main.cpp
${IMGUI_DIR}/imgui.cpp
${IMGUI_DIR}/imgui_demo.cpp
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_tables.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp)

set(OBJS "")
foreach(source ${SOURCES})
get_filename_component(name ${source} NAME_WE)
add_library(${name} OBJECT ${source})
list(APPEND OBJS $<TARGET_OBJECTS:${name}>)
endforeach()

# Options
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CXXFLAGS "-Wall -Wformat -g")
set(CXXFLAGS "${CXXFLAGS} -I${IMGUI_DIR} -I${IMGUI_DIR}/backends")
set(CXXFLAGS "${CXXFLAGS} -g") #debugging info
set(CXXFLAGS "${CXXFLAGS} -DIMGUI_IMPL_OPENGL_ES2")
set(LINUX_GL_LIBS "-lGL")
set(LIBS "${LINUX_GL_LIBS} -lX11")
find_package(PkgConfig REQUIRED)

set(GLFW_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../devreqs/glfw/include/GLFW)
find_package(glfw3 REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
include_directories(${GLFW_INCLUDE_DIRS})

set(LIBS "${LIBS} -l${GLFW_LIBRARIES}")
set(CXXFLAGS "${CXXFLAGS} ${GLFW_CFLAGS}")

set(LIBS "${LIBS} -lm -ldl -lpthread")

include_directories(${CMAKE_SOURCE_DIR}/src/include)
#link_directories(${CMAKE_SOURCE_DIR}/mylib)

add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${OBJS})
target_compile_options(${PROJECT_NAME} PRIVATE ${CXXFLAGS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBS})
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "CustomControls")
28 changes: 28 additions & 0 deletions external/imgui/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See http://editorconfig.org to read about the EditorConfig format.
# - In theory automatically supported by VS2017+ and most common IDE or text editors.
# - In practice VS2019-VS2022 stills don't trim trailing whitespaces correctly :(
# - Suggest installing this to trim whitespaces:
# GitHub https://github.com/madskristensen/TrailingWhitespace
# VS2019 https://marketplace.visualstudio.com/items?itemName=MadsKristensen.TrailingWhitespaceVisualizer
# VS2022 https://marketplace.visualstudio.com/items?itemName=MadsKristensen.TrailingWhitespace64
# (in spite of its name doesn't only visualize but also trims)
# - Alternative for older VS2010 to VS2015: https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig

# top-most EditorConfig file
root = true

# Default settings:
# Use 4 spaces as indentation
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[imstb_*]
indent_size = 3
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
indent_size = 4
30 changes: 30 additions & 0 deletions external/imgui/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
* text=auto

*.c text
*.cpp text
*.h text
*.m text
*.mm text
*.md text
*.txt text
*.html text
*.bat text
*.frag text
*.vert text
*.mkb text
*.icf text

*.sln text eol=crlf
*.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
*.natvis text eol=crlf

Makefile text eol=lf
*.sh text eol=lf
*.pbxproj text eol=lf
*.storyboard text eol=lf
*.plist text eol=lf

*.png binary
*.ttf binary
*.lib binary
1 change: 1 addition & 0 deletions external/imgui/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://github.com/ocornut/imgui/wiki/Sponsors']
46 changes: 46 additions & 0 deletions external/imgui/.github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
(Click "Preview" above ^ to turn URL into clickable links)

1. FOR FIRST-TIME USERS PROBLEMS COMPILING/LINKING/RUNNING or LOADING FONTS, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). EVERYTHING ELSE CAN BE POSTED HERE!

2. PLEASE CAREFULLY READ: [FAQ](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md)

3. PLEASE CAREFULLY READ: [Contributing Guidelines](https://github.com/ocornut/imgui/blob/master/docs/CONTRIBUTING.md)

4. PLEASE MAKE SURE that you have: read the FAQ; explored the contents of `ShowDemoWindow()` including the Examples menu; searched among Issues; used your IDE to search for keywords in all sources and text files; and read the links above.

5. Be mindful that messages are being sent to the e-mail box of "Watching" users. Try to proof-read your messages before sending them. Edits are not seen by those users.

6. Delete points 1-6 and PLEASE FILL THE TEMPLATE BELOW before submitting your issue.

Thank you!

----

_(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)_

**Version/Branch of Dear ImGui:**

Version: XXX
Branch: XXX _(master/viewport/docking/etc.)_

**Back-end/Renderer/Compiler/OS**

Back-ends: imgui_impl_XXX.cpp + imgui_impl_XXX.cpp _(or specify if using a custom engine/back-end)_
Compiler: XXX _(if the question is related to building or platform specific features)_
Operating System: XXX

**My Issue/Question:**

XXX _(please provide as much context as possible)_

**Screenshots/Video**

XXX _(you can drag files here)_

**Standalone, minimal, complete and verifiable example:** _(see https://github.com/ocornut/imgui/issues/2261)_
```
// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
```
6 changes: 6 additions & 0 deletions external/imgui/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(Click "Preview" to turn any http URL into a clickable link)

1. PLEASE CAREFULLY READ: [Contributing Guidelines](https://github.com/ocornut/imgui/blob/master/docs/CONTRIBUTING.md)

2. Clear this template before submitting your PR.

Loading

0 comments on commit ddedcc0

Please sign in to comment.