grodslukaren
06-29-2001, 11:50 AM
Hi,
I try to update my OpenGl window letīs say 10 times to make a "video", everything depends on the values Iīve got. Iīm looking
in my debugger and I do go through the function below 10 times when I create the object 10 times and do Refresh() of the OpenGLwindow (wxWindows)
It does only show the last "picture" of the 10 scenes. Have you guys done this before?? What do I have to do??
Thanks!!
/grodslukaren
void C3DPaintCanvas::UpdateScalp()
{
// create the scalp displaylist, overwrite the old one, data from m_pScalpMesh
glNewList(3,GL_COMPILE_AND_EXECUTE);
m_pBody = new CBody3D(m_pScalpMesh->m_pMesh,2);
delete m_pBody;
// destroy the body, donīt needed when stored in displaylist
glEndList();
m_pBody = NULL;
// update the screen
Refresh(true);
}
I try to update my OpenGl window letīs say 10 times to make a "video", everything depends on the values Iīve got. Iīm looking
in my debugger and I do go through the function below 10 times when I create the object 10 times and do Refresh() of the OpenGLwindow (wxWindows)
It does only show the last "picture" of the 10 scenes. Have you guys done this before?? What do I have to do??
Thanks!!
/grodslukaren
void C3DPaintCanvas::UpdateScalp()
{
// create the scalp displaylist, overwrite the old one, data from m_pScalpMesh
glNewList(3,GL_COMPILE_AND_EXECUTE);
m_pBody = new CBody3D(m_pScalpMesh->m_pMesh,2);
delete m_pBody;
// destroy the body, donīt needed when stored in displaylist
glEndList();
m_pBody = NULL;
// update the screen
Refresh(true);
}