Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGui integration #2030

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

ImGui integration #2030

wants to merge 9 commits into from

Conversation

ZehMatt
Copy link
Contributor

@ZehMatt ZehMatt commented Jul 14, 2023

ImGui is quite helpful for debug purposes when it comes to rapidly creating visualizations for the internal data, I'll have it in draft until I added a few things like inspecting entities and some other things.

OpenLoco_2023-07-14_02-48-1883f882dfe39aa9ecb

target_include_directories(imgui PUBLIC ${imgui_SOURCE_DIR})
target_link_libraries(imgui PUBLIC ${SDL2_LIB})

FetchContent_MakeAvailable(imgui)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be really sure its available?


FetchContent_GetProperties(imgui)
if (NOT imgui_POPULATED)
FetchContent_Populate(imgui)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik you don't need to do this anymore. You just do MakeAvailable no need for populate or getproperties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants