Sets the hardware bias level for coplanar polygons This helps reduce z buffer artifacts
| 2120 | // Sets the hardware bias level for coplanar polygons |
| 2121 | // This helps reduce z buffer artifacts |
| 2122 | void rend_SetCoplanarPolygonOffset(float factor) { |
| 2123 | if (factor == 0.0f) { |
| 2124 | dglDisable(GL_POLYGON_OFFSET_FILL); |
| 2125 | } else { |
| 2126 | dglEnable(GL_POLYGON_OFFSET_FILL); |
| 2127 | dglPolygonOffset(-1.0f, -1.0f); |
| 2128 | } |
| 2129 | } |
| 2130 | |
| 2131 | // returns the direct draw object |
| 2132 | void *rend_RetrieveDirectDrawObj(void **frontsurf, void **backsurf) { |
no outgoing calls
no test coverage detected