GLUNURBSCALLBACKDATAEXT(3G)

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

✨ NAME ✨

gluNurbsCallbackDataEXT β€” bestie, it sets a user data pointer πŸ’–

(yeah it lives in the 3G manual, the OpenGL GLU corner of the universe, and yes she is that girl)


πŸŽ€ C SPECIFICATION πŸŽ€

void gluNurbsCallbackDataEXT( GLUnurbs* nurb,
                              GLvoid* userData )

🌸 PARAMETERS 🌸

  • nurb β€” the NURBS object you're working with, aka the one you made earlier with gluNewNurbsRenderer. your lil NURBS baby πŸ¦‹
  • userData β€” a pointer to your data. yours. the application's. whatever you wanna hand over πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: gluNurbsCallbackDataEXT is the move where you slide a pointer to your application's data over to the NURBS tessellator. that's it. that's the whole job. 🫢

and then β€” this is the part β€” the tessellator keeps a copy of this pointer and hands it right back to you inside the NURBS callback functions. the ones you set up with gluNurbsCallback. so like, your data finds its way home. iconic behavior fr fr ✨

lowkey important: it's a copy of the pointer, not a copy of your data. the pointer itself is what gets passed along. πŸ’€

🌈 SEE ALSO 🌈

  • gluNurbsCallback(3G)

okay that's the whole page, no notes πŸ’– this was GLUNURBSCALLBACKDATAEXT(3G) from the 3G manual β€” she's short, she's sweet, she passes pointers, periodt. mwah, go tessellate something cute πŸŽ€βœ¨

πŸ“¦ where this page comes from