PolygonMode() private method

private PolygonMode ( uint face, uint mode ) : void
face uint
mode uint
return void
Beispiel #1
0
 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]);
     }
 }
Beispiel #2
0
        protected override void SwitchOn()
        {
            OpenGL.GetInteger(GetTarget.PolygonMode, originalPolygonMode);

            OpenGL.PolygonMode(PolygonModeFaces.FrontAndBack, Mode);
        }