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

Windowed Metal App #3

Closed
randallrvr opened this issue Jan 27, 2017 · 2 comments
Closed

Windowed Metal App #3

randallrvr opened this issue Jan 27, 2017 · 2 comments

Comments

@randallrvr
Copy link

Not sure I understand the comments about toll-free bridging? What's the best way to create a fairly minimal windowed Metal app with a render loop? The 99_view_controller.mm example seems to be missing some header files.

@naleksiev
Copy link
Owner

The comment about toll-free bridging was intended to help with C++ and ObjC interop.
99_view_controller.mm is the ViewController from the Xcode Game template, where Metal is replaced with mtlpp.

I also added 04_window.cpp example which is a short example of what you need. There are 2 more files window.hpp and window.mm which are also necessary. (The 04_window example is macOS only. I'll add iOS and tvOS support soon.)

Hopefully this is helpful.

@randallrvr
Copy link
Author

Thanks! That is incredibly helpful!

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

No branches or pull requests

2 participants