Closed rogermc2 closed 7 years ago
I'm now wondering if the problem occurs because Quads apparently are deprecated? Further investigation reveals that in the latest Mac OpenGL framework file gl3.h the following definitions occur: / BeginMode /
then later, under
..... / reuse GL_TRIANGLES /
Also, under
...
Polygon doesn't seem to be defined. Perhaps this is the reason that gldrawelements rejects modes quads, Quad_Strip, Polygon and Patches?
I now plan to replace quads with pairs of triangles in this and future examples which, in any case, seems to be recommended.
OK now. Quads and others are deprecated, so I'll use triangles.
I am trying to draw quads, but the following code fails: Draw_Elements (GL.Types.Quads, GL.Types.Size (Vertex_Data.Num_Elements), UInt_Type); with "raised GL.ERRORS.INTERNAL_ERROR : gl-raise_exception_on_opengl_error.adb:30"
It runs without error when Quads is replaced with Points, Lines, Line_Loop, Line_Strip, Triangles, Triangle_Strip, Triangle_Fan, Lines_Adjacency, Line_Strip_Adjacency, Triangles_Adjacency or Triangle_Strip_Adjacency.
It also fails with Quad_Strip, Polygon and Patches.