PolygonMode() private method

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

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