I’m trying to seperate my rendering calls into a seperate .cpp file.
Right now I use
glutInitDisplayMode ( GLUT_RGBA | GLUT_DOUBLE );
glutInitWindowSize ( 350, 350 );
glutCreateWindow ( " Active Brain " );
in my main function. Then have the rendering in the init() and display() functions all insight the one .cpp file.
I want to be able to pass a window to a .cpp function, as if it were an API, and have the rendering begin.
Is there a way to do this? Am I make any sense at all?