viewport3d-modes

command
v1.17.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command viewport3d-modes is a development example (step 30.9): one part (a box, a cylinder and a sphere) in the four display modes of package viewport3d (shaded, shaded with edges, wireframe and hidden line), side by side, each in a viewport3d.View that the mouse and the touch orbit, pan and zoom. It uses the part of internal/scenetest, so it is under examples/dev.

Run it with: go run ./examples/dev/viewport3d-modes

It needs a GPU renderer (Vulkan, Direct3D 12 or WebGPU); with another one each view shows its fallback, a line of text.

Environment: GLUTTER_BACKEND=x11|wayland, GLUTTER_RENDERER=vulkan, GLUTTER_SCREENSHOT=<file.png>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL