Blender
V4.3
source
blender
freestyle
intern
system
Cast.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
namespace
Freestyle
{
13
14
namespace
Cast
{
15
template
<
class
T,
class
U>
U
*
cast
(
T
*in)
16
{
17
if
(!in) {
18
return
nullptr
;
19
}
20
return
dynamic_cast<
U
*
>
(in);
21
}
22
}
// end of namespace Cast
23
24
}
/* namespace Freestyle */
U
#define U
T
#define T
Definition
mball_tessellate.cc:273
Freestyle::Cast
Definition
Cast.h:14
Freestyle::Cast::cast
U * cast(T *in)
Definition
Cast.h:15
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0