English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 04 April 2007, 15:37   #1
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
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.
Calgor is offline  
Old 04 April 2007, 15:53   #2
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
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...
Zetr0 is offline  
Old 04 April 2007, 15:58   #3
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
Join Date: Sep 2005
Location: Anrea
Posts: 999
EXCELLENT! thanks heaps. that would be absolutely perfect!
Calgor is offline  
Old 04 April 2007, 16:12   #4
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
now compiling a various ammount for your purusal.
Zetr0 is offline  
Old 04 April 2007, 16:26   #5
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
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
Calgor is offline  
Old 04 April 2007, 17:27   #6
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
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.
Zetr0 is offline  
Old 04 April 2007, 17:29   #7
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Quote:
Originally Posted by Zetr0
the source mainly barberises gad tools a fair old bit ;D
goiod job Ken was dumped or he'd be jealous
BippyM is offline  
Old 04 April 2007, 17:30   #8
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
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 ?
Zetr0 is offline  
Old 04 April 2007, 17:31   #9
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
barbies ex...
BippyM is offline  
Old 04 April 2007, 17:33   #10
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
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....
Zetr0 is offline  
Old 04 April 2007, 18:12   #11
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
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
Calgor is offline  
Old 04 April 2007, 18:37   #12
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
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?
Calgor is offline  
Old 04 April 2007, 18:43   #13
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
http://pub.elowar.com/AmigaDev/
BippyM is offline  
Old 04 April 2007, 18:53   #14
Calgor
(Amigas && Amigos)++
 
Calgor's Avatar
 
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?
Calgor is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14517 seconds with 13 queries