PocketMatrix forums

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

eVB Landscape/GAPI

Matt Gifford · 09 Mar 2003, 03:47 UTC
I'm going to start working on a new game this week, and I was wondering how to open draw to the GAPI, and how to put the game in landscape.
GXBeginDraw
Blit the pixels in the order they should be in landscape.
GAPI can be used in eVB?

As for putting games in landscape, from what I understand, GAPI takes care of almost absolutely nothing for you. All it does is give you the framebuffer... what you do with the framebuffer is up to you.
Uh, GAPI can not be used in eVB directly. You can create an ActiveX control that accesses GAPI in eVC++, but that's quite involved. You can buy ASpriteCE from http://www.spritehand.com and it uses GAPI, but you can't use the GAPI functions like you can use the WinCE API functions in eVB. Infact alot of API functions you can't even use. As for landscape in an eVB app, I have never seen it done, and I don't have a clue if it even can be done.
If you're so concerned about making fast games in landstape using GAPI, consider learning C++ and using PocketFrog. PocketFrog is pretty easy and gives nice results.
Matt Gifford · 09 Mar 2003, 18:24 UTC
I'm currently taking a c++ class, but I don't kow enough to make a game. I'm more interested in learning how to make the game in landscape. I added GAPI just to find out if eVB could use it. So, can someone please give me a little more in-depth description of how to put the game in landscape.
There is no "landscape" mode. You simply draw to a buffer 320x240 instead of 240x320. Then when you blit (copy) it to the GAPI RAM you copy it appropriately. As for the input (D-Pad, Stylus), you have to convert them to "landscape" manually (ie Left really means Up, etc).

Dan East
Matt Gifford · 10 Mar 2003, 07:27 UTC
Is there a way I can make a landscape game without GAPI?
Yep. Reread my post above, and replace the phrase "GAPI RAM" with "Window DC".

Dan East
Matt Gifford · 10 Mar 2003, 23:22 UTC
Thank You :D
Matt Gifford · 11 Mar 2003, 02:59 UTC
What is the height and width of a ppc screen in twips?
What's a twip? My PPC is using pixels... 240x320.
Matt Gifford · 11 Mar 2003, 03:22 UTC
Nevermind I found a converter on the net.
Matt Gifford · 11 Mar 2003, 04:26 UTC
I've been looking through the help files for awhile and can't find anything about the display control in eVB can someone please tell me what to search for or give me a section of code that will allow me to display it as landscape.
Matt Gifford · 22 Mar 2003, 05:56 UTC
As of now, I still cannot make it show up in landscape. Can someone please email me a file containing the code required to rotate it, or just post a section in the forum.

NOTE: This is in eVB.