private PolygonMode ( uint face, uint mode ) : void | ||
face | uint | |
mode | uint | |
return | void |
protected override void SwitchOff() { if (originalPolygonMode[0] == originalPolygonMode[1]) { OpenGL.PolygonMode(PolygonModeFaces.FrontAndBack, (PolygonModes)(originalPolygonMode[0])); } else { //TODO: not tested yet OpenGL.PolygonMode(PolygonModeFaces.Front, (PolygonModes)originalPolygonMode[0]); OpenGL.PolygonMode(PolygonModeFaces.Back, (PolygonModes)originalPolygonMode[1]); } }
protected override void SwitchOn() { OpenGL.GetInteger(GetTarget.PolygonMode, originalPolygonMode); OpenGL.PolygonMode(PolygonModeFaces.FrontAndBack, Mode); }