Blender
V5.0
source
blender
freestyle
intern
stroke
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
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
55
StrokeShader
()
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 */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Freestyle::StrokeShader::~StrokeShader
virtual ~StrokeShader()
Definition
StrokeShader.h:61
Freestyle::StrokeShader::shade
virtual int shade(Stroke &ioStroke) const
Definition
StrokeShader.cpp:15
Freestyle::StrokeShader::py_ss
void * py_ss
Definition
StrokeShader.h:52
Freestyle::StrokeShader::StrokeShader
StrokeShader()
Definition
StrokeShader.h:55
Freestyle::StrokeShader::getName
virtual string getName() const
Definition
StrokeShader.h:64
Freestyle::Stroke
Definition
Stroke.h:483
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on
for Blender by
doxygen
1.16.1