Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
146 user(s) are online (122 user(s) are browsing Forums)

Members: 0
Guests: 146

more...

Headlines

 
  Register To Post  

How to write text or draw lines and boxes in RGB color?
Quite a regular
Quite a regular


See User information
Is there any way in OS4 to write text and other simple graphics without having to resort to the horribly obsoleted colormap and pens and the extreme hazzle it brings?!?

That graphics.library still after 15 years of RGB usage in the world doesn't seem to have any functions for doing any real RGB work is just embarrasingly tragic.

MorphOS actually came to their senses and made some SetAPenRGB() function or whatever its called that makes it possibly to just set an RGB value for drawing text and lines and rectangles. How come OS4 doesn't have that, or did I miss something?

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: How to write text or draw lines and boxes in RGB color?
Just popping in
Just popping in


See User information
from graphics.library/SetRPAttrsA:
Quote:

Tags introduced in V51:
RPTAG_APenColor Primary rendering color (overrides APen)
RPTAG_BPenColor Secondary rendering color (overrides BPen)
RPTAG_OPenColor Area outline color (overrides OutlinePen)
RPTAG_OutlinePenColor Alias for RPTAG_OPenColor

The color format used by the three tags above is 0xAARRGGBB.
Please note that these tags won't have any effect when rp->BitMap does not point to a directmapped bitmap. The alpha part is currently ignored and should be set to 0xFF.

Go to top
Re: How to write text or draw lines and boxes in RGB color?
Home away from home
Home away from home


See User information
@Deniil
You asked a similar question some months (years?) ago, and at that time I replied with a wrapper which allows the same code to be used on OS4 & MOS/AROS. Can't remember which forum though :(

Author of the PortablE programming language.
Go to top
Re: How to write text or draw lines and boxes in RGB color?
Just popping in
Just popping in


See User information
@ChrisH
Quote:
You asked a similar question some months (years?) ago, [...]

He asked on the hyperion forum a year ago.

Go to top
Re: How to write text or draw lines and boxes in RGB color?
Amigans Defender
Amigans Defender


See User information
Not sure why the this thread was suddenly revived...

Anyway, the wiki currently does not have any documentation on this. The docs we do have are at http://wiki.amigaos.net/index.php/Graphics_Primitives and they need help.

Volunteers are welcome. :)

ExecSG Team Lead
Go to top
Re: How to write text or draw lines and boxes in RGB color?
Amigans Defender
Amigans Defender


See User information
Just to add to this, the RPAttrs thing works on true-colour screenmodes, but if you're using a palette-mapped screen (or BitMap) you have to allocate pens yourself the old-fashioned way.

Normally on OS4 this wouldn't be an issue, but something to be aware of.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project