开发者

Opengl: GL_DEPTH_COMPONENT24 not defined

开发者 https://www.devze.com 2022-12-18 20:38 出处:网络
Good afternoon, The setup: I\'ve never done any gl programming. I\'m attempting to compile some opengl driver code that compiles in other environments.

Good afternoon,

The setup:

  • I've never done any gl programming.
  • I'm attempting to compile some opengl driver code that compiles in other environments.
  • I'm using mingw on windows in the hope that using gcc on both linux and Windows would make my life easier...

The problem: The second parameter of the following isn't defined anywhere:

glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT24, tex->getWidth(), tex->getHeight());

I'开发者_如何学Pythonm guessing this code is old and it's deprecated? What should I do about the above issue? Is there a good reference on the opengl API?

Thanks


Might want to grab a copy of GLEW to make your life easier on the extension front. It should have up-to-date versions of all the GL #defines in case whatever glext.h you have is stale.

0

精彩评论

暂无评论...
验证码 换一张
取 消