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.

Newcomers DBPro Corner / Saving out own file formats / saving type variables

Author
Message
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 4th Apr 2003 23:51
I'm developing various file formats for things like Matrices, 3d objects, particles, sounds and lights and environments etc and within the programs I've got some fairly large and convoluted type variables...

Stupid eg. TYPE Tp_3dOject
Name AS STRING
XPos AS FLOAT
etc etc
ENDTYPE

Do I really have the break all the data from these Type variables down into a Memblock to be able to write to a file? Or could I write them in as an array eg. ABC(0) AS Tp_3dObject? :-s

Or to put it another way, what's the best way of saving out your own file formats??? Anyone? :-s
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Apr 2003 00:49
Well, you can convert them to memblocks to write them, or you can use write float/write dword etc to do it - either way, you have to do it yourself.

Login to post a reply

Server time is: 2024-09-20 03:42:01
Your offset time is: 2024-09-20 03:42:01