Original Post
Recently, I was writing code about texture using OpenGL API. there are two parameters that doubt me in the function glTexImage* they are format(image format) and type(image type) if the format is GL_RGB and the type is GL_UNSIGNED_BYTE then a pixel has red,green,blue component and each component is 8 bits, if the type is GL_UNSIGNED_SHORT then each component is 16 bits. Yes It's obvious! The question is how many bits in a pixel if the format is GL_DEPTH_COMPONENT and the type is GL_UNSIGNED_BYTE and what about GL_UNSIGNED_SHORT?