Acorn Arcade forums: Programming: Loading draw files into a C program
|
Loading draw files into a C program |
|
Andrew Ellis (15:53 9/10/2003) Phlamethrower (16:21 9/10/2003) Andrew Ellis (20:47 9/10/2003) Phlamethrower (12:18 13/10/2003) monkeyson2 (10:18 10/10/2003)
|
|
Andrew Ellis |
Message #47106, posted by Andrew Ellis at 15:53, 9/10/2003 |
Member
Posts: 43
|
Hi,
Does anyone know where I could find some example code for loading drawfiles into a C program, and possibly an example on how to load WMFs/EMFs into C as well?
I would like to write a decent converter app to convert between these files since the converters I currently use leave a lot to be desired! ________ |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #47107, posted by Phlamethrower at 16:21, 9/10/2003, in reply to message #47106 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
I've got some code to save drawfiles (available if you want), but not to load any.
Having a look through the PRMs/StrongHelp manuals could be a good idea - they're what I used, and the drawfile structure isn't too bad once you get to know it. |
|
[ Log in to reply ] |
|
Andrew Ellis |
Message #47120, posted by Andrew Ellis at 20:47, 9/10/2003, in reply to message #47107 |
Member
Posts: 43
|
Thankyou that would be very useful. How do I go about obtaining it? ________ |
|
[ Log in to reply ] |
|
Phil Mellor |
Message #47122, posted by monkeyson2 at 10:18, 10/10/2003, in reply to message #47106 |
Please don't let them make me be a monkey butler
Posts: 12380
|
Does anyone know where I could find some example code for loading drawfiles into a C program, and possibly an example on how to load WMFs/EMFs into C as well?
I would like to write a decent converter app to convert between these files since the converters I currently use leave a lot to be desired! You may be interested in this:
http://www.si.umich.edu/CAMILEON/reports/mor/index.html http://www.si.umich.edu/CAMILEON/reports/migreq.pdf
[Edited by monkeyson2 at 11:23, 10/10/2003] |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #47168, posted by Phlamethrower at 12:18, 13/10/2003, in reply to message #47120 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Thankyou that would be very useful. How do I go about obtaining it? There's a part of my Befunge interpreter which lets programs produce simple line based turtle graphics. The file you'll want is befsrc.bef.sem.cc.turt from this archive, particularly the turt_i function.
The code isn't very well documented though, so having a copy of some Draw File specs handy might help. And don't worry about the C++ file extension; the code is practically plain C.
The Befunge interpreter itself is available here should you be interested (e.g. documentation about what the code does). |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Loading draw files into a C program |