daily update on 20240427 by nitload youmu
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
//using StgSharp.Environment.Win32;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class StgSharpDemoForm : Form
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
[MultiFrameActivity()]
|
||||
public void Beep()
|
||||
{
|
||||
if (CurrentFrameCount%60==0)
|
||||
{
|
||||
Console.Beep();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//[RenderActivity(RenderPriority.Pre_1)]
|
||||
public void NoOp()
|
||||
{
|
||||
int a = 1;
|
||||
}
|
||||
}
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
internal static unsafe void Main(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
//StgSharp.TryCreatWindow();
|
||||
|
||||
/**/
|
||||
StgSharp.Init();
|
||||
StgSharp.InitGL(4, 6);
|
||||
StgSharp.GlobalSetting.VSyncActivated = false;
|
||||
StgSharpDemoForm demoForm = new StgSharpDemoForm();
|
||||
demoForm.Show();
|
||||
StgSharp.Terminate();
|
||||
/**/
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
InternalIO.InternalWriteLog(
|
||||
ex.Message + "\n" + ex.StackTrace,
|
||||
LogType.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user