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

Author Topic: 2.6.2 to 3.0.0 sf::Vertex AchseV[]  (Read 17 times)

0 Members and 2 Guests are viewing this topic.

HeinzK

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • ZwiAner
    • Email
2.6.2 to 3.0.0 sf::Vertex AchseV[]
« on: Today at 03:17:52 pm »
 After I edited some 100 places with sf::Vertex ...
 //> 2.6.2
 k_Vertexs.push_back
           (
             sf::Vertex
                 (
                   sf::Vector2f(fX1, fY1),
                   CoZ
                 )
           );

 //> 3.0.0
 k_Vertexs.push_back
           (
             {
               sf::Vector2f(fX1, fY1),
               CoZ
             }
           );

... I hope this is correct? (Unfortunately, I can only test it again once everything has been 'translated'!),

I have come across a problem!

//> 2.6.2
sf::Vertex AchseV[] =
{
  sf::Vertex(sf::Vector2f(0.0, 0.0)),
  sf::Vertex(sf::Vector2f(0.0, 0.0))
};

//> 3.0.0
sf::Vertex AchseV[] =
{
  sf::Vector2f({0.0, 0.0}),
  sf::Vector2f({0.0, 0.0})
};
...
AchseV[0].position.x = (float)k_pMaus->GetlMausX();
pWindow->draw(AchseV, 2, sf::Lines);
...

How will this be solved in 3.0.0?

Code:
 
(click to show/hide)
« Last Edit: Today at 03:57:10 pm by eXpl0it3r »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

 

anything