daily update on 20240901 by nitload youmu
This commit is contained in:
@@ -43,7 +43,6 @@ namespace StgSharp.MVVM
|
||||
{
|
||||
public class ViewPort
|
||||
{
|
||||
|
||||
private FrameBufferSizeHandler _sizeHandler;
|
||||
private FramePositionHandler _positionHandler;
|
||||
private int _width, _height;
|
||||
@@ -132,5 +131,19 @@ namespace StgSharp.MVVM
|
||||
}
|
||||
}
|
||||
|
||||
private int _eventWaitingMask;
|
||||
|
||||
internal bool IsWaitingEvent
|
||||
{
|
||||
get => _eventWaitingMask == 1;
|
||||
}
|
||||
|
||||
internal unsafe void InternalShowViewModelMain()
|
||||
{
|
||||
Interlocked.Exchange(ref _eventWaitingMask, 1);
|
||||
InternalIO.glfwWaitEvents();
|
||||
Interlocked.Exchange(ref _eventWaitingMask, 0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user