PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

using emulator in landscape?

I'd like to start landscape mode game(you know, screen rotated by 90 degrees). It's very simple to start(changing one parameter in pocketfrog), but very hard to progress :).
I mean I can't just rotate emulator window as I would do with my device. I would have to rotate a whole monitor.
Any sollutions? I don't think emulator can run rotated, at least I didn't found how. Maybe there are programs like Windows' Magnifier, only doing rotation instead of magnifying?

PS: I'd like to keep emulator, PPC2000, which is quite fast, simple and convenient.
Not sure. But it is not very difficult at all to use PocketFrog/HAL to build a PC version. And in that, you will have your proper landscape mode.


JJB
JongJungBu wrote:Not sure. But it is not very difficult at all to use PocketFrog/HAL to build a PC version. And in that, you will have your proper landscape mode.
JJB


Noone to add anything? There's alot of landscape games, does everyone using PC debugging?

Btw, I just tried to build using VC++ 6.0, and got load of errors. It says it cannot convert L"something", and looks like "something" without 'L' is the sollution, but I don't like it. I don't want to change code every time I compile for different platform :(.
We've developed all of our titles using the desktop approach. Its then just a simple matter of fixing any crossplatform issues you didn't account for when you build for the PPC. I can't comment on the ease of doing this with PF, but GapiDraw makes it simple.
jaguard":8u44nvd2]

L"something"? Looks like a TCHAR problem. Did you include the tchar.h header in the pc build? As well, you can also use TEXT("something") in place of L"something".


JJB
L"something"? Looks like a TCHAR problem. Did you include the tchar.h header in the pc build? As well, you can also use TEXT("something") in place of L"something".


I looked deeper and found out that basic type TCHAR is defined as char in winnt.h, while in EVC it's unsigned short just as wchar_t. I've replaced all TCHARs with wchar_t, this leaving me only 24 errors of pocketfrog, which is also using TCHAR. Maybe if I replace pfrog too, it will compile, but there's got to be another way - Thierry is using TCHAR after all :).
TCHAR will be either a char or a short depending on whether or not UNICODE is defined.

Don't use L"", use T(""). L"" forces UNICODE in all cases. T() will be either ANSI or UNICODE depending on if UNICODE is defined or not.

Dan East
PocketFrog doesn't need any changes, it already uses TCHAR and the associated functions in <tchar.h>. Look at how I use <tchar.h> and you should be able to figure it out.

The idea is that you want "char" and "strcpy" on the PC, and "wchar_t" and "wcscpy" on the PPC. <tchar.h> provides macros so that you only have to work with one set of types/functions: "TCHAR" and "tcscpy". These macros translate to the appropriate types/functions depending on your target platform.

It takes a little bit of time to get used to, but it ain't more diffcult then using chars and strcpys.