add switching between opengl and pure programming render mode

master
Vectozavr 2021-11-05 17:16:00 +07:00
parent 8a9b215259
commit a3124306bd
1 changed files with 4 additions and 4 deletions

View File

@ -160,8 +160,8 @@ void Engine::printDebugInfo() const {
Vec2D{xPos + width, yPos + height * i}, Vec2D{xPos + width, yPos + height * i},
Vec2D{xPos + width, yPos + height + height * i}, Vec2D{xPos + width, yPos + height + height * i},
Vec2D{xPos, yPos + height + height * i}, Vec2D{xPos, yPos + height + height * i},
{static_cast<sf::Uint8>(255 * width / timerWidth), {static_cast<sf::Uint8>(255.0 * static_cast<double>(width) / timerWidth),
static_cast<sf::Uint8>(255 * (1 - width / timerWidth)), static_cast<sf::Uint8>(255.0 * (1.0 - static_cast<double>(width) / timerWidth)),
0, 150}); 0, 150});
@ -181,8 +181,8 @@ void Engine::printDebugInfo() const {
Vec2D{xPos + width, yPos + height * i}, Vec2D{xPos + width, yPos + height * i},
Vec2D{xPos + width, yPos + height + height * i}, Vec2D{xPos + width, yPos + height + height * i},
Vec2D{xPos, yPos + height + height * i}, Vec2D{xPos, yPos + height + height * i},
{static_cast<sf::Uint8>(255 * width / timerWidth), {static_cast<sf::Uint8>(255.0 * static_cast<double>(width) / timerWidth),
static_cast<sf::Uint8>(255 * (1 - width / timerWidth)), static_cast<sf::Uint8>(255.0 * (1.0 - static_cast<double>(width) / timerWidth)),
0, 150}); 0, 150});