internal void FromInternal(ref InternalOptions options) { Type = (CustomTextureFormatType)(int)options.Type; IsAtlas = options.IsAtlas != 0; NeverStream = options.NeverStream != 0; Compress = options.Compress != 0; IndependentChannels = options.IndependentChannels != 0; sRGB = options.sRGB != 0; GenerateMipMaps = options.GenerateMipMaps != 0; FlipY = options.FlipY != 0; Resize = options.Resize != 0; PreserveAlphaCoverage = options.PreserveAlphaCoverage != 0; PreserveAlphaCoverageReference = options.PreserveAlphaCoverageReference; Scale = options.Scale; MaxSize = ConvertMaxSize(options.MaxSize); TextureGroup = options.TextureGroup; Size = options.Size; if (options.SpriteAreas != null) { int spritesCount = options.SpriteAreas.Length; Sprites.Capacity = spritesCount; for (int i = 0; i < spritesCount; i++) { Sprites.Add(new SpriteInfo(options.SpriteAreas[i], options.SpriteNames[i])); } } }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Type = Type, CalculateNormals = (byte)(CalculateNormals ? 1 : 0), SmoothingNormalsAngle = SmoothingNormalsAngle, SmoothingTangentsAngle = SmoothingTangentsAngle, CalculateTangents = (byte)(CalculateTangents ? 1 : 0), OptimizeMeshes = (byte)(OptimizeMeshes ? 1 : 0), MergeMeshes = (byte)(MergeMeshes ? 1 : 0), ImportLODs = (byte)(ImportLODs ? 1 : 0), ImportVertexColors = (byte)(ImportVertexColors ? 1 : 0), LightmapUVsSource = LightmapUVsSource, Scale = Scale, Rotation = Rotation, Translation = Translation, CenterGeometry = (byte)(CenterGeometry ? 1 : 0), Duration = Duration, FramesRangeStart = FramesRangeStart, FramesRangeEnd = FramesRangeEnd, DefaultFrameRate = DefaultFrameRate, SamplingRate = SamplingRate, SkipEmptyCurves = (byte)(SkipEmptyCurves ? 1 : 0), OptimizeKeyframes = (byte)(OptimizeKeyframes ? 1 : 0), EnableRootMotion = (byte)(EnableRootMotion ? 1 : 0), RootNodeName = RootNodeName, AnimationIndex = AnimationIndex, RestoreMaterialsOnReimport = (byte)(RestoreMaterialsOnReimport ? 1 : 0), }; }
internal void FromInternal(ref InternalOptions options) { Type = options.Type; CalculateNormals = options.CalculateNormals != 0; SmoothingNormalsAngle = options.SmoothingNormalsAngle; SmoothingTangentsAngle = options.SmoothingTangentsAngle; CalculateTangents = options.CalculateTangents != 0; OptimizeMeshes = options.OptimizeMeshes != 0; MergeMeshes = options.MergeMeshes != 0; ImportLODs = options.ImportLODs != 0; ImportVertexColors = options.ImportVertexColors != 0; LightmapUVsSource = options.LightmapUVsSource; Scale = options.Scale; Rotation = options.Rotation; Translation = options.Translation; CenterGeometry = options.CenterGeometry != 0; FramesRangeStart = options.FramesRangeStart; FramesRangeEnd = options.FramesRangeEnd; DefaultFrameRate = options.DefaultFrameRate; SamplingRate = options.SamplingRate; SkipEmptyCurves = options.SkipEmptyCurves != 0; OptimizeKeyframes = options.OptimizeKeyframes != 0; EnableRootMotion = options.EnableRootMotion != 0; RootNodeName = options.RootNodeName; AnimationIndex = options.AnimationIndex; RestoreMaterialsOnReimport = options.RestoreMaterialsOnReimport != 0; }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Type = (TextureFormatType)(int)Type, IsAtlas = (byte)(IsAtlas ? 1 : 0), NeverStream = (byte)(NeverStream ? 1 : 0), Compress = (byte)(Compress ? 1 : 0), IndependentChannels = (byte)(IndependentChannels ? 1 : 0), IsSRGB = (byte)(IsSRGB ? 1 : 0), GenerateMipMaps = (byte)(GenerateMipMaps ? 1 : 0), FlipY = (byte)(FlipY ? 1 : 0), Resize = (byte)(Resize ? 1 : 0), Scale = Scale, Size = Size, MaxSize = (int)MaxSize }; if (Sprites != null && Sprites.Count > 0) { int count = Sprites.Count; options.SpriteAreas = new Rectangle[count]; options.SpriteNames = new string[count]; for (int i = 0; i < count; i++) { options.SpriteAreas[i] = Sprites[i].Area; options.SpriteNames[i] = Sprites[i].Name; } } else { options.SpriteAreas = null; options.SpriteNames = null; } }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Type = (TextureFormatType)(int)Type, IsAtlas = IsAtlas, NeverStream = NeverStream, Compress = Compress, IndependentChannels = IndependentChannels, IsSRGB = IsSRGB, GenerateMipMaps = GenerateMipMaps, Scale = Scale, MaxSize = (int)MaxSize }; if (Sprites != null && Sprites.Count > 0) { int count = Sprites.Count; options.SpriteAreas = new Rectangle[count]; options.SpriteNames = new string[count]; for (int i = 0; i < count; i++) { options.SpriteAreas[i] = Sprites[i].Area; options.SpriteNames[i] = Sprites[i].Name; } } else { options.SpriteAreas = null; options.SpriteNames = null; } }
internal void FromInternal(ref InternalOptions options) { Format = options.Format; DisableStreaming = options.DisableStreaming != 0; Is3D = options.Is3D != 0; CompressionQuality = options.Quality; BitDepth = ConvertBitDepth(options.BitDepth); }
public HttpClientRequestDelegatingHandler( IOptions <InternalOptions> internalOptionsAccessor, IHttpContextAccessor httpContextAccessor, ILogger <HttpClientAuthorizationDelegatingHandler> logger) { _internalOptions = internalOptionsAccessor.Value; _httpContextAccessor = httpContextAccessor; _logger = logger; }
public InfoSelfMiddleware( RequestDelegate _, IOptions <InternalOptions> internalOptions, IContextsProviderService contextsProviderService = null, IMetricsProviderService metricsProviderService = null) { _contextsProviderService = contextsProviderService; _metricsProviderService = metricsProviderService; _internalOptions = internalOptions.Value; }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Format = Format, DisableStreaming = (byte)(DisableStreaming ? 1 : 0), Is3D = (byte)(Is3D ? 1 : 0), Quality = CompressionQuality, BitDepth = (int)BitDepth, }; }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Format = Format, DisableStreaming = DisableStreaming, Is3D = Is3D, Quality = CompressionQuality, BitDepth = (int)BitDepth, }; }
internal void FromInternal(ref InternalOptions options) { Scale = options.Scale; CalculateNormals = options.CalculateNormals; SmoothigNormalsAngle = options.SmoothigNormalsAngle; CalculateTangents = options.CalculateTangents; OptimizeMeshes = options.OptimizeMeshes; MergeMeshes = options.MergeMeshes; ImportLODs = options.ImportLODs; LighmapUVsSource = options.LighmapUVsSource; }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Scale = Scale, CalculateNormals = CalculateNormals, SmoothigNormalsAngle = SmoothigNormalsAngle, CalculateTangents = CalculateTangents, OptimizeMeshes = OptimizeMeshes, MergeMeshes = MergeMeshes, ImportLODs = ImportLODs, LighmapUVsSource = LighmapUVsSource }; }
internal void ToInternal(out InternalOptions options) { options = new InternalOptions { Type = Type, CalculateNormals = (byte)(CalculateNormals ? 1 : 0), SmoothingNormalsAngle = SmoothingNormalsAngle, FlipNormals = (byte)(FlipNormals ? 1 : 0), SmoothingTangentsAngle = SmoothingTangentsAngle, CalculateTangents = (byte)(CalculateTangents ? 1 : 0), OptimizeMeshes = (byte)(OptimizeMeshes ? 1 : 0), MergeMeshes = (byte)(MergeMeshes ? 1 : 0), ImportLODs = (byte)(ImportLODs ? 1 : 0), ImportVertexColors = (byte)(ImportVertexColors ? 1 : 0), ImportBlendShapes = (byte)(ImportBlendShapes ? 1 : 0), LightmapUVsSource = LightmapUVsSource, CollisionMeshesPrefix = CollisionMeshesPrefix, Scale = Scale, Rotation = Rotation, Translation = Translation, CenterGeometry = (byte)(CenterGeometry ? 1 : 0), Duration = Duration, FramesRangeStart = FramesRangeStart, FramesRangeEnd = FramesRangeEnd, DefaultFrameRate = DefaultFrameRate, SamplingRate = SamplingRate, SkipEmptyCurves = (byte)(SkipEmptyCurves ? 1 : 0), OptimizeKeyframes = (byte)(OptimizeKeyframes ? 1 : 0), EnableRootMotion = (byte)(EnableRootMotion ? 1 : 0), RootNodeName = RootNodeName, GenerateLODs = (byte)(GenerateLODs ? 1 : 0), BaseLOD = BaseLOD, LODCount = LODCount, TriangleReduction = TriangleReduction, ImportMaterials = (byte)(ImportMaterials ? 1 : 0), ImportTextures = (byte)(ImportTextures ? 1 : 0), RestoreMaterialsOnReimport = (byte)(RestoreMaterialsOnReimport ? 1 : 0), GenerateSDF = (byte)(GenerateSDF ? 1 : 0), SDFResolution = SDFResolution, SplitObjects = (byte)(SplitObjects ? 1 : 0), ObjectIndex = ObjectIndex, }; }
internal void FromInternal(ref InternalOptions options) { Type = (CustomTextureFormatType)(int)options.Type; IsAtlas = options.IsAtlas; NeverStream = options.NeverStream; Compress = options.Compress; IndependentChannels = options.IndependentChannels; IsSRGB = options.IsSRGB; GenerateMipMaps = options.GenerateMipMaps; Scale = options.Scale; MaxSize = ConvertMaxSize(options.MaxSize); if (options.SpriteAreas != null) { int spritesCount = options.SpriteAreas.Length; Sprites.Capacity = spritesCount; for (int i = 0; i < spritesCount; i++) { Sprites.Add(new SpriteInfo(options.SpriteAreas[i], options.SpriteNames[i])); } } }
internal void FromInternal(ref InternalOptions options) { Type = options.Type; CalculateNormals = options.CalculateNormals != 0; SmoothingNormalsAngle = options.SmoothingNormalsAngle; FlipNormals = options.FlipNormals != 0; SmoothingTangentsAngle = options.SmoothingTangentsAngle; CalculateTangents = options.CalculateTangents != 0; OptimizeMeshes = options.OptimizeMeshes != 0; MergeMeshes = options.MergeMeshes != 0; ImportLODs = options.ImportLODs != 0; ImportVertexColors = options.ImportVertexColors != 0; ImportBlendShapes = options.ImportBlendShapes != 0; LightmapUVsSource = options.LightmapUVsSource; CollisionMeshesPrefix = options.CollisionMeshesPrefix; Scale = options.Scale; Rotation = options.Rotation; Translation = options.Translation; CenterGeometry = options.CenterGeometry != 0; FramesRangeStart = options.FramesRangeStart; FramesRangeEnd = options.FramesRangeEnd; DefaultFrameRate = options.DefaultFrameRate; SamplingRate = options.SamplingRate; SkipEmptyCurves = options.SkipEmptyCurves != 0; OptimizeKeyframes = options.OptimizeKeyframes != 0; EnableRootMotion = options.EnableRootMotion != 0; RootNodeName = options.RootNodeName; GenerateLODs = options.GenerateLODs != 0; BaseLOD = options.BaseLOD; LODCount = options.LODCount; TriangleReduction = options.TriangleReduction; ImportMaterials = options.ImportMaterials != 0; ImportTextures = options.ImportTextures != 0; RestoreMaterialsOnReimport = options.RestoreMaterialsOnReimport != 0; GenerateSDF = options.GenerateSDF != 0; SDFResolution = options.SDFResolution; SplitObjects = options.SplitObjects != 0; ObjectIndex = options.ObjectIndex; }
internal static extern void Internal_SetOptions(ref InternalOptions options);