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 / before i do anything stupid (question about memblocks)

Author
Message
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 29th Jun 2009 23:13
is it possible to put integer arrays into a memblock? i have a 336 long array of int's 1-6 that has a large effect on the visual effects in my game, and i need to be able to store different variations on it. declaring individual bytes for each number seems like a poor option due to the array's length.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 30th Jun 2009 00:14
Make a memblock the size of your array*4 (an integer is 4 bytes) then use dbWriteMemblockDword for each integer in the array, increasing the offset into the memblock by 4 each time.

Login to post a reply

Server time is: 2024-10-01 05:55:31
Your offset time is: 2024-10-01 05:55:31