Mam taki kod programu :
private void openGLControl1_OpenGLDraw(object sender, PaintEventArgs e)
{
// Get the OpenGL object, for quick access.
SharpGL.OpenGL gl = this.openGLControl1.OpenGL;
gl.Enable(SharpGL.OpenGL.BLEND);
gl.BlendFunc(SharpGL.OpenGL.ONE, SharpGL.OpenGL.ONE);
gl.Color4b(128, 64, 0, 0);
gl.Clear(SharpGL.OpenGL.COLOR_BUFFER_BIT | SharpGL.OpenGL.DEPTH_BUFFER_BIT);
gl.LoadIdentity();
gl.Translate(0.0f, 0.0f, -6.0f);
gl.Rotate(0.0f, 0.0f, 1.0f, 0.0f);
texture.Bind(gl);
gl.Begin(SharpGL.OpenGL.QUADS);
gl.TexCoord(0.0f, 0.0f); gl.Vertex(0.0f, -1.5f, 0.0f); // Bottom Left Of The Texture and Quad
gl.TexCoord(1.0f, 0.0f); gl.Vertex(2.5f, -1.5f, 0.0f); // Bottom Right Of The Texture and Quad
gl.TexCoord(1.0f, 1.0f); gl.Vertex(2.5f, 1.0f, 0.0f); // Top Right Of The Texture and Quad
gl.TexCoord(0.0f, 1.0f); gl.Vertex(0.0f, 1.0f, 0.0f); // Top Left Of The Texture and Quad
gl.End();
}
chciałbym sie zapytać czy mógłby mi ktoś powiedzieć dlaczego na teksturze dalej sie wyświetla kolor brązowy ??