2 * blenlib/BKE_global.h (mar-2001 nzc)
4 * Global settings, handles, pointers. This is the root for finding
5 * any data in Blender. This block is not serialized, but built anew
6 * for every fresh Blender run.
10 * ***** BEGIN GPL LICENSE BLOCK *****
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software Foundation,
24 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
27 * All rights reserved.
29 * The Original Code is: all of this file.
31 * Contributor(s): none yet.
33 * ***** END GPL LICENSE BLOCK *****
38 #include "DNA_listBase.h"
49 typedef struct Global {
54 /* strings: lastsaved */
55 char ima[256], lib[256];
57 /* flag: if != 0 G.main->name contains valid relative base path */
60 /* strings of recent opend files */
61 struct ListBase recent_files;
63 short afbreek, moving, file_loaded;
66 short winpos, displaymode; /* used to be in Render */
67 short rendering; /* to indicate render is busy, prevent renderwindow events etc */
72 /* Used for BMesh transformations */
73 struct BME_Glob *editBMesh;
75 /* Frank's variables */
78 /* Rob's variables (keep here for WM recode) */
84 struct VFont *selfont;
85 struct ListBase ttfdata;
87 /* this variable is written to / read from FileGlobal->fileflags */
90 /* save the allowed windowstate of blender when using -W or -w */
93 /* ndof device found ? */
96 /* confusing... G.f and G.flags */
101 /* **************** GLOBAL ********************* */
104 #define G_RENDER_OGL (1 << 0)
105 #define G_SWAP_EXCHANGE (1 << 1)
106 /* also uses G_FILE_AUTOPLAY */
107 /* #define G_RENDER_SHADOW (1 << 3) */ /* temp flag, removed */
108 #define G_BACKBUFSEL (1 << 4)
109 #define G_PICKSEL (1 << 5)
111 /* #define G_FACESELECT (1 << 8) use (mesh->editflag & ME_EDIT_PAINT_MASK) */
113 #define G_DEBUG (1 << 12)
114 #define G_SCRIPT_AUTOEXEC (1 << 13)
116 /* #define G_NOFROZEN (1 << 17) also removed */
117 #define G_GREASEPENCIL (1 << 17)
119 /* #define G_AUTOMATKEYS (1 << 30) also removed */
123 #define G_AUTOPACK (1 << 0)
124 #define G_FILE_COMPRESS (1 << 1)
125 #define G_FILE_AUTOPLAY (1 << 2)
126 #define G_FILE_ENABLE_ALL_FRAMES (1 << 3) /* deprecated */
127 #define G_FILE_SHOW_DEBUG_PROPS (1 << 4) /* deprecated */
128 #define G_FILE_SHOW_FRAMERATE (1 << 5) /* deprecated */
129 /* #define G_FILE_SHOW_PROFILE (1 << 6) */ /* deprecated */
130 #define G_FILE_LOCK (1 << 7)
131 #define G_FILE_SIGN (1 << 8)
132 /* #define G_FILE_PUBLISH (1 << 9) */ /* deprecated */
133 #define G_FILE_NO_UI (1 << 10)
134 /* #define G_FILE_GAME_TO_IPO (1 << 11) */ /* deprecated */
135 #define G_FILE_GAME_MAT (1 << 12) /* deprecated */
136 /* #define G_FILE_DISPLAY_LISTS (1 << 13) */ /* deprecated */
137 #define G_FILE_SHOW_PHYSICS (1 << 14) /* deprecated */
138 #define G_FILE_GAME_MAT_GLSL (1 << 15) /* deprecated */
139 /* #define G_FILE_GLSL_NO_LIGHTS (1 << 16) */ /* deprecated */
140 #define G_FILE_GLSL_NO_SHADERS (1 << 17) /* deprecated */
141 #define G_FILE_GLSL_NO_SHADOWS (1 << 18) /* deprecated */
142 #define G_FILE_GLSL_NO_RAMPS (1 << 19) /* deprecated */
143 #define G_FILE_GLSL_NO_NODES (1 << 20) /* deprecated */
144 #define G_FILE_GLSL_NO_EXTRA_TEX (1 << 21) /* deprecated */
145 #define G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22) /* deprecated */
146 #define G_FILE_RECOVER (1 << 23)
147 #define G_FILE_RELATIVE_REMAP (1 << 24)
150 #define G_WINDOWSTATE_USERDEF 0
151 #define G_WINDOWSTATE_BORDER 1
152 #define G_WINDOWSTATE_FULLSCREEN 2
154 /* ENDIAN_ORDER: indicates what endianness the platform where the file was
158 extern short ENDIAN_ORDER;
160 /* G.moving, signals drawing in (3d) window to denote transform */
161 #define G_TRANSFORM_OBJ 1
162 #define G_TRANSFORM_EDIT 2
163 #define G_TRANSFORM_MANIP 4
164 #define G_TRANSFORM_PARTICLE 8
168 /* Memory is allocated where? blender.c */