PDA

View Full Version : AGL_ACCELERATED (2)



vhoffmann
05-29-2001, 12:55 AM
Hi DJ Tricky S.
I made a mistake I have a G4 with ATY Rage 128 Pro video.
Now when I put AGL_ACCELERATED in the pixel attribut for aglChoosePixelFormat. There is no difference than if I don't use it.
Is there something else to do to use the hardware acceleration?
Are there example that can show the difference between hardware and software acceleration?
Thanks.
Vincent HOFFMANN

DJ Tricky S
05-29-2001, 01:27 PM
I dunno if it helps but here is what I usually use for pixel formats on my Mac OpenGL programs (pre-OSX mind you):



// if I want 32-bit:
GLint pixel_attributes_32bit[]= {
AGL_ACCELERATED,
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_DEPTH_SIZE,
32,
AGL_NONE
};
// if I want 16 bit:
GLint pixel_attributes_16bit[]= {
AGL_ACCELERATED,
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_DEPTH_SIZE,
16,
AGL_NONE
};
// if I don't care about HW accelleration:
GLint pixel_attributes_any32bit[]= {
AGL_ALL_RENDERERS,
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_DEPTH_SIZE,
32,
AGL_NONE
};
GLint pixel_attributes_any16bit[]= {
AGL_ALL_RENDERERS,
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_DEPTH_SIZE,
16,
AGL_NONE
};


[This message has been edited by DJ Tricky S (edited 05-29-2001).]

[This message has been edited by DJ Tricky S (edited 05-29-2001).]