00001 00002 /* 00003 ** Projet etudiants CPE Lyon 00004 ** Copyright (C) 2012 Damien Rohmer 00005 ** 00006 ** This program is free software: you can redistribute it and/or modify 00007 ** it under the terms of the GNU General Public License as published by 00008 ** the Free Software Foundation, either version 3 of the License, or 00009 ** (at your option) any later version. 00010 ** 00011 ** This program is distributed in the hope that it will be useful, 00012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 ** GNU General Public License for more details. 00015 ** 00016 ** You should have received a copy of the GNU General Public License 00017 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 00021 #ifndef SCENE_HPP 00022 #define SCENE_HPP 00023 00024 00025 00026 #include <objet_affichable.hpp> 00027 00028 00029 class glwidget; 00030 00031 class scene 00032 { 00033 public: 00034 00036 scene(glwidget* p_glwidget=0); 00037 00039 void load_model(); 00041 void draw_scene(); 00042 00043 // permet d'afficher/cacher la texture 00044 void set_affichage_texture(const bool& est_actif); 00045 00046 private: 00047 00049 glwidget *p_glwidget; 00050 00051 // methode d'exemple affichant un objet texture 00052 void affichage_texture_exemple() const; 00053 00054 00055 //identifiant d'une texture 00056 int tex; 00057 //est-ce qu'on affiche la texture 00058 bool affiche_texture; 00059 00060 //des objets que l'on peut afficher 00061 objet_affichable objet_1; 00062 objet_affichable objet_2; 00063 objet_affichable objet_3; 00064 00065 }; 00066 00067 #endif