| 46 | } |
| 47 | |
| 48 | void MeshData::renderGeometry() const |
| 49 | { |
| 50 | CHECK_GL_ERROR; |
| 51 | if (!meshPtr) { |
| 52 | return; |
| 53 | } |
| 54 | if (renderMode == Mesh::PointRenderMode) { |
| 55 | meshPtr->render_points(depthTest); |
| 56 | } else { |
| 57 | meshPtr->render(depthTest, backFaceCulling, renderMode, frontFaceCulling, invertDepthTest); |
| 58 | } |
| 59 | CHECK_GL_ERROR; |
| 60 | } |
| 61 | |
| 62 | void MeshData::onGUI(const std::string & name) |
| 63 | { |
no test coverage detected