What is the range of OpenGL texture ID?

前端 未结 3 1868
走了就别回头了
走了就别回头了 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:12

    0 is the value you're looking for (to represent an unset texture ID/uncreated texture), as 0 is never a valid texture ID.

提交回复
热议问题