Add notes for SDL_WinRTRunApp and SDL2-WinRTResources for non-C++ projects
authorEthan Lee
Sun, 09 Jun 2019 11:54:51 -0400
changeset 1281077707a081153
parent 12809 572f29f98da0
child 12811 9b59bc963a74
Add notes for SDL_WinRTRunApp and SDL2-WinRTResources for non-C++ projects
docs/README-winrt.md
     1.1 --- a/docs/README-winrt.md	Sun Jun 09 12:46:10 2019 -0700
     1.2 +++ b/docs/README-winrt.md	Sun Jun 09 11:54:51 2019 -0400
     1.3 @@ -296,7 +296,7 @@
     1.4     included, mouse-position reporting may fail if and when the cursor is
     1.5     hidden, due to possible bugs/design-oddities in Windows itself.*
     1.6  
     1.7 -To include these files:
     1.8 +To include these files for C/C++ projects:
     1.9  
    1.10  1. right-click on your project (again, in Visual C++'s Solution Explorer), 
    1.11     navigate to "Add", then choose "Existing Item...".
    1.12 @@ -313,11 +313,14 @@
    1.13  7. change the setting for "Consume Windows Runtime Extension" to "Yes (/ZW)".
    1.14  8. click the OK button.  This will close the dialog.
    1.15  
    1.16 -
    1.17  **NOTE: C++/CX compilation is currently required in at least one file of your 
    1.18  app's project.  This is to make sure that Visual C++'s linker builds a 'Windows 
    1.19  Metadata' file (.winmd) for your app.  Not doing so can lead to build errors.**
    1.20  
    1.21 +For non-C++ projects, you will need to call SDL_WinRTRunApp from your language's
    1.22 +main function, and generate SDL2-WinRTResources.res manually by using `rc` via
    1.23 +the Developer Command Prompt and including it as a <Win32Resource> within the
    1.24 +first <PropertyGroup> block in your Visual Studio project file.
    1.25  
    1.26  ### 6. Add app code and assets ###
    1.27