00001 /* 00002 * Part of rvglue source code, 00003 * Copyright (C) 2000 Alexander Kroeller (alilein@gmx.de) 00004 * Copyright (C) 2001 Gabor Varga (vag) (bootes@freemail.hu) 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 2 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, write to the Free Software 00018 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 /* 00022 * $Id: world.h,v 1.1 2000/05/03 08:49:54 ali Exp ali $ 00023 * 00024 * $Log: world.h,v $ 00025 * Revision 1.1 2000/05/03 08:49:54 ali 00026 * Initial revision 00027 * 00028 * 00029 */ 00030 #ifndef __WORLD_H 00031 #define __WORLD_H 00032 00033 #include "mesh.h" 00034 00035 00037 class World 00038 { 00039 public: 00040 World(); 00041 ~World(); 00042 00043 bool addMesh(Mesh *); 00044 00045 int write_w (const char *wname, const char *iname, const char *ncpname); 00046 int write_prm(const char *prmname, const char *iname, const char *ncpname); 00047 00055 void set_grip(Vector *grip=NULL); // vag 2001-06-28 00059 Vector center_visible(); // vag 2001-06-28 00060 00061 private: 00062 int cur_size; 00063 Mesh **mlist; 00064 }; 00065 00066 00067 #endif