Here is my problem with the follow I get a byref error because the glGetXXXXX functions don’t understand the VB array.
Dim MatrixModel(16) As GLdouble
Dim MatrixProject(16) As GLdouble
Dim MatrixView(4) As GLint
glGetIntegerv glgViewport, MatrixView
glGetDoublev glgModelViewMatrix, MatrixModel
glGetDoublev glgProjectionMatrix, MatrixProject
gluUnProject x, y, 0, MatrixModel, MatrixProject, MatrixView, MCoordX, MCoordY, MCoordZ
txtScrCoords.Text = "(" & MCoordX & "," & MCoordX & "," & MCoordX & ")"
If I remove the array and make them single like:
Dim MatrixModel As GLdouble
Dim MatrixProject As GLdouble
Dim MatrixView As GLint
It blows the VB editor away when it gets to either glGetdoublev calls.
Does this have to be done inside a pushmatrix?