Blender
V2.93
source
blender
compositor
intern
COM_CompositorContext.cc
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* Copyright 2011, Blender Foundation.
17
*/
18
19
#include "
COM_CompositorContext.h
"
20
#include "
COM_defines.h
"
21
#include <cstdio>
22
23
#include "
BLI_assert.h
"
24
25
namespace
blender::compositor
{
26
27
CompositorContext::CompositorContext
()
28
{
29
this->m_scene =
nullptr
;
30
this->m_rd =
nullptr
;
31
this->m_quality =
eCompositorQuality::High
;
32
this->m_hasActiveOpenCLDevices =
false
;
33
this->m_fastCalculation =
false
;
34
this->m_viewSettings =
nullptr
;
35
this->m_displaySettings =
nullptr
;
36
}
37
38
int
CompositorContext::getFramenumber
()
const
39
{
40
BLI_assert
(m_rd);
41
return
m_rd->
cfra
;
42
}
43
44
}
// namespace blender::compositor
BLI_assert.h
BLI_assert
#define BLI_assert(a)
Definition:
BLI_assert.h:58
COM_CompositorContext.h
COM_defines.h
blender::compositor::CompositorContext::CompositorContext
CompositorContext()
constructor initializes the context with default values.
Definition:
COM_CompositorContext.cc:27
blender::compositor::CompositorContext::getFramenumber
int getFramenumber() const
get the current frame-number of the scene in this context
Definition:
COM_CompositorContext.cc:38
blender::compositor::eCompositorQuality::High
@ High
High quality setting.
blender::compositor
Definition:
COM_defines.h:21
RenderData::cfra
int cfra
Definition:
DNA_scene_types.h:616
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1