5#ifndef CASSE_BRIQUE_TRIANGLE_H
6#define CASSE_BRIQUE_TRIANGLE_H
10#include <SDL2/SDL_timer.h>
33 Triangle(
int x,
int y,
int h,
int w,
bool isTop);
42 void render(std::shared_ptr<SDL_Renderer> renderer, SDL_Color
color1, SDL_Color
color2)
override;
The Brique class represents a block object in the game.
SDL_Color color1
The primary color of the block.
SDL_Color color2
The secondary color of the block.
The Triangle class represents a triangular block.
void render(std::shared_ptr< SDL_Renderer > renderer, SDL_Color color1, SDL_Color color2) override
Renders the triangular block on the screen.