Blender V4.3
StrokeShader.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include <iostream>
13#include <vector>
14
15#ifdef WITH_CXX_GUARDEDALLOC
16# include "MEM_guardedalloc.h"
17#endif
18
19using namespace std;
20
21namespace Freestyle {
22
23//
24// StrokeShader base class
25//
27
28class Stroke;
29
53 public:
54 void *py_ss;
55
58 {
59 py_ss = 0;
60 }
61
63 virtual ~StrokeShader() {}
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 int shade(Stroke &ioStroke) const
virtual string getName() const
inherits from class Rep
Definition AppCanvas.cpp:20