Prueba falsa de marcador transparente
This commit is contained in:
@@ -41,13 +41,14 @@ void ScoreBoard::fillTexture()
|
||||
// Cambia el puntero del renderizador a la textura y la limpia
|
||||
SDL_SetRenderTarget(renderer, layer);
|
||||
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0xFF);
|
||||
SDL_SetRenderDrawColor(renderer, 0, 171, 159, 255);
|
||||
SDL_RenderClear(renderer);
|
||||
|
||||
// Escribe los textos
|
||||
text->writeCentered(PLAY_AREA_CENTER_FIRST_QUARTER_X, 1, "-LIVES-");
|
||||
text->writeCentered(PLAY_AREA_CENTER_FIRST_QUARTER_X, 1 + text->getCharacterSize(), std::to_string(board->lives));
|
||||
text->writeCentered(PLAY_AREA_CENTER_THIRD_QUARTER_X, 1, "-DIAMONDS-");
|
||||
text->writeCentered(PLAY_AREA_CENTER_THIRD_QUARTER_X, 1 + text->getCharacterSize(), std::to_string(board->diamonds));
|
||||
text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_FIRST_QUARTER_X, 8, "-LIVES-");
|
||||
text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_FIRST_QUARTER_X, 8 + text->getCharacterSize(), std::to_string(board->lives));
|
||||
text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_THIRD_QUARTER_X, 8, "-DIAMONDS-");
|
||||
text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_THIRD_QUARTER_X, 8 + text->getCharacterSize(), std::to_string(board->diamonds));
|
||||
|
||||
// Vuelve a colocar el renderizador apuntando a la pantalla
|
||||
SDL_SetRenderTarget(renderer, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user