if
(
(pWindow != NULL)
&&
(k_pMaus->GetbMausImWindow() == true)
)
{
sf::IntRect View = pWindow->getViewport(pWindow->getView());
sf::Vertex AchseV[] =
{
sf::Vertex(sf::Vector2f(0.0, 0.0)),
sf::Vertex(sf::Vector2f(0.0, 0.0))
};
sf::Vertex AchseH[] =
{
sf::Vertex(sf::Vector2f(0.0, 0.0)),
sf::Vertex(sf::Vector2f(0.0, 0.0))
};
AchseV[0].position.x = (float)k_pMaus->GetlMausX();
AchseV[0].position.y = (float)(View.top + View.height);
AchseV[1].position.x = (float)k_pMaus->GetlMausX();
AchseV[1].position.y = (float)View.top;
AchseV[0].color = sf::Color(127, 127, 127, 150);
AchseH[0].position.x = (float)(View.left + View.width);
AchseH[0].position.y = (float)k_pMaus->GetlMausY();
AchseH[1].position.x = (float)View.left;
AchseH[1].position.y = (float)k_pMaus->GetlMausY();
AchseH[0].color = sf::Color(127, 127, 127, 150);
if (true) //> vorab .. bis .. s.u.:
{
pWindow->draw(AchseV, 2, sf::Lines);
pWindow->draw(AchseH, 2, sf::Lines);
} else
{
/// pZeichnen->AddObjekt_Line_SFML(....); //> muss noch programmiert werden:
}
}