I'm using CsGL with VB in .net, and trying to do a simple texture mapping of an image onto a trapazoid.
I load the texture with
Texture = New OpenGLTexture2D("C:/texture.jpg")
then bind it with Texture.Bind()
then draw my vertices with:
glVertex3f(-2.0F, 3.0F, -8.0F)
glVertex3f(2.0F, 3.0F, -8.0F)
glVertex3f(2.0F, 1.0F, -8.0F)
glVertex3f(-1.0F, 1.0F, -8.0F)
This draws the polygon fine, but without my texture.
what am I not doing that I need to do?
Log in to post a comment.