Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Lent 1AC++] I want to have ModelData data as a parameter to my graphics function, but it won let me. How can I get the coordinate information into the graphics function?

0
Posted

Lent 1AC++] I want to have ModelData data as a parameter to my graphics function, but it won let me. How can I get the coordinate information into the graphics function?

0

– When GLUT (the graphics system that we use) needs to redraw a window it calls the function that you mentioned in the graphicsfunction call. That function has to accept exactly 2 integers, because that’s how GLUT calls it – the integers are the current width and height of the window. The way we suggest you get the data into the graphics routine isn’t generally recommended, but it works.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123