Used by TGLMesh meshmode property. Specifies if the mesh vertices primitives are a triangle, quad or polygon or strips. Strips require less vertices be specified if primitives are side by side. For example drawing three quads side by side would require 3x 4 vertices. With a quadstrip itd take only 8 vertices.
TMeshMode is the enumerated type:
TMeshMode = (mmTriangleStrip, mmTriangleFan, mmTriangles, mmQuadStrip, mmQuads, mmPolygon);
The following pictures have been taken from the site Introduction to OpenGL - L2D
mmTriangles: Draws a single triangle. Uses 3 vertices.
mmQuads: Draws a single quad. Uses 4 vertices.
mmPolygon: Draw a single polygon with any number of vertices.
mmTriangleStrip: Draws a triangular strip made up of 8 vertices.
mmTriangleFan: Draws a triangular fan made up of 5 vertices.
mmQuadStrip: Draws a quad strip made up of 8 vertices.
Unit: GLMisc
Comments (0)
You don't have permission to comment on this page.