init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

34
InterfaceCpp/fenetre.h~ Normal file
View File

@@ -0,0 +1,34 @@
#ifndef __FENETRE_H
#define __FENETRE_H
#include "car.h"
#include "SFont.h"
#define FONT_PATH "font.png"
class Fenetre
{
private:
SDL_Surface* screen;
SDL_Surface* fond;
SDL_Surface* HardBG;
SFont_Font* font;
car Voiture;
int frame,sec,fps,circuit;
bool SHOWpilot,SHOWcamera,obstacle;
public:
Fenetre();
Fenetre (int , int , int , char *, char *);
~Fenetre();
void loadBG(char *);
void redraw();
void handle();
void putPixel(int , int , char, char, char);
void showView(int ,int);
void showPilot(int,int);
void showObstacle();
void drawText();
};
#endif