Display function question

Can I make the display function independent of the other graphics code?

I mean can I pass any number of arguments in display function?
(change signature of function)

It depends on what toolkit you’re using. If you’re using GLUT, then you cannot change the signature of the display function, as GLUT won’t pass any arguments to it.

I am using JOGL to write my code. SO can I change signatures of display function?