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
0 is the value you're looking for (to represent an unset texture ID/uncreated texture), as 0 is never a valid texture ID.
I would rather initialize the texture in the constructor. That way you never have an object in an invalid state.
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
.