PDA

View Full Version : need help with glGetFloatv in visual basic 6



n123456
08-15-2002, 03:41 PM
I'm trying to use glGetFloatv in visual basic 6 and it does not seem to work
does any one know how to make it work as well as declaring the function like

Public Declare Function or Sub glGetFloatv _
Lib "opengl32.dll" ( _
ByVal pname As ******, _
ByVal params As ******) _
As ****** '
any help is needed thanx

edx
08-15-2002, 11:26 PM
You can get a type library at: http://is6.pacific.net.hk/~edx/
Then you call like this:
Dim m!(0 To 15)
glGetFloatv GL_MODELVIEW_MATRIX, m(0)

Otherwise try declaring it:
Declare Sub glGetFloatv _
Lib "opengl32.dll" ( _
ByVal pname As long, _
ByRef params As float)
(I didn't test the declaration, but it would be called as above)