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 [2012/03/05 00:22] – seth | ||
---|---|---|---|
Line 9: | Line 9: | ||
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 |
{{: | {{: | ||
Line 18: | Line 18: | ||
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** (or Debug Common) - Uses the PowerVR libgles library. |
* **Release** (or Release Common) - Uses the PowerVR libgles library. | * **Release** (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. | ||
Line 24: | Line 24: | ||
* **Debug WebOS** - This config links with the WebOS "SDL like" libraries, useful for debugging WebOS specific issues. I don't have a " | * **Debug WebOS** - This config links with the WebOS "SDL like" libraries, useful for debugging WebOS specific issues. I don't have a " | ||
- | Before compiling you should do two things. | + | **Note from WoutervD** - If importing the VS2005 project into 2010, you may need to set the bin directory |
- | {{:proton:win_setup2.png?|}} | + | {{:proton:win_vs_outputdir.png?100}} <-- not needed for VS2005! |
- | Select the WinRTBareBones project, right click and choose properties. | + | 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 35: | ||
<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(" | ||
- | string desiredVideoMode = " | + | //RIM Playbook OS/ |
- | g_landScapeNoNeckHurtMode = false; //if true, will rotate the screen so we can play in landscape mode in windows without hurting ourselves | + | AddVideoMode(" |
+ | AddVideoMode(" | ||
+ | |||
+ | string desiredVideoMode = " | ||
</ | </ | ||
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 67: | Line 93: | ||
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