What is the range of OpenGL texture ID?

前端 未结 3 1877
走了就别回头了
走了就别回头了 2020-12-17 17:57

I have an object which owns a property Texture_ID. I need to initialize the value for Texture_ID in constructor, so I want some value unused by OpenGL to present that the te

3条回答
  •  囚心锁ツ
    2020-12-17 18:20

    0 is the value OpenGL uses for its own default texture. It never returns that value to you and you can use that value for your error checking.

    I would although suggest using -1.

提交回复
热议问题