Convex polygons

Rafael Cunha de Almeida <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
I'm reading the red book and it says opengl cannot render convex
polygons. Yet, when I compile this code:
    renderPrimitive Polygon $ do
        vertex $ Vertex2 0 (0::GLfloat)
        vertex $ Vertex2 0 (3::GLfloat)
        vertex $ Vertex2 4 (3::GLfloat)
        vertex $ Vertex2 3 (1.5::GLfloat)
        vertex $ Vertex2 4 (0::GLfloat)
The convex polygon is displayed correctly. Does hopengl do something
behind the scenes or I just "lucked" out that my opengl/hardware can
handle this particular convex polygon case?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.