PDA

View Full Version : GLUT with MFC is possible or not



sunil
10-01-2002, 01:06 PM
is that for GLUT programming void main(arg...) or int main(argc...)is necessary.

I want to open a GLUT window when clicked on a MenuItem of a Dialog Based Interface's Menu.

What code has to be written in OnClickButton() function to open a Glut Window ..
or is it that it is not possible

cwc36
10-01-2002, 03:45 PM
If u familiar with MFC. In MFC u can add a mouse function. Then MFc also create a window for u.. so u don't need to call void main().The main() in glut just help us to create a window.

if u want to use glut function, u can use
glutSolidCube(1);

Nothing
10-01-2002, 04:11 PM
MFC & GLUT dont mix well...