GLUTWIRECYLINDER(3)

πŸ’– GLUTWIRECYLINDER(3) πŸ’–

okay bestie, so this is a page from the OpenGLUT manual β€” section 3, geometry. it's giving "let me draw you a lil cage of a cylinder" and honestly? iconic. πŸŽ€

🌈 NAME 🌈

glutWireCylinder β€” draws a wireframe cylinder. that's it. that's the whole job. slay. ✨

πŸ“š LIBRARY πŸ“š

OpenGLUT β€” geometry πŸ¦‹


✨ SYNOPSIS ✨

no cap, here's exactly how you call it:

#include <openglut.h>

void
glutWireCylinder(GLdouble radius, GLdouble height, GLint slices,
    GLint stacks);

πŸŽ€ PARAMETERS πŸŽ€

  • radius β€” the radius of the cylinder πŸ’« like how thicc it is around the middle
  • height β€” the Z height. yes, Z. we're being vertical about this 🧚
  • slices β€” how many divisions go around the z axis (think: the number of vertical stripes in your lil wireframe cage) πŸ“
  • stacks β€” how many divisions go along the z axis (the horizontal rings, top to bottom) 🫢

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: glutWireCylinder() draws a wireframe of a cylinder. wireframe meaning you get the ✨bones✨ β€” the edges β€” not a solid filled-in shape. no cap.

the center of its base sits right at the origin (0, 0, 0, babes, dead center), and the cylinder's axis parallels the z axis. so it stands up straight along z, main character energy, no tilting. πŸ‘‘

not me reminding you it's a wireframe β€” if you wanted a solid one, that's a whole different function, keep reading bestie 😭

πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page, bestie!! 🫢 this lil beauty lives in the OpenGLUT manual β€” the footer said UNDATED for the date and UNTITLED() for the title/version situation, which is honestly so mysterious of it πŸ’€ go draw some cylinders, you got this, periodt πŸ’–βœ¨