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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - XLAT

Pages: [1]
1
Graphics / Re: Point not drawn in coordinates: (0,0)
« on: November 02, 2021, 04:36:15 pm »
I found the answer in
That the coordinate system in OpenGL is represented with the y-axis pointing up.
In SFML, the frustum was turned upside down,
So that the Y-axis is pointing down.
Because of this, everything that is on the X axis with y = 0 becomes invisible.

2
Graphics / Point not drawn in coordinates: (0,0)
« on: October 25, 2021, 09:17:30 am »
There is a code like this:
        sf::VertexArray ap (sf::Points,1);
                        ap[0].color    = sf::Color::Green;
                        ap[0].position = sf::Vector2f (0,0);

                        window.draw(ap);
 

Why is the green point not drawn in coordinates: (0,0) ???

Pages: [1]