02-25-2001, 11:40 PM
I have tried out GL_POLYGON_OFFSET_FILL and it works fine, but i really don't get the idea of GL_POLYGON_OFFSET_POINT and GL_POLYGON_OFFSET_LINE. In what situations do we have to use GL_POLYGON_OFFSET_POINT and GL_POLYGON_OFFSET_LINE ?
02-26-2001, 03:53 AM
GL_POLYGON_OFFSET_LINE is useful if you want to outline the edges of a filled polygon.
[This message has been edited by DFrey (edited 02-26-2001).]
02-26-2001, 04:09 AM
All Polygon offset modes only apply to polygonal primitives i.e. triangles, trianglestrip, trianglefan, quads, quadstrip, polygon, NOT to points, lines ,linestrip, and lineloop.
The polygon offset for points and lines can only be used in conjunction with glPolygonMode(face, GL_POINT) and glPolygonMode(face, GL_LINE),
(resp. glPolygonMode(face, GL_FILL) for the solid drawing).
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.