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_impl_sdl and main sample #233

Merged
merged 1 commit into from
Jul 8, 2015
Merged

Conversation

CedricGuillemet
Copy link
Contributor

Impl & main sample only

@ocornut
Copy link
Owner

ocornut commented May 25, 2015

Thanks! Will look into it (probably after 1.39 release)

@ocornut ocornut merged commit 2acdafe into ocornut:master Jul 8, 2015
@ocornut
Copy link
Owner

ocornut commented Jul 8, 2015

OK i have merged that with a few minor tweaks/fixes.
There's no script/Makefile/project to build it though. That's the really annoying part to get done but in the meanwhile the code is committed for reference.

I am building with

cl /MD main.cpp imgui_impl_sdl.cpp ..\..\imgui.cpp -I..\.. -ID:\T-Work\Libs\SDL\SDL2-2.0.3\include /link /libpath:D:\T-Work\Libs\SDL\SDL2-2.0.3\lib\x86 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console

Will look into adding a Makefile or cmakelist file or creating a MSVC project. I would ideally want the MSVC project to be in the solution with the other examples but I'm not sure how to do that without requiring the user to have a copy of SDL yet.

@ocornut
Copy link
Owner

ocornut commented Jul 8, 2015

Made some reorganisation, the event loop is moved to main.cpp which make sense so that imgui_sdl_impl.cpp is more likely "copiable" into user's application.

4167528

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.

2 participants