public GraphicsState(GraphicsState state) { MaterialParameters = state.MaterialParameters; Material = state.Material; AreaLight = state.AreaLight; AreaLightParameters = state.AreaLightParameters; ReverseOrientation = state.ReverseOrientation; FloatTextures = state.FloatTextures; SpectrumTextures = state.SpectrumTextures; CurrentNamedMaterial = state.CurrentNamedMaterial; NamedMaterials = state.NamedMaterials; }
public static void AttributeEnd() { Api.GraphicsState = new GraphicsState (Api.PushedGraphicsStates.Pop ()); Api.CurrentTransform = new TransformSet (Api.PushedTransforms.Pop ()); Api.ActiveTransformBits = Api.PushedActiveTransformBits.Pop (); }