Page 1 of 1

Not a newbie

PostPosted: Jan 21, 2002 @ 5:33pm
by ApplewoodDev
Hi Guys.

I've just signed up to this board, but will hopefully be making a lot of posts in the future. I'm a games developer of 15 years standing with a handful of stuff immininent for PPC.

I hate to start off with a request, but I'm wondering if anyone has written an arm assembler routine to translate a linear 320x240x16 software buffer onto the screen in a landscape format (both orientations).

I've had a stab at this, but it's no faster than my C implementation, as it writes a pixel at a time. If someone has code to do this job two pixels at a time, you will be in my gratitude forever.... :)

PostPosted: Jan 21, 2002 @ 5:46pm
by suchiaruzu
Hey and welcome to PocketMatrix!
What happened to Amourgeddon?

PostPosted: Jan 21, 2002 @ 6:18pm
by ApplewoodDev
Hi man, and thanks :)

Armourgeddon is complete and ready for release - it's down to the publisher now, and I understand things are all set to make a big splash.

It's been renamed now, but I'm not sure if I'm supposed to let it out, so I guess i oughtn't for the time being. Sorry for being all mysterious ! :D

PostPosted: Jan 21, 2002 @ 7:15pm
by Digby
I've done a lot of work in this area, but first let me make sure I understand what you want.

As I read your post, you want to copy from 320x240 to landscape (which is also 320x240)? Wouldn't that just be a call to memcpy?

Most people want to perform a copy/rotation operation from a 240x320 oriented back buffer in system memory to a landscape oriented 320x240 display surface. Is this what you want?

PostPosted: Jan 21, 2002 @ 7:41pm
by ApplewoodDev
It would indeed be a straight memcopy, if the target wasn't the GAPI pointer with all its x/y pitch rules.

My engine supports all 3 orientations, and makes the software backbuffer of the correct shape and size to suit,to keep everything logical.

Doing this has a few benefits, the chief one being that the only rotation anywhere in the code is at this final stage.

So, to emphasise, my landscape game is written in code that writes to a 320x240 oriented back buffer, but I need to get this onto the GAPI display either as-is or flipped for lefties.

Hope this helps...

PostPosted: Jan 22, 2002 @ 4:30am
by Digby

PostPosted: Jan 22, 2002 @ 2:53pm
by ApplewoodDev