grodslukaren
07-10-2001, 11:07 AM
I wonder if there is a problem to use more than one window with OpenGL
at the same time?? I´ve created a class that shows a head in different
angles. But when I try to use them, they all have the same modelviewMatrix
and projectionMatrix, even though it´s three different objects.
when I create my objects I do like this:
m_pMain3DFrame = new CDirectCanvas(this, -1, wxPoint(5,5), wxSize(250,250),MAIN);
m_pUpper3DFrame = new CDirectCanvas(this, -1, wxPoint(260,5), wxSize(122,122),UPPER);
m_pLower3DFrame = new CDirectCanvas(this, -1, wxPoint(260,133), wxSize(122,122),LOWER);
and the result of this is that the two upper OpenGL objects have the
same Matrixes as the last one.
What is wrong, or what do I have to do??
/grodslukaren
at the same time?? I´ve created a class that shows a head in different
angles. But when I try to use them, they all have the same modelviewMatrix
and projectionMatrix, even though it´s three different objects.
when I create my objects I do like this:
m_pMain3DFrame = new CDirectCanvas(this, -1, wxPoint(5,5), wxSize(250,250),MAIN);
m_pUpper3DFrame = new CDirectCanvas(this, -1, wxPoint(260,5), wxSize(122,122),UPPER);
m_pLower3DFrame = new CDirectCanvas(this, -1, wxPoint(260,133), wxSize(122,122),LOWER);
and the result of this is that the two upper OpenGL objects have the
same Matrixes as the last one.
What is wrong, or what do I have to do??
/grodslukaren