PocketMatrix forums

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

GDDISPMODE_LANDSCAPE1?

I'm currently testing a game on landscape mode and I found out that GDDISPMODE_LANDSCAPE1 and 2 is not supported anymore on Gapidraw v2.04? Do I have to use GDDISPMODE_ROTATE90CW/CCW instead? How will this affect the game's performance?

Thanks in advance!

Erick
Hi,

They were simply renamed and the change does not affect performance. The reason for the change was that some devices are already landscape, making the "NORMAL" mode difficult to label.
Erick,

They do work a tad differently over 2.01 and earlier, but nothing you won't be able to figure out quickly. Here's my standard setup (2.04) for landscape mode on the desktop and ppc (notice that GDDISMODE_NORMAL on the desktop provides the expected 'landscape' view - no need to rotate the view on the desktop, just adjust the window size):

Code:
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPTSTR pCmdLine, int nCmdShow)
{
GDAPPCONFIG config;
::ZeroMemory(&config;, sizeof(GDAPPCONFIG));

config.hInstance = hInst;
config.pAppTitle = TEXT("Demo");
config.dwWindowIcon = IDI_APP;

#ifndef _WIN32_WCE
config.dwDisplayMode = GDDISPMODE_NORMAL;
config.dwDisplayZoomWidth = 800;
config.dwDisplayZoomHeight = 600;
#else
config.dwDisplayMode = GDDISPMODE_ROTATE90CCW;
config.bMinimizeOnLostFocus = true;
config.bMinimizedActive = false;
#endif
config.dwTargetFPS = 30;
config.dwDisplayWidth = 320;
config.dwDisplayHeight = 240;
#ifndef _DEBUG
config.dwDisplayFlags |= GDDISPLAY_FULLSCREEN;
#endif

// Create the application
CMyApplication app(config);

// Start main loop
return app.Run();
}
Thanks a lot for the clarification Johan.

Thanks also for the sample code GR! I'll look into it. I'm currently writing my own Isometric Tile engine and I'm testing it in landscape mode when I came upon this issue. I didn't know you can set the PPC resolution to 800x600? :)
Actually, the section setting the display to 800x600 is for the PC (makes it easier to see for us old folk ;) but I imagine you can set the ppc screen size as well when the VGA devices come out.

What kind of iso engine are you working on Erick?
Oh yeah, I misread that part! 8O

It's a simple tile engine similar to yours (Rapture) but not too advanced, something that will fit our needs just right for our new projects. I'd love to try Rapture Engine too but at this point, I can't deal w/ too much external dll files for our projects already. :) Is rapture engine supplied as a static dll? Or is there an option wherein I can compile it w/in my game w/out being another "external" file? I'd love to discuss these matters w/ you privately if those are "sensitive" questions.
I will probably supply it in both formats as there are advantages to both. The only thing I want to get done before putting out an alpha release is static object handling support (eg terrain objects) but I had to turn my attentions to finishing off another title this week so my time is limited.

I could probably whip up a static lib version of the engine by the weekend if you don't mind that bit of support missing from it (if I get what I'm working on done quickly I may get the static object support in anyways).
No need to hurry on that GR. I can wait 'til weekend to testdrive Rapture anyway. It works w/ gapidraw 2.04 right? I haven't upgraded yet to the latest version after porting all my games to this version of gapidraw. Please drop me an email at erick@esoftinteractive.com or add me to your list once you have an alpha.
Yes, it's currently built with GD2.04 in mind. I'll send you an email when its ready for trial.