log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
PhlamethrowerHot 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
monkeyson2Please 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
PhlamethrowerHot 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