delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/21:27:14

Message-Id: <199711150211.VAA28587@delorie.com>
From: Brett Leslie Porter <blp01 AT uow DOT edu DOT au>
Subject: Announce: ScreenFX update - now w/source!
To: djgpp-announce AT delorie DOT com
Date: Sat, 15 Nov 1997 12:53:49 +1100 (EST)
MIME-Version: 1.0

ScreenFX Version 1.01
Released 15th Nov 1997

The new version of ScreenFX has been uploaded to my home page.

Changes this version:
   *  Bug fixed in wipe to/from centre both horizontally and vertically if
      image width/height was odd.
   *  Put #ifdef __cplusplus around extern "C" { so that it would compile
      with C (some people reported problems with this, although I had none).
   *  Include source and demo program/pictures in ZIP file.

Hi there DJGPP (and Allegro) users!

Well, here's my first attempt at using Allegro, and I've gotta say, it makes
it a lot easier! Especially when writing routines like these screen effects.

ScreenFX is a set of routines to provide transitions or effects of whole
screens or just sprites (see example program for a demonstration)

The zip file is downloadable from:
   http://www.geocities.com/SiliconValley/Park/7483/
            ... in the DJGPP section

The routines support any resolution (in Allegro 2.2) and any sized bitmap.
The zero index colour is always a mask presently.

Included in the package is screenfx.h screenfx.o, and there is a seperate
test package with testprog.c, frame1.pcx, frame2.pcx and frame3.pcx. The
simplest way to compile the testprog is to type:
   gcc -O3 -m486 -o testprog.exe testprog.c screenfx.c -lallegro
If you wish to use your own pictures, just save them as PCX and rename to
frame?.pcx, or modify the testprog.c file to reference them directly. No
other manipulation should be needed (except they all need the same 256
colour palette: you can download Unipal to do this - search the DJGPP mail
archives for the address).

The source, screenfx.c is now available to everyone in the zip file. I have
just one condition for downloading this: if you modify the source at all
(bugfixes, improvements, anything), you must mail it back to me at
   blp01 AT uow DOT edu DOT au
I'd also appreciate feedback from everyone that uses it.

There are currently 17 transitions included. To use just #include screenfx.h
and use pInitialise(card, xdim, ydim) to set it up. This will call
allegro_init, pRandomize and set_gfx_mode for you. If you don't want to use
pInitialise, make sure you call pRandomize so that the bleed routine isn't
always the same. You can also use the pRandom function in your own routines.

Conditions:
   It's free and you can do what you want, but it is copyrighted, so you can't
   just rip it off. Basically same rule as Allegro. I'd appreciate some
   credit :) If you want to modify it (by obtaining the source), you should
   tell me what you intend to change/add. I may already be working on it or
   may want to include it, so just run it past me first.

Sorry about the lack of documentation and the lack of optimization, I've
been busy. Feel free to help me improve it!

Also note that this will be included as part of the upcoming release of
FuzzyTools v1.0, from FuzzySoft. Thanks to Chris for getting me going on
this in the first place.

Wish list for next version (in priority order):
   * Add Benjamin Quintero's SineFX routines after optimizing them.
   * Support Allegro WIP (well, actually, I'm waiting for v3.0)
   * Make mine faster!
   * Add more routines

Send all correspondence to blp01 AT uow DOT edu DOT au.

Hope you like them!

-- Oh yeah, That crappy logo of mine is copyright too, about 1992. Don't
pinch it (not that you'd want to! :)

Brett

History
-------

Current Release - v1.01, 15/11/97
---------------------------------

*  Bug fixed in wipe to/from centre both horizontally and vertically if image
   width/height was odd.
*  Include source in ZIP file.
*  Put #ifdef __cplusplus around extern "C" { so that it would compile
   with C (some people reported problems with this, although I had none).

Original Release - v1.00, 1/11/97
---------------------------------

*  17 transitions, no source included.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019