Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Copy Memory

Author
Message
Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 22nd Mar 2009 16:21
Hi All,

Is there a DarkGDK equivalent of the DBPro command COPY MEMORY? I've searched around, looked in the headers but can't find anything. If not does anyone have a code snippet on how to emulate the command?

Cheers

Of all the things I've lost .. I miss my marbles most of all.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 22nd Mar 2009 17:21
Is this the one you are looking for?



Dark Physics makes any hot drink go cold.
Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 22nd Mar 2009 18:55
Nope.

I'm trying to copy from a memblock to the screen buffer. I can get the start of screen memory with dbGetPixelsPointer(). I'm thinking I may have to use the standard library function memcpy() but I haven't had any success yet.

Of all the things I've lost .. I miss my marbles most of all.
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Mar 2009 19:07
Go with memcpy, as the copy memory command in DBPro probably uses the exact same function itself.

Login to post a reply

Server time is: 2024-09-30 21:21:09
Your offset time is: 2024-09-30 21:21:09