any hardware-related functions available

HI!

I want to use offscreen-rendering and the “new” layer-support under
qnx6.2.1/photon in oder to get better performance. But problem is: any of
these features aren’t available to me!?? Even the
PgGetGraphicsHWCaps()-call fails :frowning: So I can’t look for my card-support.

I use an ATI Rage128 (16mb) card.

What can I do to get reason why all of this fails?

Can you post a snippet of the code that you are trying to execute? I
assume you are doing this from a photon application. You have inited
the application ( called PtInit(), PhAttach(), etc) before you have
tried to make these calls, correct? Can you use errno and the function
strerr to see what the error is that PgGetGraphicsHWCaps is failing with?

Thanks,
Rodney

mirtch wrote:

HI!

I want to use offscreen-rendering and the “new” layer-support under
qnx6.2.1/photon in oder to get better performance. But problem is: any of
these features aren’t available to me!?? Even the
PgGetGraphicsHWCaps()-call fails > :frowning: > So I can’t look for my card-support.

I use an ATI Rage128 (16mb) card.

What can I do to get reason why all of this fails?

Hi!

Now I have solved the problem: I run a Phindows-instance on the same
server-node. After I closed Phindows, I got offscreen-memory and all
needed harware info. But one question I still have: I can’t use layers.

why following function-call always fails after I called PtInit(NULL)?

PgLayerCaps_t layerCaps;

if(PgGetLayerCaps(0,0,&layerCaps)==-1)
{
perror(\“PgGetLayerCaps\”);
}

First parameter is the layer and the second is a “format_index”. What I
a have to take for “format_index”?

thanks!

The new layer API is not supported on the ATI Rage128. It is currently
only supported on ATI Radeon chipsets.


mirtch <mirtch@gmx.net> wrote:

Hi!

Now I have solved the problem: I run a Phindows-instance on the same
server-node. After I closed Phindows, I got offscreen-memory and all
needed harware info. But one question I still have: I can’t use layers.

why following function-call always fails after I called PtInit(NULL)?

PgLayerCaps_t layerCaps;

if(PgGetLayerCaps(0,0,&layerCaps)==-1)
{
perror(\“PgGetLayerCaps\”);
}

First parameter is the layer and the second is a “format_index”. What I
a have to take for “format_index”?

thanks!