SFML allows the programmer to specify a 'bitsperpixel' value using sf::VideoMode.
It also allows the programmer to specify a 'depth' value using sf::ContextSettings.
What is the difference between these things, or are they the same?
SFML allows the programmer to specify a 'bitsperpixel' value using sf::VideoMode.
It also allows the programmer to specify a 'depth' value using sf::ContextSettings.
What is the difference between these things, or are they the same?
I believe they are the same in SFML if I recall correctly, however I may be wrong. Look here for more info: http://sfml-dev.org/documentation/2.0/
They are two distinct parameters.
bitsPerPixel
represents the bit depth, also know as the color depth. Usually you would use a value of 32 here to have good rendering.And the
depth
is defined as follow in the documentation:So you don't have to care about this
depth
parameter if you don't directly use OpenGL.