PDA

View Full Version : 3D-Card existing?



Tux
03-05-2002, 09:07 AM
Be anough to say:

h_RC := wglCreateContext(h_DC);
if (h_RC = 0) then {3D-Card existing}
else {3D-Card not existing}

at least:

wglMakeCurrent(h_DC, 0);
wglDeleteContext(h_RC);

Is there a nother way to find out?

V-man
03-05-2002, 12:25 PM
Originally posted by Tux:
Be anough to say:

h_RC := wglCreateContext(h_DC);
if (h_RC = 0) then {3D-Card existing}
else {3D-Card not existing}

at least:

wglMakeCurrent(h_DC, 0);
wglDeleteContext(h_RC);

Is there a nother way to find out?

No, there is no way to know if a 3d acceleration is available. opengl doesnt care. You can use d3d and device capabilities and that will tell you if the device supports certain features. opengl can run completly in software (that's what opengl32.dll is for on windows)

PS: everyone has a 3d accelerator now.

V-man