Page 1 of 1

copying memory

PostPosted: Nov 28, 2002 @ 11:59am
by frazzled
i have a unsigned short buffer of 320*240 and would like to cope into vid mem,can anyone tell me if memcpy could be used for this.

PostPosted: Nov 28, 2002 @ 12:44pm
by Guest
Yes it could.

PostPosted: Nov 28, 2002 @ 5:33pm
by Malmer
Just make sure you copy 320 * 240 * 2, since a unsigned short is two bytes.