Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

aglQueryRendererInfo on MacOSX



Hi !

We are currently trying to get our framework working on MacOSX and we had a coupe of problems.

The main problem comes from the aglQueryRendererInfo. In our framework we try to find an accelerated device by scanning the renderer list.

This code uses to work fine in the past :

AGLRendererInfo info, head_info;
GLint rv;
GDHandle gdhandle;

gdhandle = GetMainDevice(); // I simply get the main device for this test

head_info = aglQueryRendererInfo(&gdhandle, 1);
if (head_info)
{
info = head_info;
while(info)
{
aglDescribeRenderer(info, AGL_ACCELERATED, &rv);
if (rv)
{
// Accelerated renderer found
//...
}
info = aglNextRendererInfo(info);
}

aglDestroyRendererInfo(head_info);
}

On the MacOSX the "while" loop never ends. The info address is incremented by four each time aglNextRendererInfo is called. In fact there is only one available renderer (because the Radeon card is not recognized currently), so I guess that aglNextRendererInfo should return NULL the first time it is called...

We are using CodeWarrior 6 and we linked the project to the OpenGLLibraryStub file.

Any idea...?


Thanks for your help,

Yves * Ultrapepita * Pacific Media WorX




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.