Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Depth bits sfml 2.2 vs 2.3 ?  (Read 1700 times)

0 Members and 1 Guest are viewing this topic.

Redee

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Depth bits sfml 2.2 vs 2.3 ?
« on: June 10, 2015, 02:53:18 pm »
Using standart creation window >
RenderWindow wIn(VideoMode(400,200), "MyWin");

If I getSettings().depthBits from RenderWindow object
in 2.3 its - 0
in 2.2 its - 24 (looks like correctly)

WinXp / VC2010

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Depth bits sfml 2.2 vs 2.3 ?
« Reply #1 on: June 10, 2015, 10:09:28 pm »
I'm using SFML 2.3 and it returned 24 for depth bits for me.
Following is the (compilable) code I used. Feel free to try the same code and for others to try it too.
#include <SFML/Graphics.hpp>
#include <iostream>

int main()
{
        sf::RenderWindow window(sf::VideoMode(800, 600), "Window Settings");

        sf::ContextSettings settings = window.getSettings();
        std::cout << "Major Version: " << settings.majorVersion << std::endl;
        std::cout << "Minor Version: " << settings.minorVersion << std::endl;
        std::cout << "Depth Bits: " << settings.depthBits << std::endl;
        std::cout << "AntiAliasing Level: " << settings.antialiasingLevel << std::endl;
        std::cout << "Stencil Bits: " << settings.stencilBits << std::endl;
        std::cout << "Attribute Flags: " << settings.attributeFlags << std::endl;

        return EXIT_SUCCESS;
}

Win7 / VC2013
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Depth bits sfml 2.2 vs 2.3 ?
« Reply #2 on: June 11, 2015, 12:51:44 am »
People should really just read the tutorials/documentation. And before you claim that you have, like many others in the past, it is kind of clear in this case that you either didn't actually fully read them or didn't understand what you read. Each of those possibilities is a problem, and one that we can't fix for you. The documentation, as its name implies, documents the behaviour of the library, so the fact that you don't understand how the library is supposed to behave kind of proves my point.

Let me give you a little hint: If you really think that this is unintended, try to find some proof of it. This will involve going through the tutorials and documentation like I just said. I can already tell you now, you won't find any proof.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).