daily update on 20240403 by nitload youmu
This commit is contained in:
@@ -38,29 +38,44 @@ namespace StgSharp.Graphics
|
||||
/// Mark that a method in a <see cref="Form"/>
|
||||
/// should be called when rendering.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||
public class RenderActivityAttribute : Attribute
|
||||
{
|
||||
|
||||
internal bool _isRenderProgress;
|
||||
internal int _priority;
|
||||
|
||||
public RenderActivityAttribute(RenderPriority priority, bool IsRenderProgress)
|
||||
public RenderActivityAttribute()
|
||||
{
|
||||
_priority = (int)priority; _isRenderProgress = IsRenderProgress;
|
||||
_priority = (int)RenderPriority.Default;
|
||||
}
|
||||
public RenderActivityAttribute(int priority, bool IsRenderProgress)
|
||||
|
||||
public RenderActivityAttribute(RenderPriority priority)
|
||||
{
|
||||
_priority = priority; _isRenderProgress = IsRenderProgress;
|
||||
_priority = (int)priority;
|
||||
}
|
||||
public RenderActivityAttribute(int priority)
|
||||
{
|
||||
_priority = priority;
|
||||
}
|
||||
|
||||
public int Priority { get => _priority; set => _priority = value; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||
public class MultiFrameActivityAttribute : Attribute
|
||||
{
|
||||
|
||||
internal int _minFrameCount;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Priority level of a render activity.
|
||||
/// </summary>
|
||||
public enum RenderPriority: int
|
||||
public enum RenderPriority : int
|
||||
{
|
||||
/// <summary>
|
||||
/// One level higher than <see cref="RenderPriority.Default"/>.
|
||||
|
||||
Reference in New Issue
Block a user