<note important> Pour ceux qui ont suivi l'UE animation en M1 : la base de code n'est pas au même endroit que l'année passée et l'arborescence a été modifiée</note>
git clone https://forge.univ-lyon1.fr/Alexandre.Meyer/gkit2light cd gkit2light/ git checkout -b master_MecacSim origin/master_MecacSim
cd gkit2light premake/premake4.linux --file=master_MecaSim.lua codeblocks ouvrir le projet master_MecaSim_etudiant.cbp
cd gkit2light premake/premake4.linux --file=master_MecaSim.lua gmake make -f master_MecaSim_etudiant.make ./bin/master_MecaSim_etudiant
cd gkit2light premake/premake4.macosx --file=master_MecaSim.lua gmake make -f master_MecaSim_etudiant.make ./bin/master_MecaSim_etudiant
#ifndef M_PI #define M_PI 3.14159265358979323846264338327950288 /* pi */ #endif
int Viewer::init() { // Etats par defaut openGL glClearColor(0.5f, 0.6f, 0.8f, 1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearDepthf(1); glDepthFunc(GL_LESS); glEnable(GL_DEPTH_TEST); glFrontFace(GL_CW); glCullFace(GL_BACK); if (mb_cullface) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE); // good for debug glEnable(GL_TEXTURE_2D); ... }
./bin/master_MecaSim_etudiant 1 ./src/master_MecaSim/exec/Fichier_Param.simu ./src/master_MecaSim/exec/Fichier_Param.objet1
chmod +x go
./go