|
-
Thanks Unknownguy.
This could actually work. Especially if I want to clear my array to 0.
Even if I use char(byte) I can still set every byte to 0, thereby clearing all my pixels to a 100% transparent black.
Will definitely work for a clear to transparent black, which is mainly what I use.
Will do my own tests with this function.
Wonder what that function actually does though. Accesses some even low level commands than C?
Edit
--------
Just did a test and the memset is actually drastically slowing down my program. And it's setting a pretty large chunk of memory. A 250000 long int array. According to the doc testing, the larger the array, the more speed gained when using memset, instead of a for loop. But I'm getting really slow results.
-TariqM
Last edited by tariqm; 01-04-2009 at 09:58 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|