Blender  V3.3
StrokeShader.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 #include <iostream>
11 #include <vector>
12 
13 #ifdef WITH_CXX_GUARDEDALLOC
14 # include "MEM_guardedalloc.h"
15 #endif
16 
17 using namespace std;
18 
19 namespace Freestyle {
20 
21 //
22 // StrokeShader base class
23 //
25 
26 class Stroke;
27 
50 class StrokeShader {
51  public:
52  void *py_ss;
53 
56  {
57  py_ss = 0;
58  }
59 
61  virtual ~StrokeShader()
62  {
63  }
64 
66  virtual string getName() const
67  {
68  return "StrokeShader";
69  }
70 
76  virtual int shade(Stroke &ioStroke) const;
77 
78 #ifdef WITH_CXX_GUARDEDALLOC
79  MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeShader")
80 #endif
81 };
82 
83 } /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual string getName() const
Definition: StrokeShader.h:66
inherits from class Rep
Definition: AppCanvas.cpp:18