Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Retarget(t)able graphics
« on: May 06, 2003, 11:36:48 PM »
Hi all,

Does anybody know how compatible Picasso96 is for applications devloped for cybergraphx?

Some of my code uses cybergraphx calls for direct access and also getting infromation from cybergraphics mode lists. I also use the special flags for allocating 15/16/32-bit bitmaps with AllocBitMap().

Other than that, its all OS 3.x standard stuff.

Does anybody know how compatible p96 is with cgx? Are there any no go areas or performance killers? I'm only really interested in 15-bit modes and above.

Sorry for the hand-wavy questioning, I'm just after some general compatibility info.

Thanks,

K
int p; // A
 

Offline Thomas

Re: Retargettable graphics
« Reply #1 on: May 07, 2003, 09:55:07 AM »

It works. I don't know about the mode lists, but the other things do work. There are some issues, though. ScalePixelArray() cannot correctly stretch vertically. LockBitMap() locks the whole computer instead of only the bitmap, even for non-displayed bitmaps.

Bye,
Thomas

Offline yssing

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1521
    • Show only replies by yssing
    • http://www.yssing.org
Re: Retargettable graphics
« Reply #2 on: May 07, 2003, 11:15:21 AM »
It should be very compatible.
AFAIK Pic96 can "emulate" almost all CGX stuff, roughly 96 % or so. But that is only what I have been told.
How ever, I do not know which areas to avoid, my best suggestion would be to try it out.
 

Offline ikir

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1659
    • Show only replies by ikir
    • http://www.ikirsector.it
Re: Retargettable graphics
« Reply #3 on: May 07, 2003, 01:42:26 PM »
It is very compatible.
 

Offline Billsey

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1311
    • Show only replies by Billsey
    • http://billsey.christian.net
Re: Retargettable graphics
« Reply #4 on: May 07, 2003, 09:35:47 PM »
I looked at the subject for this thread and thought it said, "Regrettable Graphics". :lol:
\\"The chief tormentor of the damned will be the conscience and it will not be misinformed, and it will not be silenced.\\"     John MacArthur
Salvation is by grace alone through faith alone in Christ alone
\\"I am not ashamed of the Gospel, because it is the
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Retargetable graphics
« Reply #5 on: May 07, 2003, 10:58:36 PM »
Quote

Billsey wrote:
I looked at the subject for this thread and thought it said, "Regrettable Graphics". :lol:


:-D My bad spelling I guess...One T or two in retarget(t)able?

I might end up regretting anything that messes up my code under p96!

So, from the responses here I take it that compatibility is very good. Shame LockBitMap() locks the whole system - I do rendering to offscreen buffers and the like.

@everybody - thanks for the info...
int p; // A
 

Offline marcus256

  • Newbie
  • *
  • Join Date: May 2003
  • Posts: 17
    • Show only replies by marcus256
    • http://glfw.sourceforge.net/
Re: Retargetable graphics
« Reply #6 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 iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: Retargettable graphics
« Reply #7 on: May 21, 2003, 12:20:53 AM »
Quote

Billsey wrote:
I looked at the subject for this thread and thought it said, "Regrettable Graphics". :lol:
:-o  :roflmao:  :roflmao:  :roflmao:  thanks billsey, for giving me a good chuckle this morning :D
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: Retarget(t)able graphics
« Reply #8 on: May 21, 2003, 12:36:46 AM »
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 would hope aos 4 would have built in support for 15/16/24 bit screen modes(in graphics.library) rather than requireing all these other add ons
 

Offline marcus256

  • Newbie
  • *
  • Join Date: May 2003
  • Posts: 17
    • Show only replies by marcus256
    • http://glfw.sourceforge.net/
Re: Retarget(t)able graphics
« Reply #9 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).