Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow-samples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yanjiang He
glow-samples
Commits
41522d02
Commit
41522d02
authored
4 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
config by lambda
parent
8ddb1730
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
extern/glow-extras
+1
-1
1 addition, 1 deletion
extern/glow-extras
samples/basic/viewer/main.cc
+6
-0
6 additions, 0 deletions
samples/basic/viewer/main.cc
with
7 additions
and
1 deletion
glow-extras
@
f15b7398
Subproject commit
ef463745e04f6bdb40b4cd2fc52b448e9c3ed180
Subproject commit
f15b7398e7db82fafad5719e122e788807944dfa
This diff is collapsed.
Click to expand it.
samples/basic/viewer/main.cc
+
6
−
0
View file @
41522d02
...
...
@@ -378,6 +378,12 @@ void advanced_configs(pm::vertex_attribute<tg::pos3> const& pos)
auto
v
=
gv
::
view
(
pos
,
"explicit view configure"
);
v
.
configure
(
gv
::
no_grid
,
gv
::
no_outline
);
}
// custom configure function
gv
::
view
(
pos
,
"config via lambda"
,
[](
gv
::
SceneConfig
&
cfg
)
{
cfg
.
enableShadows
=
false
;
cfg
.
bgColorInner
=
{
1
,
0
,
1
};
});
}
void
advanced_layouting
(
pm
::
vertex_attribute
<
tg
::
pos3
>
const
&
pos
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment