View Full Version : passing parameters in VC++
Ali Saeed Khan
12-26-2009, 10:24 AM
I have just started using opengl with visual C++ 6, I cannot pass parameters to functions called from glutDisplayFunc(), please help me out
12-27-2009, 02:08 AM
I cannot understand what your exact question is but assuming you want to know how to register a display callback function here is my reply:
Say you have a function Render() in which you write the rendering related code. This function is called whenever you want to render into the frame buffer.
In order to register this function ( Or tell glut that this is the function to be called whenever the scene has to be rendered) you have to pass the function as a parameter to the glutDisplayFunc()
hope this answers your query.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.