Esempio n. 1
0
 public RenderState()
 {
     alphaToCoverage  = new AlphaToCoverage();
     wireframe        = new Wireframe();
     polygonOffset    = new PolygonOffset();
     channelMask      = new ChannelMask();
     scissorTest      = new ScissorTest();
     primativeRestart = new PrimativeRestart();
 }
Esempio n. 2
0
        bool isDifferent(PolygonOffset other)
        {
            if (enableType != other.enableType)
            {
                return(true);
            }
            if (factor != other.factor)
            {
                return(true);
            }
            if (units != other.units)
            {
                return(true);
            }

            return(false);
        }