Renommage vers le modèle MVC ! + Accélération du scroll !
This commit is contained in:
@ -7,9 +7,9 @@
|
||||
#include <math.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "../Traitement/load.h"
|
||||
#include "../Traitement/calcul.h"
|
||||
#include "../Graphique/graphique.h"
|
||||
#include "../Modele/load.h"
|
||||
#include "../Modele/calcul.h"
|
||||
#include "../Vue/vue.h"
|
||||
|
||||
#include "conversion.h"
|
||||
#include "destruction.h"
|
||||
|
6
Makefile
6
Makefile
@ -22,11 +22,9 @@ $(OUTPUT): recursive $(OBJ)/main.o
|
||||
$(CC) -o $@ $(OBJ)/*.o $(LDFLAGS) $(GFLAGS)
|
||||
|
||||
recursive:
|
||||
make $(ARG) -C Graphique
|
||||
make $(ARG) -C Vue
|
||||
make $(ARG) -C Controleur
|
||||
make $(ARG) -C Traitement
|
||||
make $(ARG) -C Controleur
|
||||
|
||||
make $(ARG) -C Modele
|
||||
|
||||
$(OBJ)/main.o: main.c
|
||||
$(CC) -c -o $@ $< $(CFLAGS) $(GFLAGS)
|
||||
|
@ -13,7 +13,7 @@ endif
|
||||
|
||||
.SILENT:
|
||||
|
||||
all: $(OBJ)/graphique.o $(OBJ)/creation.o $(OBJ)/chargement.o $(OBJ)/selection.o $(OBJ)/affichage.o
|
||||
all: $(OBJ)/vue.o $(OBJ)/creation.o $(OBJ)/chargement.o $(OBJ)/selection.o $(OBJ)/affichage.o
|
||||
|
||||
$(OBJ)/%.o: %.c %.h
|
||||
$(CC) -c -o $@ $< $(CFLAGS) $(GFLAGS)
|
Before ![]() (image error) Size: 175 KiB After ![]() (image error) Size: 175 KiB ![]() ![]() |
Before ![]() (image error) Size: 115 KiB After ![]() (image error) Size: 115 KiB ![]() ![]() |
Before ![]() (image error) Size: 4.2 KiB After ![]() (image error) Size: 4.2 KiB ![]() ![]() |
@ -54,7 +54,7 @@ void scrollUpDisplay(sfRenderWindow *const window, sfSprite *const sprite)
|
||||
{
|
||||
sfVector2f positionTemp;
|
||||
|
||||
const double ratio = 3.f;
|
||||
const double ratio = 5.f;
|
||||
const uint16_t endLoop = sfRenderWindow_getSize(window).y / ratio;
|
||||
|
||||
sfRenderWindow_setFramerateLimit(window, FRAMERATELIMITPOWER);
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "graphique.h"
|
||||
#include "vue.h"
|
||||
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "graphique.h"
|
||||
#include "vue.h"
|
||||
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "graphique.h"
|
||||
#include "vue.h"
|
||||
|
||||
#define WIDTH 1280
|
||||
#define HEIGHT 1280
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "graphique.h"
|
||||
#include "vue.h"
|
||||
|
||||
|
||||
/**
|
@ -1,4 +1,4 @@
|
||||
#include "graphique.h"
|
||||
#include "vue.h"
|
||||
|
||||
|
||||
void boucleGraphique(void)
|
@ -19,12 +19,12 @@
|
||||
#define PROJECTNAME "GINPA"
|
||||
#define PROJECTDESC "GINPA Is Not a Position Analyst"
|
||||
|
||||
#define REGULARFONTPATH "Graphique/Ressources/AllerFont/Aller_Rg.ttf"
|
||||
#define BOLDFONTPATH "Graphique/Ressources/AllerFont/Aller_Bd.ttf"
|
||||
#define ITALICFONTPATH "Graphique/Ressources/AllerFont/Aller_It.ttf"
|
||||
#define REGULARFONTPATH "Vue/Ressources/AllerFont/Aller_Rg.ttf"
|
||||
#define BOLDFONTPATH "Vue/Ressources/AllerFont/Aller_Bd.ttf"
|
||||
#define ITALICFONTPATH "Vue/Ressources/AllerFont/Aller_It.ttf"
|
||||
|
||||
#define PROJECTIMAGEPATH "Graphique/Ressources/GINPA_alpha.png"
|
||||
#define WINDOWICONPATH "Graphique/Ressources/GINPA_icone.png"
|
||||
#define PROJECTIMAGEPATH "Vue/Ressources/GINPA_alpha.png"
|
||||
#define WINDOWICONPATH "Vue/Ressources/GINPA_icone.png"
|
||||
|
||||
|
||||
/**
|
2
main.c
2
main.c
@ -1,4 +1,4 @@
|
||||
#include "Graphique/graphique.h"
|
||||
#include "Vue/vue.h"
|
||||
|
||||
|
||||
int main(int argc, char const *argv[])
|
||||
|
Reference in New Issue
Block a user