daily update on 20231217 by nitload youmu

This commit is contained in:
Nitload
2023-12-18 01:35:52 +08:00
parent 659420aa6c
commit 14eaab455f
58 changed files with 1629 additions and 841 deletions
+24 -2
View File
@@ -1,4 +1,5 @@
using StgSharp.Math;
using StgSharp.Logic;
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,8 +12,13 @@ namespace StgSharp.Graphics
{
internal partial class GLonUpdate : IglFunc
{
internal GLcontext api;
private FrameTimeoutException refreshSignal = new();
internal readonly GLcontext api;
internal GLonUpdate(GLcontext context)
{
api = context;
}
void IglFunc.ActiveTexture(uint type)
{
@@ -20,6 +26,22 @@ namespace StgSharp.Graphics
}
void IglFunc.AfterAlign(Form form, Action action)
{
throw new NotImplementedException();
}
void IglFunc.AlignFrame(Form form)
{
if (form.timer.alignSign.byte0 > 0)
{
throw new InvalidOperationException();
}
form.timer.alignSign.byte0++;
form.timer.WaitNextFrame();
throw refreshSignal;
}
void IglFunc.AttachShader(uint program, uint shader)
{
throw new NotImplementedException();