Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Glow
glow-samples
Commits
f3a211d3
Commit
f3a211d3
authored
Jun 25, 2019
by
Jonathan Kunstwald
Browse files
Update glow-extras, disable broken viewer case
parent
61923d7b
Pipeline
#11080
failed with stage
in 16 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
glow-extras
@
f94b57fd
Subproject commit
3485bba0bb1ebbc62e84e2d36199763cedc905a0
Subproject commit
f94b57fde59962d5f29e6a6009b01fcb77cea2be
samples/wip/viewer/main.cc
View file @
f3a211d3
...
...
@@ -41,7 +41,7 @@ int main()
auto
ptsize
=
m
.
vertices
().
map
([
&
](
pm
::
vertex_handle
v
)
{
return
v
.
edges
().
avg
(
edge_lengths
);
});
// Simplest view
glow
::
viewer
::
view
(
pos
);
//
glow::viewer::view(pos);
// Grid of examples
{
...
...
@@ -94,7 +94,7 @@ int main()
v
.
view
(
polygons
(
pos
).
move
({
+
1.5
f
,
0
,
0
}),
glow
::
colors
::
color
(
0
,
0
,
1
));
// or:
v
.
view
(
pos
,
scale
(
glm
::
vec3
(
0.5
f
,
1
,
1.5
f
)
),
glow
::
colors
::
color
(
0
,
1
,
0
));
//
v.view(pos,
tg::scaling(tg::size3{
0.5f, 1, 1.5f
}
), glow::colors::color(0, 1, 0));
}
// Complex material
...
...
Write
Preview
Supports
Markdown
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