本文整理汇总了C++中ActionList::add_all方法的典型用法代码示例。如果您正苦于以下问题:C++ ActionList::add_all方法的具体用法?C++ ActionList::add_all怎么用?C++ ActionList::add_all使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionList
的用法示例。
在下文中一共展示了ActionList::add_all方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PtrFreeScene
// constructor receiving a config struct
//*************************
PtrFreeScene :: PtrFreeScene(const Config& config)
: accel_type(config.accel_type) {
//************************
// load input scene in luxrays format
// TODO what is this -1? Is it the accelerator structure?
//data_set = original_scene->UpdateDataSet();
original_scene = new luxrays::Scene(config.scene_file, config.width, config.height, config.accel_type);
data_set = original_scene->UpdateDataSet();
vertexes = NULL;
normals = NULL;
colors = NULL;
uvs = NULL;
triangles = NULL;
mesh_descs = NULL;
mesh_ids = NULL;
mesh_first_triangle_offset = NULL;
compiled_materials = NULL;
materials = NULL;
mesh_materials = NULL;
area_lights = NULL;
tex_maps = NULL;
rgb_tex = NULL;
alpha_tex = NULL;
mesh_texs = NULL;
bump_map = NULL;
bump_map_scales = NULL;
normal_map = NULL;
// recompile the entire scene
ActionList actions;
actions.add_all();
recompile(actions);
n_nodes = data_set->GetAccelerator()->GetNodesCount();
n_prims = data_set->GetAccelerator()->GetPrimsCount();
nodes = NULL;
prims = NULL;
}