English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 03 March 2009, 22:16   #1
doble07
AmiEmulators coder
doble07's Avatar
 
Join Date: Dec 2008
Location: Barcelona / Spain
Age: 46
Posts: 40
Do you know RTG autodocs or tutorials?

Hi all!

I am searching information on how to code for RTG (graphics cards, using "rtg.library") in C/C++ or ASM.

Anyone have got information about it?

Thanks

Juan
doble07 is offline  
Old 04 March 2009, 09:00   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,215
rtg.library is an internal part of Picasso96. The docs are not available for the public.

This means that you cannot write your own graphics cards drivers. If you rather want to use RTG functions in your program, the library to use is Picasso96API.library. The docs are available here.

The better choice for RTG programs is Cybergraphics because these programs can run on both, CGX and P96. Programs written for P96 can only run on machines where P96 is installed.

CGX docs are available here.
thomas is offline  
Old 04 March 2009, 21:03   #3
doble07
AmiEmulators coder
doble07's Avatar
 
Join Date: Dec 2008
Location: Barcelona / Spain
Age: 46
Posts: 40
Thanks for the info Thomas!
doble07 is offline  
Old 14 December 2020, 00:58   #4
Warty
Registered User

 
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 95
Resurrecting this thread a bit...

I'm working on an app that I want to work on OCS/ECS/AGA 68020/68030/68040 (and ideally 68000 if I can squeeze the performance out), but also on Amigas with RTG cards.

Historical article:
http://www.lysator.liu.se/amiga/al/guide/al104/gfx.HTML

Cleaned up version of the CyberGraphics API Thomas mentions above (attached)

If you were developing with a target of 68K, for AmigaOS 3.2 and above, would you still aim for the cybergraphics library? Or would you look more at the P96 API? With Individual Computers acquiring the rights to the p96 code, and actually making updates, maybe that's a better bet?

Link to dev info from P96: http://wiki.icomp.de/w/images/e/e9/Develop.lha

I've just looked over the cybergraphics API, and just downloaded the P96 API. At first glance, they look similar in overall concept, but of course different calls.

Edit: another post from EAB with more information:
http://eab.abime.net/showthread.php?t=81379
Attached Files
File Type: pdf CyberGraphics.library API Documentation.pdf (311.1 KB, 52 views)

Last edited by Warty; 14 December 2020 at 08:06. Reason: Found another relevant post on EAB
Warty is offline  
Old 14 December 2020, 09:29   #5
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,215
If your main target is native graphics and it should only run on gfx cards, too, then you should stay away from RTG. Concentrate on graphics.library functions and just follow some easy rules.

Use OpenScreen to get your drawing area.
Use AllocBitMap to get some off-screen bitmaps.
Do not poke into bitmaps but only use graphics.library blit and draw functions.
Use datatypes to load graphics.

Leave it to the RTG drivers to adapt those calls to gfx cards.
thomas is offline  
Old 14 December 2020, 17:17   #6
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 1,058
In my opinion the Cybergraphics API is still the defacto standard. There are probably cards that P96 does not support so what Thomas wrote in 2009 still stands.
nogginthenog is offline  
Old 14 December 2020, 18:50   #7
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 1,042
During 3.1.4 development, we nagged Frank multiple times to update it, but this was a dead end... I wouldn't really bother with it anymore. I am neither aware that there are any cards left P96 does not support anymore, the gap is closed.

Concerning the API: In almost all cases, you are good with the graphics.library. If you need direct access to true color or high-color functions, I would now go with the Picasso96API.library. This will be updated if needed and there is still support for it.
Thomas Richter is offline  
Old 14 December 2020, 20:39   #8
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 1,058
Good point ThoR. I moved from CGFX to P96 simply because P96 is still developed.
nogginthenog is offline  
Old 14 December 2020, 21:11   #9
kamelito
Zone Friend

kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,320
@Thor
Is there plan to merge Picasso96 into graphics.library like what have been done in AmigaOS 4?
kamelito is offline  
Old 15 December 2020, 08:36   #10
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 1,042
Quote:
Originally Posted by kamelito View Post
@Thor
Is there plan to merge Picasso96 into graphics.library like what have been done in AmigaOS 4?
The Os and P96 are in different hands. P96 is owned by iComp, the Os is owned by whatdoIknow... thus, I doubt anything will happen as long as this situation continues. There might be some extensions in Os interfaces to ease the integration of P96.
Thomas Richter is offline  
Old 20 December 2020, 22:53   #11
Warty
Registered User

 
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 95
Thanks everyone for info. I'm targeting P96 then for RTG support. I have some specific questions about that, but I'll do them in a separate post.
Warty 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
Online HTML vers of A.Mail Vol2, Dev- , HW-, Libs-Manuals and Incl.&Autodocs 2.0/3.5 eLowar Coders. General 41 24 June 2012 12:13
Vector Tutorials h0ffman Coders. General 7 24 January 2011 18:16
Tutorials for raytracers christianlucio request.Other 0 04 September 2010 18:38
AMOS tutorials Galaxy Coders. Tutorials 0 26 June 2007 13:25
Includes & Autodocs Jherek Carnelia request.Apps 7 12 March 2002 00:09

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 04:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.09239 seconds with 16 queries