Blender  V3.3
gpencil_io.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2020 Blender Foundation. All rights reserved. */
3 #pragma once
4 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 struct ARegion;
14 struct Object;
15 struct View3D;
16 struct bContext;
17 
18 typedef struct GpencilIOParams {
30  float scale;
39  char filename[128];
41 
42 /* GpencilIOParams->flag. */
43 typedef enum eGpencilIOParams_Flag {
44  /* Export Filled strokes. */
45  GP_EXPORT_FILL = (1 << 0),
46  /* Export normalized thickness. */
48  /* Clip camera area. */
51 
52 typedef enum eGpencilIO_Modes {
55 
57  /* Add new formats here. */
59 
60 /* Object to be exported. */
61 typedef enum eGpencilExportSelect {
66 
68 typedef enum eGpencilExportFrame {
73 
77 bool gpencil_io_export(const char *filepath, struct GpencilIOParams *iparams);
81 bool gpencil_io_import(const char *filepath, struct GpencilIOParams *iparams);
82 
83 #ifdef __cplusplus
84 }
85 #endif
eGpencilExportSelect
Definition: gpencil_io.h:61
@ GP_EXPORT_SELECTED
Definition: gpencil_io.h:63
@ GP_EXPORT_ACTIVE
Definition: gpencil_io.h:62
@ GP_EXPORT_VISIBLE
Definition: gpencil_io.h:64
bool gpencil_io_import(const char *filepath, struct GpencilIOParams *iparams)
struct GpencilIOParams GpencilIOParams
eGpencilExportFrame
Definition: gpencil_io.h:68
@ GP_EXPORT_FRAME_SELECTED
Definition: gpencil_io.h:70
@ GP_EXPORT_FRAME_ACTIVE
Definition: gpencil_io.h:69
@ GP_EXPORT_FRAME_SCENE
Definition: gpencil_io.h:71
eGpencilIO_Modes
Definition: gpencil_io.h:52
@ GP_EXPORT_TO_SVG
Definition: gpencil_io.h:53
@ GP_IMPORT_FROM_SVG
Definition: gpencil_io.h:56
@ GP_EXPORT_TO_PDF
Definition: gpencil_io.h:54
bool gpencil_io_export(const char *filepath, struct GpencilIOParams *iparams)
eGpencilIOParams_Flag
Definition: gpencil_io.h:43
@ GP_EXPORT_NORM_THICKNESS
Definition: gpencil_io.h:47
@ GP_EXPORT_CLIP_CAMERA
Definition: gpencil_io.h:49
@ GP_EXPORT_FILL
Definition: gpencil_io.h:45
unsigned short uint16_t
Definition: stdint.h:79
unsigned int uint32_t
Definition: stdint.h:80
signed int int32_t
Definition: stdint.h:77
uint16_t frame_mode
Definition: gpencil_io.h:34
int32_t frame_cur
Definition: gpencil_io.h:28
char filename[128]
Definition: gpencil_io.h:39
uint16_t select_mode
Definition: gpencil_io.h:32
int32_t resolution
Definition: gpencil_io.h:37
float stroke_sample
Definition: gpencil_io.h:36
uint32_t flag
Definition: gpencil_io.h:29
int32_t frame_end
Definition: gpencil_io.h:27
int32_t frame_start
Definition: gpencil_io.h:26
bContext * C
Definition: gpencil_io.h:19
uint16_t mode
Definition: gpencil_io.h:25
View3D * v3d
Definition: gpencil_io.h:21
ARegion * region
Definition: gpencil_io.h:20
Object * ob
Definition: gpencil_io.h:23