GLUTSOLIDCONE(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ GLUTSOLIDCONE(3) ✨

okay bestie, welcome to the GLUTSOLIDCONE page πŸ’– it lives in the OpenGLUT manual, and it's filed under geometry β€” so you already know it's gonna be a lil artsy πŸŽ€


🌸 NAME 🌸

glutSolidCone β€” draw a solid cone. that's it. that's the whole vibe πŸ’…


πŸ“š LIBRARY πŸ“š

OpenGLUT β€” geometry πŸ¦‹


⭐ SYNOPSIS ⭐

#include <openglut.h>

void
glutSolidCone(GLdouble base, GLdouble height, GLint slices,
    GLint stacks);

like, copy that exactly, don't freestyle it πŸ™ˆ


πŸŽ€ PARAMETERS πŸŽ€

  • base β€” the cone's radius at the base, measured in the xy plane. so like, how wide the bottom is πŸ“
  • height β€” how tall the cone is, going in the positive z direction. up up up πŸ’œ
  • slices β€” the number of divisions around the z axis. that's the latitudal ones, iykyk 🌈
  • stacks β€” the number of divisions along the z axis. those are the longitudal ones, periodt ✨

πŸ’– DESCRIPTION πŸ’–

The glutSolidCone() function draws a shaded cone with a base sitting in the xy-plane, oriented in the positive z direction. it's giving pyramid's prettier cousin, no cap πŸ‘‘


πŸ’€ CAVEATS πŸ’€

okay listen, this one matters. the number of polygons representing the conical surface is proportional to (slices*stacks) β€” so if you crank those numbers up, the polygon count goes up with them. not me warning you about your own triangle budget 😭


πŸ‘€ SEE ALSO πŸ‘€

  • glutWireCone(3) β€” the wireframe sibling, the see-through icon that it is 🧚

and that's the whole page, babe 🫢 this one was UNDATED and it came from UNTITLED() β€” yes really, that's the source and version, iconic honestly πŸ’…βœ¨