Skip to content
Snippets Groups Projects
Commit fcdb5b5f authored by Philip Trettner's avatar Philip Trettner
Browse files

adapted samples to new tg

parent aaaa2ab1
No related branches found
No related tags found
No related merge requests found
glow @ 586b7ab6
Subproject commit 736bc4f33bddaae68eeb5d541431079b4fa79693
Subproject commit 586b7ab6bd43921de52605e99c21ce43d39a98dd
glow-extras @ a821ee75
Subproject commit 8ace27475742d788c6fdb210b1164f3a3c83e6b7
Subproject commit a821ee75e99e1303060aed3048732b35e01adab4
polymesh @ feb3d897
Subproject commit 9cea0cc102096f2cc4a715b2db406803be41d3f6
Subproject commit feb3d897362c7985cc74f170f0411bfda1bc5366
typed-geometry @ 9849f4f0
Subproject commit 93b0bedbac60264a539c5d116c60769baeeb4638
Subproject commit 9849f4f05262ca94a55a3027ea04d5e38f62d542
......@@ -112,7 +112,7 @@ void Vector2DSample::render(float elapsedSeconds)
g.draw(tg::sphere2({x, y}, 15.f), {{0, 0, 0}, 2});
next();
g.fill(tg::circle2({x, y}, 15.f), {0, 0, 1});
g.fill(tg::disk2({x, y}, 15.f), {0, 0, 1});
g.draw(tg::circle2({x, y}, 15.f), {{0, 0, 0}, 2});
next();
......
......@@ -138,7 +138,7 @@ int main()
{
glow::vector::image2D img;
auto g = graphics(img);
g.fill(tg::circle2({100, 100}, 70), tg::color3::red);
g.fill(tg::disk2({100, 100}, 70), tg::color3::red);
g.draw(tg::circle2({100, 100}, 70), {tg::color3::black, 2});
view(img);
}
......@@ -264,7 +264,7 @@ int main()
auto e1 = cross(e0, uniform_vec(rng, tg::sphere3::unit));
auto e2 = cross(e1, e0);
auto c = uniform(rng, tg::ball3::unit);
auto c = uniform(rng, tg::sphere3::unit);
e0 = normalize(e0) * uniform(rng, 0.2f, 0.5f);
e1 = normalize(e1) * uniform(rng, 0.2f, 0.5f);
......
#include "Voxels.hh"
#include <typed-geometry/common/assert.hh>
#include <typed-geometry/feature/assert.hh>
#include <array>
#include <utility>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment