03 March 2009, 22:16 | #1 |
AmiEmulators coder
Join Date: Dec 2008
Location: Barcelona / Spain
Age: 49
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 |
04 March 2009, 09:00 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,009
|
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. |
04 March 2009, 21:03 | #3 |
AmiEmulators coder
Join Date: Dec 2008
Location: Barcelona / Spain
Age: 49
Posts: 40
|
Thanks for the info Thomas!
|
14 December 2020, 00:58 | #4 |
Registered User
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 301
|
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 Last edited by Warty; 14 December 2020 at 08:06. Reason: Found another relevant post on EAB |
14 December 2020, 09:29 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,009
|
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. |
14 December 2020, 17:17 | #6 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,311
|
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.
|
14 December 2020, 18:50 | #7 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,252
|
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. |
14 December 2020, 20:39 | #8 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,311
|
Good point ThoR. I moved from CGFX to P96 simply because P96 is still developed.
|
14 December 2020, 21:11 | #9 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,804
|
@Thor
Is there plan to merge Picasso96 into graphics.library like what have been done in AmigaOS 4? |
15 December 2020, 08:36 | #10 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,252
|
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.
|
20 December 2020, 22:53 | #11 |
Registered User
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 301
|
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.
|
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 | 46 | 08 July 2023 09:05 |
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 |
|
|