<p>I found a workaround suggested <a href="https://www.opengl.org/archives/resources/faq/technical/polygonoffset.htm" rel="nofollow noreferrer">at the bottom of this page</a> : to deal with coplanar lines and polygons, one can apply a different glDepthRange to polygon face and polygon wireframe.</p>

CC BY-SA 4.0
2020-12-29T11:44:13.600Z
2020-12-29T11:44:13.600Z
Martin Pernollet
<p>I am working on a pure java implementation of OpenGL 1 called <a href="https://github.com/jzy3d/jGL" rel="nofollow noreferrer">jGL</a>.</p>
<p>I am <a href="https://github.com/jzy3d/jGL/issues/3" rel="nofollow noreferrer">missing glPolygonOffsetFill</a> and am looking for an example implementation in java, c/c++ example of this GL function in order to integrate it in jGL.</p>
<p>Would anyone suggest a direction?</p>

<opengl><polygon><java>
OpenGL Polygon Offset Fill implementation example code
Martin Pernollet
# OpenGL Polygon Offset Fill implementation example code

(Asked by: username_0 on 2020-12-26)

I am working on a pure java implementation of OpenGL 1 called [jGL](https://github.com/jzy3d/jGL).

I am [missing glPolygonOffsetFill](https://github.com/jzy3d/jGL/issues/3) and am looking for an example implementation in java, c/c++ example of this GL function in order to integrate it in jGL.

Would anyone suggest a direction?

**Tags:** opengl, polygon, java


---

## 1 answers

### Answer by username_0 on 2020-12-29. Score: 0 | Accepted answer

I found a workaround suggested [at the bottom of this page](https://www.opengl.org/archives/resources/faq/technical/polygonoffset.htm) : to deal with coplanar lines and polygons, one can apply a different glDepthRange to polygon face and polygon wireframe.


---

