casse-brick latest
Ce projet est réalisé dans le cadre du cours de Programmation Avancée en M1 Informatique de l'université de Strasbourg.
Loading...
Searching...
No Matches
triangle.h
Go to the documentation of this file.
1//
2// Created by maxime on 10/05/24.
3//
4
5#ifndef CASSE_BRIQUE_TRIANGLE_H
6#define CASSE_BRIQUE_TRIANGLE_H
7
8#include <SDL2/SDL.h>
9#include <SDL_image.h>
10#include <SDL2/SDL_timer.h>
11#include <iostream>
12#include <memory>
13
14#include "brique.h"
15
16
22class Triangle : public Brique {
23public:
33 Triangle(int x, int y, int h, int w, bool isTop);
34
42 void render(std::shared_ptr<SDL_Renderer> renderer, SDL_Color color1, SDL_Color color2) override;
43};
44
45
46
47#endif //CASSE_BRIQUE_TRIANGLE_H
The Brique class represents a block object in the game.
Definition brique.h:36
SDL_Color color1
The primary color of the block.
Definition brique.h:38
SDL_Color color2
The secondary color of the block.
Definition brique.h:39
The Triangle class represents a triangular block.
Definition triangle.h:22
void render(std::shared_ptr< SDL_Renderer > renderer, SDL_Color color1, SDL_Color color2) override
Renders the triangular block on the screen.
Definition triangle.cpp:13