greenwoode@merrimack.edu (Ed Greenwood) (06/05/91)
I currently have two problems to solve. First, how do you load in and display an IFF picture using C? Also, is there a way to "blank" a screen in C? The program I am writing takes a few seconds to draw everything on the screen, and I would like to hide this from the user. Any suggestions or comments would be greatly appreciated. Thanks, Ed Greenwood
ryan@amix.commodore.com (Ryan Sheftel) (06/07/91)
greenwoode@merrimack.edu (Ed Greenwood) writes: > > I currently have two problems to solve. First, how do you load in and > display an IFF picture using C? Also, is there a way to "blank" a screen > in C? The program I am writing takes a few seconds to draw everything on > the screen, and I would like to hide this from the user. Any suggestions > or comments would be greatly appreciated. 1) Get the "iff.library". This is a shared library that has all the EAIFF85 commands and more. Loading an IFF pic is one line. Comes with example source and all. 2) If you want to hide updates form the user. Do this. Open a one ----- Open you window to the back, and then when you are done drawing to it, bring it to the front. ---------- Ryan Sheftel UUCP: uunet!cbmvax!amix!undrground!ryan Internet: undrground!ryan@amix.commodore.com
ken@cbmvax.commodore.com (Ken Farinsky - CATS) (06/07/91)
In article <wVN636w164w@undrground.UUCP> undrground!ryan@amix.commodore.com (Ryan Sheftel) writes: >greenwoode@merrimack.edu (Ed Greenwood) writes: >> ...is there a way to "blank" a screen... Try setting all the colors to black while you load the picture (assuming that you "own" the screen), then restore the proper colors after the picture is loaded. You can also move/open the screen behind. -- Ken Farinsky - CATS - Commodore Business Machines
carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) (06/08/91)
In article <wVN636w164w@undrground.UUCP> undrground!ryan@amix.commodore.com (Ryan Sheftel) writes: >greenwoode@merrimack.edu (Ed Greenwood) writes: > >> >> I currently have two problems to solve. First, how do you load in and >> display an IFF picture using C? Also, is there a way to "blank" a screen >> in C? The program I am writing takes a few seconds to draw everything on >> the screen, and I would like to hide this from the user. Any suggestions >> or comments would be greatly appreciated. The EA_IFF Fish Disk (185) contains the original EA C code modules for loading ILBM's. There are a number of modules you must link with. I am currently finishing up new modules which use iffparse.library, and are 1.3 compatible but take advantage of 2.0. Or you could use a public domain iff library as suggested. For blanking a screen, if it is not HAM or HALFBRITE you can just LoadRGB4() an all-one-color colortable. Or open the screen with the SCREENBEHIND flag set, and do ScreenToFront(screen) when you are done loading/drawing. -- ========================================================================== Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn carolyn@commodore.com Programmers do it a little bit better. ==========================================================================