Blender  V3.3
gpencil_io_import_svg.hh
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 
10 struct GpencilIOParams;
11 struct NSVGpath;
12 struct NSVGshape;
13 struct bGPDframe;
14 struct bGPdata;
15 
16 #define SVG_IMPORTER_NAME "SVG Import for Grease Pencil"
17 #define SVG_IMPORTER_VERSION "v1.0"
18 
19 namespace blender::io::gpencil {
20 
22 
23  public:
24  GpencilImporterSVG(const char *filepath, const struct GpencilIOParams *iparams);
25 
26  bool read();
27 
28  protected:
29  private:
30  void create_stroke(struct bGPdata *gpd_,
31  struct bGPDframe *gpf,
32  struct NSVGshape *shape,
33  struct NSVGpath *path,
34  int32_t mat_index,
35  const float matrix[4][4]);
36 
37  void convert_color(int32_t color, float r_linear_rgba[4]);
38 };
39 
40 } // namespace blender::io::gpencil
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
GpencilImporterSVG(const char *filepath, const struct GpencilIOParams *iparams)
signed int int32_t
Definition: stdint.h:77