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

Copy a Surface


Copy a Surface

Postby Pam » Mar 5, 2004 @ 2:43pm

Thierry,

Would it be possible to have a function would create an exact copy of a Surface, same width, height, and pitch, with an option to copy the contents also?

In other words, create a copy of the Back Surface (or any surface) so that memcpy can be used.

Thanks,

Pam
All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Kzinti » Mar 5, 2004 @ 5:59pm

Are we talking PF or PHAL here?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Presto » Mar 5, 2004 @ 6:07pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Pam » Mar 5, 2004 @ 6:08pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Kzinti » Mar 5, 2004 @ 6:39pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Pam » Mar 5, 2004 @ 6:44pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Kzinti » Mar 5, 2004 @ 7:20pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Pam » Mar 5, 2004 @ 7:27pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Kzinti » Mar 6, 2004 @ 3:02am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Pam » Mar 6, 2004 @ 1:09pm

Well the idea was to create an effect, like the water or fire effects that typically use two buffers. You loop through one buffer to figure out what goes in the second buffer, Blit the second buffer, then swap and do the whole thing again.

Of course one wouldn't often use the backbuffer for this, only if it was a fullscreen effect.

The other thread about the 3x3 matrix blur got me thinking about it.

Pam
All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Kzinti » Mar 7, 2004 @ 3:20am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Pam » Mar 7, 2004 @ 1:31pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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