Welcome, Guest. Please login or register.

Author Topic: Retarget(t)able graphics  (Read 3054 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline marcus256

  • Newbie
  • *
  • Join Date: May 2003
  • Posts: 17
    • Show all replies
    • http://glfw.sourceforge.net/
Re: Retargetable graphics
« on: May 20, 2003, 12:45:58 PM »
I was surprised to see that I could implement the entire GLFW fullscreen functionality (mode list querying, 15/16/24-bit support etc) with pure AmigaOS 3.1. Possibly it can be done better with cgfx/p96, but for now it works fine for me.
 

Offline marcus256

  • Newbie
  • *
  • Join Date: May 2003
  • Posts: 17
    • Show all replies
    • http://glfw.sourceforge.net/
Re: Retarget(t)able graphics
« Reply #1 on: May 21, 2003, 12:29:53 PM »
> for <=8 bit there is no problem
> for other color depths that is one of the big
> problems about amigaos and should be fixed

I suppose that depends on what you want to do. In my case, I rely entirely on the OpenGL implementation to handle the actual "pixeling" (I don't care if it uses P96, CGFX, direct hardware, or whatever). Basically, all I need to do is to find a good ModeID (based on color depth etc) and enumerate ModeIDs. Under my WinUAE/P96 configuration this works just fine (I can get 24-bit "fullscreen" for instance).

I did have to do a trick to check if I have a proper "true color" ModeID, though: I check if redbits+bluebits+greenbits <= depth (this should be more or less idiot proof).