Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: IonDave on June 15, 2007, 01:18:41 AM

Title: Low-level graphics api functions in RTG and NG systems.
Post by: IonDave on June 15, 2007, 01:18:41 AM
I've just been examining the Amiga C Manual (http://www.amigau.com/c-programming/c/downloads/ACM.lha) I found on Amiga University (http://www.amigau.com/c-programming/C/ctut.htm).

From what I understand of Classic OS RTG and OS4 in general (of which I have neither), if a program is OS friendly it will work. Does this hold true for low-level graphics through the api (e.g. viewports, hardware sprites, VSprites, etc...)? Or is graphics only retargetted when done through Intuition? If the latter is the case, what happens when you use low level graphics (API) functions in OS4 (or MOS/AROS for that matter.)

Please forgive me if this is a well known question but I am (very) new to AmigaOS development.
Title: Re: Low-level graphics api functions in RTG and NG systems.
Post by: Piru on June 15, 2007, 01:31:45 AM
Low level graphics typically do not go thru RTG.

There is no reason to use them anyway.
Title: Re: Low-level graphics api functions in RTG and NG systems.
Post by: IonDave on June 15, 2007, 01:46:44 AM
I suspected as much.

Is there any reference as to what is retargetable and what's not? Would the picasso96 developer docs be the place to look? I cant seem to locate them.

If an emulated 68k app calls a non-retargetable API function in OS4 app what happens? Are they still defined in OS4's SDK?
Title: Re: Low-level graphics api functions in RTG and NG systems.
Post by: Piru on June 15, 2007, 01:49:08 AM
I'm afraid there is little documentation.

However, as a rule of thumb: anything dealing with screens, windows and rastports is RTG-able.
Title: Re: Low-level graphics api functions in RTG and NG systems.
Post by: IonDave on June 15, 2007, 01:55:46 AM
Many thanks.