This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Suggested feature


Postby Johan » Sep 2, 2003 @ 9:22am

Frank: I still don't get the issue here.. :)

I downloaded PF to see the differences, and this is how you do it...

PocketFrog Blit Rotated
void BlitRotated( int destX, int destY, float angle, const Surface* source );

GapiDraw Blit Rotated
Just call CGapiSurface::Blt. Use rotationcenter.x = destX, rotationcenter.y=destY, rotationangle=angle. Use destrect=NULL (entire surface).

PocketFrog Blit Stretch
void BlitStretch( const Rect& dest, const Surface* source, const Rect* srcRect = 0 );

GapiDraw Blit Stretch
Just call CGapiSurface::Blt. Use destrect=dest. srcrect=srcRect,

Maybe there were some changes in PocketFrog 0.7, but you can very easily achieve exactly the same result in GapiDraw as you do in PF.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Johan » Sep 2, 2003 @ 10:06am

Uff .. Somehow my reply got deleted..

I downloaded PF 0.6 and checked the syntax. Unless something huge has happened in 0.7 you can very easily do exactly the same things in GapiDraw...

PF Blit Rotate
void BlitRotated( int destX, int destY, float angle, const Surface* source );

GapiDraw Blt Rotate
Simply call CGapiSurface::Blt. Set rotationcenter.x = "destX". rotationcenter.y = "destY". set rotationangle = "angle". Set destination rectangle to entire surface. That's basically it...

PF Blit Stretch
void BlitStretch( const Rect& dest, const Surface* source, const Rect* srcRect = 0 );

GapiDraw Blt Stretch
Call CGapiSurface::Blt. Set destination rectangle to "dest". Set source surface to "source". Set source rect to "srcRect". That's basically it...

Frank: What is it that I am missing?
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Johan » Sep 2, 2003 @ 10:07am

Funny, it never got deleted.. Strange, here's a bug in the forums.. Delete this and the above post and the forum will not display the post at the top of this page... :)
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby fzammetti » Sep 2, 2003 @ 2:09pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Johan » Sep 2, 2003 @ 2:23pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Pejo Software - Per » Sep 2, 2003 @ 3:20pm

Then it works as I said! I was starting to think I was crazy! Please dont't do this to me again :wink:.
Frank, it was strange that you could't get my sample working. I only compiled for ARM so if you would like to test it on some other platform you would need to compile it.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Johan » Sep 2, 2003 @ 3:21pm

PeJo: Unfortunately your sample won't work in 2.04 due to the Blt bug.. It will fail on most PDAs and also in most desktop orientations other than NORMAL.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby fzammetti » Sep 2, 2003 @ 3:51pm

Very good Johan, then it does work as in PF as well, which is fantastic. That probably should be stated in the docs though (I just looked through, and it doesn't seem to be). From reading the docs, I wouldn't have thought it would work that way, I thought the percentage was my only option.

Sorry about driving you nuts Pejo. The whole problem it seems is that I was trying to run it under 2.04 (because I don't currently have an ARM-based device, and I never run anything in the emulator, and I don't have 2.03 installed, so my only real choice was a quick "upgrade" to 2.04 of your code, which I guess is why it didn't seem to work for me). Thanks for the effort though :)
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Previous

Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum