gpt4 book ai didi

c++ - OpenGL32库

转载 作者:塔克拉玛干 更新时间:2023-11-03 08:22:57 24 4
gpt4 key购买 nike

我缺少 opengl32 库(更多详细信息:mingw32 w64 missing OpenGL32 lib)。我有几个与此库相关的问题:

  1. 为什么我需要 opengl32 静态库(我有 .dll)?
  2. 为什么显卡厂商不提供这个库?
  3. 谁应该提供它?
  4. 有opengl32库的源码吗?
  5. 如果有 opengl32,为什么我需要 GLEW 或其他 GL 库实现(以使用 OpenGL 的所有功能)?为什么 opengl32 不能拥有所有必需的 GL 实现?

最佳答案

Why I need opengl32 static library ( I have .dll)?

它为链接器提供符号表。符号表告诉链接器库提供了哪些函数,以便链接器知道如何将程序中使用的符号与链接的库联系起来。

请注意,在 Windows 以外的其他操作系统上,“DLL”也提供符号表。

Why video card vendors does not provide this library?

因为库是驱动系统的操作系统接口(interface)的一部分

Who should provide it?

DLL:操作系统供应商。符号表库:编译器供应商。

Is there a source code of opengl32 library?

OpenGL 本身只是一个规范。您在计算机上拥有的是一个实现和一个接口(interface)。该界面是操作系统的一部分。因此在闭源操作系统上没有可用的源代码,但在开源操作系统上有。

Why I need GLEW or other GL library implementations (to use all features of OpenGL) if there is opengl32?

opengl32.dll 只是驱动系统的接口(interface)。该接口(interface)需要成为 OpenGL 功能的最小公分母,以便可以通过一个通用接口(interface)提供范围广泛的 OpenGL 版本和功能。但是,您还希望能够访问存在扩展机制的较新的和前沿的功能。

Why opengl32 cannot have all required GL implementation?

opengl32.dll 是操作系统的一部分,如果它是操作系统的一部分,那么每个新版本的 OpenGL 都需要更新操作系统。事实上,这就是 MacOS X 的情况。

此外,OpenGL 实现 是驱动程序的一部分,而不是 DLL。

关于c++ - OpenGL32库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12393416/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com