rendering to VB.net / 2010 picture box

Started by
2 comments, last by V-man 12 years, 8 months ago
Can anyone provide example codes to render opengl codes to a vb.net or Visual Basic 2010 picture box?
Advertisement
anybody????
First of all, I do not use VB.NET and OpenGL so excuse me if this is incorrect. With that said...

Have you seen NeHe? His tutorials all have source code and they have all been converted to different languages by contributors.
http://nehe.gamedev.net/

I'm not sure how OpenGL is setup in .NET, but I assume you have to pass it some kind of hWnd or hDC or ?? If so this may shed some light as well:
http://social.msdn.m...6-c12717c1c5c9/

Best of luck and hopefully someone that actually uses it can be of more help.
I would head on over to the OpenTK forums since people who use c# and vb.net tend to use the OpenTK wrapper.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement