Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HI-Render
ArcherRenderDoc
Commits
0080b162
Commit
0080b162
authored
2 years ago
by
Xi He@格宇
Browse files
Options
Download
Email Patches
Plain Diff
update doc
parent
89eedf65
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-6
README.md
with
16 additions
and
6 deletions
+16
-6
README.md
View file @
0080b162
...
...
@@ -1266,17 +1266,17 @@ PostDoMeshing();
更新操作包括:导入模型创建可渲染对象、新增可渲染对象、删除可渲染对象以及修改可渲染对象等。主要涉及的接口包括:
*
void BeforeUpdate();
*
void BeforeUpdate(
bool keepRens = false
);
*
void BeforeUpdate(Renderable
*
ren);
*
void BeforeUpdate(Renderable
*
ren
, bool keepRens = false
);
*
void BeforeUpdate(const std::vector
<Renderable
*
>
& renderables);
*
void BeforeUpdate(const std::vector
<Renderable
*
>
& renderables
, bool keepRens = false
);
*
void PostUpdate();
*
void PostUpdate(
bool keepRens = false
);
*
void PostUpdate(Renderable
*
ren);
*
void PostUpdate(Renderable
*
ren
, bool keepRens = false
);
*
void PostUpdate(const std::vector
<Renderable
*
>
& renderables);
*
void PostUpdate(const std::vector
<Renderable
*
>
& renderables
, bool keepRens = false
);
其中BeforeUpdate接口放置到更新操作的开始,PostUpdate接口放置到更新操作的结束。
...
...
@@ -1350,7 +1350,17 @@ PostDoMeshing();
PostUpdate(rens);
```
8.
不更改渲染数据,只是设置可渲染对象组激活状态
```
C++
BeforeUpdate(true);
for (const auto& iter : _renderables) {
iter.second->SetActive(false);
}
PostUpdate(true);
```
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help