GLUNURBSCALLBACKDATA(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸ’– GLUNURBSCALLBACKDATA πŸ’–

okay bestie, so this is a page from the 3G manual β€” yes, that 3G at the end is the manual name, it's giving "library functions" energy and we love her for it 🫢


✨ NAME ✨

gluNurbsCallbackData β€” set a user data pointer πŸŽ€


🌸 C SPECIFICATION 🌸

void gluNurbsCallbackData( GLUnurbs* nurb,
                           GLvoid* userData )

πŸ’… PARAMETERS πŸ’…

  • nurb β€” specifies the NURBS object (created with gluNewNurbsRenderer). yes queen, you gotta have one first 😌
  • userData β€” specifies a pointer to the user's data. it's your stuff, you bring it, you own it πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, gluNurbsCallbackData is the move where you hand the NURBS tessellator a pointer to your application's data. that's it, that's the whole vibe 🌈

then, and this is the iconic part, a copy of this pointer gets passed by the tessellator in the NURBS callback functions (the ones you set up with gluNurbsCallback). so your data literally follows you into the callback. main character energy, fr fr πŸ‘‘


⭐ NOTES ⭐

bestie, lowkey important: gluNurbsCallbackData is available only if the GLU version is 1.3 or greater. check that version before you get your hopes up πŸ˜­πŸ’€

πŸ’œ SEE ALSO πŸ’œ

  • gluNewNurbsRenderer(3G)
  • gluNurbsCallback(3G)

and that's a wrap, no cap 🌸 this lil cutie of a page lives in the 3G manual and signs off as GLUNURBSCALLBACKDATA(3G) β€” go forth and pass your pointers, iykyk πŸ’…βœ¨

πŸ“¦ where this page comes from