
|
84782 packages online
|
|
 |
|
dev/src/How2UseGfxV39.lha |
|
No screenshot available
|
|
Now part 2 of the demo is also included into this archive and it is
~800KB in size :)
This archive includes some code that shows how you can
use systemfriendly BitBlits. It shows how palette sharing is
handled and how friendbitmaps can be used.
The main goal is to show that it is possible to support both
native ECS/AGA and gfxboards with image blitting stuff and
how you can check out what is the best way to blit images.
The demo opens a window on the public screen (Workbench)
allocates pens for a red, a green and a blue shaded ball.
Also a background pen is allocated and the color is cycled throu
a color table. The balls are moved around the window.
It runs on any displaymode, independend if gfx board or not or
what color depth you use (though I haven't tried 24 bit modes yet).
Within a talk to another programmer I found that there is some
need on information on this topic. So I thought I should release
such an archive. Feel free to do what ever you want with this archive
(except selling it and making money:)
As this example could also to be used to write board friendly games,
it is dedicated to these people out there who are still thinking
palette sharing etc. is useless...why can't I have white backgrounds
on some text manipulation programs ?
New: Chunky Friend Allocation has been fixed (BMF_MINPLANES)
30.11.96 Minor changes to the code (inner sizes are calculated right)
Please, also see the ReadMe included in this archive.
-----------------------------------------------------------------------------
Part 2 Readme:
I have now included the part 2 into this archive, also the Image is available
in source code. I also fixed the rastport bug I had in part 2 before ,
and also I forgot to free the background in the last release...
(what a shame, I know =:~/ )
This archive contains some example material how scrolling
bitmaps could be handled. It is just an example how things
could be done, because I am bretty sure, none of you will
use ScollLayers() in a SuperBitmap window for a real application.
But with a fast board (e.g. a PiccoloSD64) and a good driver
(e.g. EGSPlus :) it shows what could be done if the Amiga
would have the right chips.
This demo opens a 320x256 window on any screen (currently a
WB clone or the WB itself) with a 640x512 custom superbitmap
attached to it. The backdrop is a 256 color image (640x512)
which is scrolled thru the window. On top of it a green ball is
jumping around. Both images where created in 24 bit and color
reduced to 256 colors. The real colors are calculated on startup
using a shared palette. It looks best when run on a 256 color
screen (but will reduce the colors if less). It should run on any
board (ECS/AGA too) but isn't really useable on native amiga chips...
I haven't tried CyberGraphics yet (but I should) but I think it
would run more smoothly on EGS systems (with EGSPlus) since
the SuperBitMap is held in boardmemory in this case which makes
the scrolling much better :)
It does no buffer blitting yet (e.g. double buffer, refresh buffer or such).
And it does not use an custom scrolling code, which would sure
help for slow boards...(e.g. a delta frame scrolling would be a lot
faster).
But maybe you find some things what would be intuitiv for your ideas.
So check it out ... and if you have a fast EGS board enjoy :)
PS.: I haven't either included the Backdground image nor the Image source
since this have about 1.2 MB...the object code should be ok if
you want to recompile it.
The colortableformat is a modified Amiga Colortable format
and looks like this:
struct Colors
{
ULONG red,green,blue; // left justified 32 bits
} colors[256];
all other things should be clear from the source code. You should be
able to hook another image in ...
---
Jürgen Schober
Graz · Austria
e-mail: point@sbox.tu-graz.ac.at (private)
jschober@campusart.com (business)
WWW: http://www.sbox.tu-graz.ac.at/home/point/Welcome.html
http://www.pointdesign.campusart.com/
|
Contents of dev/src/How2UseGfxV39.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 10256 21480 47.7% -lh5- 21f2 Dec 2 1996 How2UseGfxV39/ball
[generic] 7439 30273 24.6% -lh5- 207b Dec 1 1996 How2UseGfxV39/ball.c
[generic] 1889 4258 44.4% -lh5- 5400 Nov 30 1996 How2UseGfxV39/ball.c.info
[generic] 670 1007 66.5% -lh5- 3148 Nov 30 1996 How2UseGfxV39/ball.info
[generic] 465 1201 38.7% -lh5- aa4f Nov 27 1996 How2UseGfxV39/ball.¶
[generic] 1416 4042 35.0% -lh5- 4549 Nov 30 1996 How2UseGfxV39/ball.¶.info
[generic] 107 179 59.8% -lh5- 7279 Dec 2 1996 How2UseGfxV39/ball_rev.h
[generic] 120 221 54.3% -lh5- a2ff Dec 2 1996 How2UseGfxV39/ball_rev.i
[generic] 4 4 100.0% -lh0- a58c Dec 2 1996 How2UseGfxV39/ball_rev.rev
[generic] 638 1992 32.0% -lh5- c7f4 Nov 22 1996 How2UseGfxV39/BallMask.iff
[generic] 1194 1752 68.2% -lh5- 4e24 Nov 30 1996 How2UseGfxV39/BallMask.iff.info
[generic] 1295 13095 9.9% -lh5- d33c Nov 27 1996 How2UseGfxV39/BallMaske.h
[generic] 2030 4263 47.6% -lh5- 2d46 Nov 30 1996 How2UseGfxV39/BallMaske.h.info
[generic] 1050 4022 26.1% -lh5- dbed Nov 27 1996 How2UseGfxV39/BlueBall.h
[generic] 1430 4256 33.6% -lh5- 968a Nov 30 1996 How2UseGfxV39/BlueBall.h.info
[generic] 1826 14908 12.2% -lh5- a0e8 Nov 22 1996 How2UseGfxV39/BlueBall.iff24
[generic] 1199 1752 68.4% -lh5- d67f Nov 30 1996 How2UseGfxV39/BlueBall.iff24.info
[generic] 1396 2066 67.6% -lh5- 42eb Nov 22 1996 How2UseGfxV39/BlueBall8.iff
[generic] 1197 1752 68.3% -lh5- bc03 Nov 30 1996 How2UseGfxV39/BlueBall8.iff.info
[generic] 689 1392 49.5% -lh5- 6d16 Nov 30 1996 How2UseGfxV39/Build.info
[generic] 282 328 86.0% -lh5- 43a8 Nov 22 1996 How2UseGfxV39/copyp2c.o
[generic] 1711 2632 65.0% -lh5- a81a Nov 22 1996 How2UseGfxV39/Debug
[generic] 775 1420 54.6% -lh5- b4f1 Nov 30 1996 How2UseGfxV39/Debug.info
[generic] 742 1436 51.7% -lh5- 2a29 Nov 30 1996 How2UseGfxV39/Find.info
[generic] 1342 4087 32.8% -lh5- b422 Nov 30 1996 How2UseGfxV39/GreenBall.h
[generic] 1573 4256 37.0% -lh5- a864 Nov 30 1996 How2UseGfxV39/GreenBall.h.info
[generic] 2433 15684 15.5% -lh5- a2d8 Nov 22 1996 How2UseGfxV39/GreenBall.iff24
[generic] 1195 1752 68.2% -lh5- eb72 Nov 30 1996 How2UseGfxV39/GreenBall.iff24.info
[generic] 1569 2088 75.1% -lh5- c707 Nov 22 1996 How2UseGfxV39/GreenBall8.iff
[generic] 1198 1752 68.4% -lh5- 9529 Nov 30 1996 How2UseGfxV39/GreenBall8.iff.info
[generic] 1914 4019 47.6% -lh5- 3210 Nov 25 1996 How2UseGfxV39/ReadMe
[generic] 763 1154 66.1% -lh5- 4788 Nov 30 1996 How2UseGfxV39/ReadMe.info
[generic] 1166 4016 29.0% -lh5- 3e98 Nov 27 1996 How2UseGfxV39/RedBall.h
[generic] 1218 4022 30.3% -lh5- a501 Nov 22 1996 How2UseGfxV39/RedBall.h.bak
[generic] 2047 4256 48.1% -lh5- 5b3b Nov 30 1996 How2UseGfxV39/RedBall.h.info
[generic] 2083 15782 13.2% -lh5- d92b Nov 22 1996 How2UseGfxV39/RedBall.iff24
[generic] 1198 1752 68.4% -lh5- 54a1 Nov 30 1996 How2UseGfxV39/RedBall.iff24.info
[generic] 1499 2080 72.1% -lh5- 1af0 Nov 22 1996 How2UseGfxV39/RedBall8.iff
[generic] 1196 1752 68.3% -lh5- 211f Nov 30 1996 How2UseGfxV39/RedBall8.iff.info
[generic] 81 113 71.7% -lh5- f059 Dec 2 1996 How2UseGfxV39/SCOPTIONS
[generic] 1748 3147 55.5% -lh5- 9e3b Nov 30 1996 How2UseGfxV39/SCoptions.info
[generic] 369836 1197099 30.9% -lh5- 18ce Dec 1 1996 How2UseGfxV39/ScrollGround.c
[generic] 1140 1608 70.9% -lh5- 2e68 Nov 30 1996 How2UseGfxV39/ScrollGround.c.info
[generic] 428 1010 42.4% -lh5- 6584 Dec 1 1996 How2UseGfxV39/smakefile
[generic] 996 1612 61.8% -lh5- 7bff Nov 30 1996 How2UseGfxV39/smakefile.info
[generic] 828 8431 9.8% -lh5- cb01 Nov 23 1996 How2UseGfxV39/Spectrum.h
[generic] 1743 4255 41.0% -lh5- e7bd Nov 30 1996 How2UseGfxV39/Spectrum.h.info
[generic] 265691 350996 75.7% -lh5- 92d3 Dec 2 1996 How2UseGfxV39/SuperScroll
[generic] 8688 37094 23.4% -lh5- ba6f Dec 2 1996 How2UseGfxV39/SuperScroll.c
[generic] 1886 4258 44.3% -lh5- 6cde Nov 30 1996 How2UseGfxV39/SuperScroll.c.info
[generic] 667 1007 66.2% -lh5- 3f67 Nov 30 1996 How2UseGfxV39/SuperScroll.info
[generic] 115 200 57.5% -lh5- e909 Dec 2 1996 How2UseGfxV39/SuperScroll_rev.h
[generic] 128 242 52.9% -lh5- f16f Dec 2 1996 How2UseGfxV39/SuperScroll_rev.i
[generic] 4 4 100.0% -lh0- f4cc Dec 2 1996 How2UseGfxV39/SuperScroll_rev.rev
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 54 files 716193 1799259 39.8% Dec 7 1996
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |