Blender
V5.0
source
blender
blenlib
intern
resource_scope.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#include "
BLI_resource_scope.hh
"
10
11
namespace
blender
{
12
13
ResourceScope::ResourceScope
() =
default
;
14
15
ResourceScope::~ResourceScope
()
16
{
17
/* Free in reversed order. */
18
for
(
int64_t
i
= resources_.size();
i
--;) {
19
ResourceData &
data
= resources_[
i
];
20
data
.free(
data
.data);
21
}
22
}
23
24
}
// namespace blender
BLI_resource_scope.hh
data
BMesh const char void * data
Definition
bmesh_iterators_inline.hh:37
int64_t
long long int int64_t
Definition
btConvexHullComputer.cpp:31
blender::ResourceScope::~ResourceScope
~ResourceScope()
Definition
resource_scope.cc:15
blender::ResourceScope::ResourceScope
ResourceScope()
blender
Definition
ANIM_action.hh:36
i
i
Definition
text_draw.cc:230
Generated on
for Blender by
doxygen
1.16.1