I would like to Develop OpenGL Applications with VB. I used to do it with C++WinApi Programming. The Problem with using it with VB is: How will i insert an OpenGL view port in VB. I used Tao to Make a View port. I initialized its Contexts. Everything was fine Except the Output Was Terrifically Ridiculous.
for Eg: if I give a simple code:
glClearColor(0.0, 0.0, 0.0, 0.0)
glClear(GL_COLOR_BUFFER_BIT)
glColor3f(1.0, 1.0, 1.0)
glOrtho(−1.0, 1.0, −1.0, 1.0, −1.0, 1.0)
glBegin(GL_POLYGON)
glVertex2f(−0.5, −0.5)
glVertex2f(−0.5, 0.5)
glVertex2f(0.5, 0.5)
glVertex2f(0.5, −0.5)
glEnd()
glFlush()
the normal output must be like a White Rectangle, the output is like some Deformed Polygon.
I know Tao is Usually used with C#.What will I do with VB. thanks IN advance!!