home *** CD-ROM | disk | FTP | other *** search
- Path: news.helsinki.fi!kruuna!tksuoran
- From: tksuoran@cc.Helsinki.FI (Timo K Suoranta)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Getting lotsa small blits into action in C
- Date: 8 Jan 1996 21:52:06 GMT
- Organization: University of Helsinki
- Message-ID: <4cs3m6$7l5@oravannahka.Helsinki.FI>
- NNTP-Posting-Host: kruuna.helsinki.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [version 1.2 PL0]
-
- I am converting my Blitz program into C. This proggy involves heavy
- usage of little grfx pieces to be blitted around. In Blitz they are
- called Shapes.
-
- The first problem is: How do I get them into memory? Should I include
- them, or load from disk?
-
- I fear that I need to convert my grfx into something else (binary) than
- an IFF piccy. In Blitz I wrote a small proggy to grab these shapes from
- pic and save them in Blitz Shapes file. I will _not_ be able to use
- simple pic->binary converter as I have all pieces in one (ok, two) pics,
- and I need two grab several sized pieces from it.
-
- So I am about to write own IFF loader and converter. Is IFF loader easy
- to do? How should I do the loading, and where can I get examples? What
- are the exact specs for the format which I could easily load in the main
- proggy? How should I load andstore the grfx in memory?
-
- Idea of the loader is that I can change the graohics and only thing I
- need to do is to run grabber. I am also able to add/remove or change
- size of the grfx easily.
-
- Then.. What blitting routines should I use? Should I do blitting into
- screen bitmap or window, or do is doing both alternatives easy? Id like
- my proggy to support grfxcards and maybe even run it in WB window.
-
- Most of my shapes have fixed size and fixed mask. I need the mask too,
- because my shapes are hexagons, not tiles. I also need selecting of
- bitmaps which to blit and which not to blit - this is together with
- shapes with individual masks.
-
- I would also like to get some blitting example sources, with the extra
- mentioned above.
-
-
- Thank You!
-
- --
-
- -Timo Suoranta, Helsinki, Finland.
-