|
Blender
V2.59
|
00001 /* 00002 * $Id: DNA_fileglobal_types.h 34941 2011-02-17 20:48:12Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (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 Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): none yet. 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 */ 00029 #ifndef DNA_FILEGLOBAL_TYPES_H 00030 #define DNA_FILEGLOBAL_TYPES_H 00031 00036 struct bScreen; 00037 struct Scene; 00038 00043 typedef struct FileGlobal { 00044 char subvstr[4]; /* needs to be here, for human fileformat recognition */ 00045 short subversion, pads; 00046 short minversion, minsubversion; 00047 short displaymode, winpos; 00048 struct bScreen *curscreen; 00049 struct Scene *curscene; 00050 int fileflags; 00051 int globalf; 00052 int revision; /* svn revision from buildinfo */ 00053 int pad; 00054 /* file path where this was saved, for recover */ 00055 char filename[240]; /* 240 = FILE_MAX */ 00056 } FileGlobal; 00057 00058 00059 /* minversion: in file, the oldest past blender version you can use compliant */ 00060 /* example: if in 2.43 the meshes lose mesh data, minversion is 2.43 then too */ 00061 /* or: in 2.42, subversion 1, same as above, minversion then is 2.42, min subversion 1 */ 00062 /* (defines for version are in the BKE_blender.h file, for historic reasons) */ 00063 00064 00065 #endif 00066