daily update on 20240901 by nitload youmu

This commit is contained in:
Nitload
2024-09-02 05:57:07 +08:00
parent 1ee4e4a42f
commit 0979123ac0
47 changed files with 869 additions and 707 deletions
+9 -1
View File
@@ -93,6 +93,11 @@ namespace StgSharp.Graphics
get => primeArgs.Name;
}
protected bool IsWaitingUserEvent
{
get => primeArgs.IsWaitingEvent;
}
public vec2d GlobalCoordSize => ((Width * 1.0f) / _coordStretch.x, (Height * 1.0f) / _coordStretch.y);
public ViewPort Port
@@ -155,6 +160,7 @@ namespace StgSharp.Graphics
return target;
}
/**/
protected internal static void PollEvents()
{
InternalIO.glfwPollEvents();
@@ -164,7 +170,7 @@ namespace StgSharp.Graphics
{
InternalIO.glfwSwapBuffers(CanvasHandle);
}
/**/
#region native camera operation
protected abstract void NativeCameraViewRange(Radius fieldOfRange, vec2d offset, (float frontDepth, float backDepth) viewDepth);
protected abstract void NativeCameraViewTarget(vec3d position, vec3d direction, vec3d up);
@@ -211,6 +217,8 @@ namespace StgSharp.Graphics
protected abstract void CustomizeInit();
protected abstract void Main();
#endregion
#region public resource generator