S
S
Stanislav Silin2014-09-14 21:37:18
OpenGL
Stanislav Silin, 2014-09-14 21:37:18

Why doesn't SharpGL draw a polygon when given a vector?

//Есть массив координат(x1, y1, x2, y2, ...)
float[] data //...;

//Есть код отрисовки
 gl.Begin(SharpGL.Enumerations.BeginMode.Polygon);
                    gl.Vertex(data);
gl.End();

If you draw point by point (through a loop), then it works fine, but if you pass a vector (as in the code above), then nothing is drawn. When I worked with OpenGL through C ++, there were no such problems.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question