proton:win_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
proton:win_setup [2010/10/29 11:42] – seth | proton:win_setup [2018/07/28 08:15] – seth | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== Get Proton SDK === | === Get Proton SDK === | ||
- | Use a [[http://tortoisesvn.net/downloads|svn client]] to checkout | + | Clone the Proton github repository. |
+ | |||
+ | For git: | ||
+ | < | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | For Tortoisegit you right click in file explorer, choose clone, and enter **https://github.com/SethRobinson/proton.git** as the repository. | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <div id=" | ||
+ | < | ||
+ | <param name=" | ||
+ | <!--[if !IE]> | ||
+ | <object type=" | ||
+ | < | ||
+ | <param name=" | ||
+ | <param name=" | ||
+ | <param name=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <!--[if !IE]> | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
=== Running RTBareBones on Windows=== | === Running RTBareBones on Windows=== | ||
- | The first example you should compile is RTBareBones. | + | The first example you should compile is RTBareBones. |
RTBarebones is still around 40 " | RTBarebones is still around 40 " | ||
Line 9: | Line 41: | ||
It includes font loading, 2d blitting, and a super simple main game loop. | It includes font loading, 2d blitting, and a super simple main game loop. | ||
- | =**Bold Text**== Configuration and compiling === | + | === Configuration and compiling === |
- | Nagivate | + | Navigate |
{{: | {{: | ||
- | Choose Debug GL from the configuration drop down. | + | Choose Debug GL from the configuration drop down. Nevermind that the screenshot is from VC 2015 and is outdated. |
+ | |||
+ | Note that you can select platform Win32 or x64, Win32 is usually fine unless you are working on some 64 bit specific issue. | ||
Here is an explanation of what each configuration is (they all make Windows exe's btw, but different configs can help you emulate platforms better): | Here is an explanation of what each configuration is (they all make Windows exe's btw, but different configs can help you emulate platforms better): | ||
- | * **Debug** (or Debug Common) - Uses the PowerVR libgles library. | + | * **Debug_GLES** (or Debug Common |
- | * **Release** (or Release Common) - Uses the PowerVR libgles library. | + | * **Release_GLES** (or Release Common) - Uses the PowerVR libgles library. |
- | * **Debug GL** - Most of your testing is going to be with this. Standard GL. | + | * **Debug_GL** - Most of your testing is going to be with this. Standard GL. |
- | * **Release GL** - For a final Windows build this is what you should use. | + | * **Release_GL** - For a final Windows build this is what you should use. |
- | * **Debug WebOS** - This config links with the WebOS "SDL like" libraries, useful for debugging WebOS specific issues. I don't have a " | + | * **SDL_Debug_GL** - emulates using SDL2 as the backend. Linux builds use this so it can be useful |
- | Before compiling you should | + | Note: Output directory |
- | + | ||
- | {{: | + | |
- | + | ||
- | Select the WinRTBareBones project, right click and choose properties. | + | |
Next, open main.cpp and double check what the screensize/ | Next, open main.cpp and double check what the screensize/ | ||
Line 35: | Line 65: | ||
<code cpp> | <code cpp> | ||
- | AddVideoMode(" | + | AddVideoMode(" |
+ | AddVideoMode(" | ||
+ | | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | |||
+ | //iOS - for testing on Windows, you should probably use the " | ||
+ | //neck. | ||
AddVideoMode(" | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
AddVideoMode(" | AddVideoMode(" | ||
- | AddVideoMode(" | + | AddVideoMode(" |
- | + | AddVideoMode(" | |
- | AddVideoMode(" | + | AddVideoMode(" |
- | AddVideoMode(" | + | AddVideoMode(" |
+ | //Palm er, I mean HP. These should use the Debug WebOS build config in MSVC for the best results, it will | ||
+ | //use their funky SDL version | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | |||
+ | //Android | ||
AddVideoMode(" | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
AddVideoMode(" | AddVideoMode(" | ||
- | AddVideoMode(" | + | AddVideoMode(" |
- | AddVideoMode(" | + | AddVideoMode(" |
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
+ | |||
+ | //RIM Playbook OS/ | ||
+ | AddVideoMode(" | ||
+ | AddVideoMode(" | ||
- | string desiredVideoMode = " | + | string desiredVideoMode = " |
- | g_landScapeNoNeckHurtMode = false; //if true, will rotate the screen so we can play in landscape mode in windows without hurting ourselves | + | |
</ | </ | ||
This is how you can test " | This is how you can test " | ||
- | Make sure you have desiredVideoMode set to " | + | Make sure you have desiredVideoMode set to " |
Compile and run. You should see the fps near the top, some rects, a rotating triangle and some colored text scaling up and down near the bottom: | Compile and run. You should see the fps near the top, some rects, a rotating triangle and some colored text scaling up and down near the bottom: | ||
Line 61: | Line 117: | ||
{{: | {{: | ||
- | Because we chose iPhone, the screensize is 320X480. | + | Because we chose iPhone, the screensize is 320X480. |
If you ran this app on a real iPhone, tilting the device would cause it to rotate to each orientation automatically. (You can disable that later or limit to only landscape modes) | If you ran this app on a real iPhone, tilting the device would cause it to rotate to each orientation automatically. (You can disable that later or limit to only landscape modes) | ||
Line 67: | Line 123: | ||
For Windows there are some hotkey equivalents for rotation, try hitting these: | For Windows there are some hotkey equivalents for rotation, try hitting these: | ||
- | * P - Portrait (same as how it starts up) | + | * Ctrl-P - Portrait (same as how it starts up) |
- | * U - Upside down portrait | + | * Ctrl-U - Upside down portrait |
- | * R - Right landscape | + | * Ctrl-R - Right landscape |
- | * L - Left landscape | + | * Ctrl-L - Left landscape |
* Escape - Quit | * Escape - Quit | ||
+ | |||
+ | NOTE: The "fake rotate the screen" | ||
RTBareBones is pretty simple, the app specific code is just two files, **App.cpp** and **App.h**. | RTBareBones is pretty simple, the app specific code is just two files, **App.cpp** and **App.h**. | ||
The two functions to look at are **App:: | The two functions to look at are **App:: | ||
+ | |||
+ | It also has code to read some keys, the touchscreen, |
proton/win_setup.txt · Last modified: 2018/07/28 08:33 by seth