Blender
V2.93
source
blender
blenloader
BLO_writefile.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
20
#pragma once
21
27
struct
BlendThumbnail
;
28
struct
Main
;
29
struct
MemFile
;
30
struct
ReportList
;
31
32
/* -------------------------------------------------------------------- */
41
typedef
enum
eBLO_WritePathRemap
{
43
BLO_WRITE_PATH_REMAP_NONE
= 0,
45
BLO_WRITE_PATH_REMAP_RELATIVE
= 1,
47
BLO_WRITE_PATH_REMAP_RELATIVE_ALL
= 2,
49
BLO_WRITE_PATH_REMAP_ABSOLUTE
= 3,
50
}
eBLO_WritePathRemap
;
51
53
struct
BlendFileWriteParams
{
54
eBLO_WritePathRemap
remap_mode
;
56
uint
use_save_versions
: 1;
58
uint
use_save_as_copy
: 1;
59
uint
use_userdef
: 1;
60
const
struct
BlendThumbnail
*
thumb
;
61
};
62
63
extern
bool
BLO_write_file
(
struct
Main
*mainvar,
64
const
char
*filepath,
65
const
int
write_flags,
66
const
struct
BlendFileWriteParams
*
params
,
67
struct
ReportList
*reports);
68
69
extern
bool
BLO_write_file_mem
(
struct
Main
*mainvar,
70
struct
MemFile
*compare,
71
struct
MemFile
*current,
72
int
write_flags);
73
uint
unsigned int uint
Definition:
BLI_sys_types.h:83
BLO_write_file
bool BLO_write_file(struct Main *mainvar, const char *filepath, const int write_flags, const struct BlendFileWriteParams *params, struct ReportList *reports)
Definition:
writefile.c:1128
eBLO_WritePathRemap
eBLO_WritePathRemap
Definition:
BLO_writefile.h:41
BLO_WRITE_PATH_REMAP_NONE
@ BLO_WRITE_PATH_REMAP_NONE
Definition:
BLO_writefile.h:43
BLO_WRITE_PATH_REMAP_RELATIVE_ALL
@ BLO_WRITE_PATH_REMAP_RELATIVE_ALL
Definition:
BLO_writefile.h:47
BLO_WRITE_PATH_REMAP_ABSOLUTE
@ BLO_WRITE_PATH_REMAP_ABSOLUTE
Definition:
BLO_writefile.h:49
BLO_WRITE_PATH_REMAP_RELATIVE
@ BLO_WRITE_PATH_REMAP_RELATIVE
Definition:
BLO_writefile.h:45
BLO_write_file_mem
bool BLO_write_file_mem(struct Main *mainvar, struct MemFile *compare, struct MemFile *current, int write_flags)
Definition:
writefile.c:1276
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition:
interface_widgets.c:1164
BlendFileWriteParams
Definition:
BLO_writefile.h:53
BlendFileWriteParams::use_save_as_copy
uint use_save_as_copy
Definition:
BLO_writefile.h:58
BlendFileWriteParams::thumb
const struct BlendThumbnail * thumb
Definition:
BLO_writefile.h:60
BlendFileWriteParams::use_userdef
uint use_userdef
Definition:
BLO_writefile.h:59
BlendFileWriteParams::use_save_versions
uint use_save_versions
Definition:
BLO_writefile.h:56
BlendFileWriteParams::remap_mode
eBLO_WritePathRemap remap_mode
Definition:
BLO_writefile.h:54
BlendThumbnail
Definition:
BKE_main.h:57
Main
Definition:
BKE_main.h:116
MemFile
Definition:
BLO_undofile.h:46
ReportList
Definition:
DNA_windowmanager_types.h:104
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1