glePolyCylinder(3GLE)
β¨ glePolyCylinder β¨
okay bestie, so this is a page from the GLE manual (that's the manual name, iykyk) and it's all about glePolyCylinder β drawing polycylinders, specified as a polyline. sit down, grab a strawberry drink π, we're doing graphics.
πΈ SYNTAX πΈ
void glePolyCylinder(int npoints,
gleDouble point_array[][3],
float color_array[][3],
gleDouble radius);
π ARGUMENTS π
npointsβ numpoints in poly-line. literally just how many points are in your polyline, no cap.point_arrayβ polyline vertices. the actual points, in 3D,[][3]style.color_arrayβ colors at polyline verts. the color for each vertex. πradiusβ cylinder radius. how thicc the tube is. π
π¦ DESCRIPTION π¦
Draw polycylinder, specified as a polyline. that's the whole vibe. π«Ά
not me about to deliver the most important plot twist: neither the very first segment, nor the very last segment are drawn. π
The first and last segments serve only to define the angle of the join at the very ends of the polyline. so they're not there for looks, they're there for geometry. Thus, to draw one segment, three must be specified. To draw two segments, four must be specified, etc. the math is mathing, bestie. β¨
The color array may be NULL. If NULL, the current color is used. If not NULL, the glColor3f() routine is used to set the color; therefore, specifying the glColorMaterial() subroutine before this primitive can be used to set diffuse, specular, ambient, etc. colors. highkey flexible. π₯
By default, the cross-section of the cylinder is drawn as a 20-sided polygon. This number can be changed using the gleSetNumSides() routine. twenty sides is the default, periodt. π
π SEE ALSO π
glePolyConegleSetNumSides
π AUTHOR π
Linas Vepstas (linas@linas.org) β the icon, the moment, the main character who wrote this. π
k that's the whole page, bestie, you're so ready. this was GLE version 3.0 of glePolyCylinder(3GLE) β slay, bye π
π§β¨
π¦ where this page comes from
- debian bookworm: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- debian trixie: libgle3-dev 3.1.2-1+b2 Β· GPL-2.0-only
- fedora 43: libgle-devel 3.1.0-36.fc43 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 43: libgle-devel 3.1.0-36.fc43 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 44: libgle-devel 3.1.0-37.fc44 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- fedora 44: libgle-devel 3.1.0-37.fc44 Β· GPL-2.0-only OR (ClArtistic AND LicenseRef-Callaway-MIT)
- nixos 26.05: gle 3.1.2
- nixpkgs unstable: gle 3.1.2
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: gle-devel 3.1.2-bp160.1.13 Β· GPL-2.0-or-later
- ubuntu jammy: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- ubuntu noble: libgle3-dev 3.1.2-1build1 Β· GPL-2.0-only
- ubuntu questing: libgle3-dev 3.1.2-1build1
- ubuntu resolute: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- ubuntu stonking: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms