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.

DarkBASIC Professional Discussion / Memblocks in other languages

Author
Message
New Coder Skilless
13
Years of Service
User Offline
Joined: 4th Oct 2012
Location:
Posted: 22nd Apr 2014 14:19
Hi guys

I've made a map editor in DBPro which saves some data as memblocks (mainly mesh data) to save space. I'm working on a new game in C++ but wanted to know if there's any way of using said memblocks in C++, rather than re-writing the way it saves data?
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Apr 2014 16:59
A memblock is really just like any binary file. If you know the structure of your memblock then you can read it in C as if it were a file. You can create a struct to match the memblock.

Login to post a reply

Server time is: 2026-07-06 01:49:50
Your offset time is: 2026-07-06 01:49:50