Blender  V2.93
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 
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 
39 {
40  BLI_assert(m_rd);
41  return m_rd->cfra;
42 }
43 
44 } // namespace blender::compositor
#define BLI_assert(a)
Definition: BLI_assert.h:58
CompositorContext()
constructor initializes the context with default values.
int getFramenumber() const
get the current frame-number of the scene in this context