04 April 2007, 15:37 | #1 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
AGA programming with C examples/tutorials?
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. |
04 April 2007, 15:53 | #2 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
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...
|
04 April 2007, 15:58 | #3 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
EXCELLENT! thanks heaps. that would be absolutely perfect!
|
04 April 2007, 16:12 | #4 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
now compiling a various ammount for your purusal.
|
04 April 2007, 16:26 | #5 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
if you have anything in copper with AGA that would be great too, if not asking too much
|
04 April 2007, 17:27 | #6 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
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 Last edited by Zetr0; 10 April 2010 at 19:56. |
04 April 2007, 17:29 | #7 | |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Quote:
|
|
04 April 2007, 17:30 | #8 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
@Bipstah
uh? whos ken? are you gonnna tell me or do i have to take the tablets too ? |
04 April 2007, 17:31 | #9 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
barbies ex...
|
04 April 2007, 17:33 | #10 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
ahhhh......
i see....... *opens jar.... takes 4 pills....*... hmmm perhaps i should of put butchered instead.... |
04 April 2007, 18:12 | #11 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
@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? Last edited by Calgor; 04 April 2007 at 18:31. Reason: Noticed scr.c |
04 April 2007, 18:37 | #12 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
Okay, found the answer thanks to the good old EOB AGA project!!
LoadRGB32! http://eab.abime.net/showpost.php?p=...&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? |
04 April 2007, 18:43 | #13 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
|
04 April 2007, 18:53 | #14 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
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? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boot block examples? | h0ffman | Coders. General | 3 | 04 March 2011 16:44 |
Vector Tutorials | h0ffman | Coders. General | 7 | 24 January 2011 18:16 |
AMIGA Programming Using C Tutorials | Amiga Forever | Coders. Tutorials | 4 | 22 November 2010 23:02 |
Amiga - DOS versions - give me some examples | laffer | Retrogaming General Discussion | 77 | 18 January 2008 17:09 |
Plasma examples anyone? | jobro | Coders. General | 5 | 27 November 2005 17:25 |
|
|