View Full Version : AGA programming with C examples/tutorials?
Calgor
04 April 2007, 15:37
Wondering if anyone has any code samples or tutorials for this?
In particular I am interested in the different screen modes and setting the colour palette, then using those colours in the various graphics and intuition library routines, and loading AGA IFF picture files (saved using DPaintV) into my program.
Found a few asm examples, but they don't really help with the C code structures.
Zetr0
04 April 2007, 15:53
I have some old programs i wrote a while back that make *system legal* custom screens if ya wanna have a lookie... there in C. i might have some IFF gfx loading code somewhere too...
Calgor
04 April 2007, 15:58
EXCELLENT! thanks heaps. that would be absolutely perfect! :great
Zetr0
04 April 2007, 16:12
now compiling a various ammount for your purusal.
Calgor
04 April 2007, 16:26
if you have anything in copper with AGA that would be great too, if not asking too much :)
Zetr0
04 April 2007, 17:27
this is opening custom screens and using custom pallets etc.
it may help in your developments..
the source mainly barberises gad tools a fair old bit ;D
bippym
04 April 2007, 17:29
the source mainly barberises gad tools a fair old bit ;D
goiod job Ken was dumped or he'd be jealous :nuts:D
Zetr0
04 April 2007, 17:30
@Bipstah
uh? whos ken? are you gonnna tell me or do i have to take the tablets too ? :D
bippym
04 April 2007, 17:31
barbies ex...
Zetr0
04 April 2007, 17:33
ahhhh......
i see.......
*opens jar.... takes 4 pills....*...
hmmm perhaps i should of put butchered instead....
Calgor
04 April 2007, 18:12
@Zetr0
From what I see, 1 of the examples uses 6 bit planes (DisplayIBL64L.c). I think it might be AGA, but the file defining the array backwall_ctab which defines the colour palette loaded by LoadRGB4() (backwall.c) is not included.
I take it LoadRGB4 is used to set the colour palette for a 64 colour (not EHB) screen in this case. Can you please supply the backwall.c file so I can see how the new 24-bit palette is referenced?
In OCS/ECS, I understand you had from 0x0000 (black) to 0x0fff (white) in the colour table array for the 12-bit palette. This corresponds to 0000 RRRR GGGG BBBB.
Thanks!
Edit: Noticed that scr.c defines the 64 colours, but it still only appears to use a 12-bit palette (variable ctab0). Do you know how to use the 24-bit palette?
Calgor
04 April 2007, 18:37
Okay, found the answer thanks to the good old EOB AGA project!!
LoadRGB32!
http://eab.abime.net/showpost.php?p=256058&postcount=105
So does anyone know where to get the specs for the KS3.1 libraries since there are no RKRM books? and no programming books seem to cover them?
bippym
04 April 2007, 18:43
http://pub.elowar.com/AmigaDev/
Calgor
04 April 2007, 18:53
awesome thanks it has the answer!
It says the includes and autodocs are for OS3.5, which is very helpful as I am sure it is mostly the same.
Is there also one for KS3.1, as that is my target OS?
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.