Welcome, Guest. Please login or register.

Author Topic: Text Editor  (Read 3771 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline deniil

  • Newbie
  • *
  • Join Date: Jan 2004
  • Posts: 8
    • Show all replies
    • http://www.onyxsoft.nu
Re: Text Editor
« on: August 24, 2011, 05:15:05 PM »
@Mazze

Obtaining (and therefore locking) a minimum of 15 different pens just for the window itself, then theoretically an infinit amount more for the syntax is not the way to go.

One alternative is to lock one pen exclusively and change it for every gfx element to draw. I do that in Detris when using "RGB mode" but often there is not a single pen left to make an exclusive lock on because programs have been forced to obtaining thousands of pens only because the Amiga gfx API is so increadably crappy when it comes to dealing with colors.

As far as I know there simply doesn't exist any function to draw a pixel/line/rectangle or text using RGB. Even using p96/cgfx there is still no RGB text function.

What do you do in such a crappy system?? :-(
Developer for OnyxSoft - Amiga
A1200 BPPC060/240+BVision ; A1-XE G4/800
 

Offline deniil

  • Newbie
  • *
  • Join Date: Jan 2004
  • Posts: 8
    • Show all replies
    • http://www.onyxsoft.nu
Re: Text Editor
« Reply #1 on: August 25, 2011, 03:28:31 PM »
@Piru

Quote
SetRPAttrs(rp, RPTAG_PenMode, FALSE, RPTAG_FgColor, 0xFFCC88, TAG_DONE);


Cool! Now let's hope Hype gets their act together and puts this into gfx.lib as well.

I don't need to setup some funky special custom messy bitmap myself to use this, do I?
Developer for OnyxSoft - Amiga
A1200 BPPC060/240+BVision ; A1-XE G4/800