Welcome, Guest. Please login or register.

Author Topic: Load and display iff ilbm with C?  (Read 3349 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
Load and display iff ilbm with C?
« on: April 21, 2009, 01:33:09 PM »
Hi,

I've never learnt how to do this, does anyone know of a good tutorial that I can have a go at?

Cheers,
Marc
"...but some animals are more equal than others."
 

Offline rzookol

  • Jr. Member
  • **
  • Join Date: Jul 2006
  • Posts: 77
    • Show only replies by rzookol
Re: Load and display iff ilbm with C?
« Reply #1 on: April 21, 2009, 01:52:43 PM »
 

Offline AJCopland

Re: Load and display iff ilbm with C?
« Reply #2 on: April 21, 2009, 01:55:16 PM »
Almost any image loader tutorial should cover the basics for something like BMP or TGA. Then you just need to replace the parsing of the TGA file with something suitable for the iff/ilbm image formats.

You can probably find a description of the image formats somewhere WotSits formats (i category).

You could also try taking a look at the source for decoding those formats used in programs like the Gimp or Asset Importer.

Andy

EDIT: or rzookol could post that awesome that tells you just about everything you'll need :lol:
Be Positive towards the Amiga community!
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Load and display iff ilbm with C?
« Reply #3 on: April 21, 2009, 03:58:38 PM »
If you don't need something cross-platform, I'd suggest using IFFParse.library in AmigaOS 2+ or datatypes.library in AmigaOS 3+.
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: Load and display iff ilbm with C?
« Reply #4 on: April 21, 2009, 05:22:57 PM »
Reading up about this.  This is now the way we are finnally going with XML
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Load and display iff ilbm with C?
« Reply #5 on: April 21, 2009, 06:26:27 PM »
Quote
IFFParse.library in AmigaOS 2+

iffparse.library doesn't know anything about ILBM though, so you still need to have the ILBM specific code around.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Load and display iff ilbm with C?
« Reply #6 on: April 21, 2009, 07:32:59 PM »
I use iff.library
It is fast and simple and it can load to interleaved or noninterleaved bitmaps.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
Re: Load and display iff ilbm with C?
« Reply #7 on: April 22, 2009, 12:19:13 PM »
Thank you all for your replies,

I've got the Rkms and I'm working my way through the IFF specs, I guess I was trying to take a shortcut  :-D

"...but some animals are more equal than others."