Blender  V2.93
bake.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2014 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __BAKE_H__
18 #define __BAKE_H__
19 
20 #include "device/device.h"
21 #include "render/scene.h"
22 
23 #include "util/util_progress.h"
24 #include "util/util_vector.h"
25 
27 
28 class BakeManager {
29  public:
30  BakeManager();
31  ~BakeManager();
32 
33  void set(Scene *scene, const std::string &object_name, ShaderEvalType type, int pass_filter);
34  bool get_baking();
35 
36  void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress &progress);
37  void device_free(Device *device, DeviceScene *dscene);
38 
39  void tag_update();
40 
41  bool need_update() const;
42 
43  private:
44  bool need_update_;
46  int pass_filter;
47  std::string object_name;
48 };
49 
51 
52 #endif /* __BAKE_H__ */
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
bool get_baking()
Definition: bake.cpp:88
~BakeManager()
Definition: bake.cpp:84
bool need_update() const
Definition: bake.cpp:167
void set(Scene *scene, const std::string &object_name, ShaderEvalType type, int pass_filter)
Definition: bake.cpp:93
void device_free(Device *device, DeviceScene *dscene)
Definition: bake.cpp:158
BakeManager()
Definition: bake.cpp:76
void tag_update()
Definition: bake.cpp:162
void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
Definition: bake.cpp:122
Definition: device.h:293
Scene scene
#define CCL_NAMESPACE_END
ShaderEvalType
Definition: kernel_types.h:196