61 lines
1.3 KiB
C#
61 lines
1.3 KiB
C#
//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);
|
|
}
|
|
}
|
|
}
|
|
} |