문제

How do I find out, if a specific OpenGL feature is supported by hardware or not? In my case I want to know, if two-sided lighting is available in hardware. An approach using OpenInventor would be just as well.

도움이 되었습니까?

해결책

In general, you don't.

If something is part of core OpenGL, then it should be implemented by the OpenGL implementation. Whether this happens "in hardware" or not is not something that you can detect.

For extension based features, you can obviously check for the presence of the extension. But otherwise, there's nothing you can do except better know the hardware your code is running on.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top