Blender V5.0
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
11
12#include <iostream>
13#include <vector>
14
15#include "MEM_guardedalloc.h"
16
17using namespace std;
18
19namespace Freestyle {
20
21//
22// StrokeShader base class
23//
25
26class Stroke;
27
51 public:
52 void *py_ss;
53
56 {
57 py_ss = 0;
58 }
59
61 virtual ~StrokeShader() {}
62
64 virtual string getName() const
65 {
66 return "StrokeShader";
67 }
68
74 virtual int shade(Stroke &ioStroke) const;
75
76 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeShader")
77};
78
79} /* 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