52 lines
885 B
C#
52 lines
885 B
C#
using StgSharp;
|
|
using StgSharp.Control;
|
|
using StgSharp.Geometries;
|
|
using StgSharp.Graphics;
|
|
using StgSharp.Math;
|
|
using System;
|
|
|
|
internal class Program
|
|
{
|
|
private unsafe static void Main(string[] args)
|
|
{
|
|
#if DEBUG
|
|
|
|
/**/
|
|
|
|
Window window = new Window();
|
|
window.width = 800;
|
|
window.height = 600;
|
|
window.name = "StgSharp";
|
|
window.color = new vec4d(0.1f,0.9f,0.2f,1.0f);
|
|
|
|
IntPtr windowPtr = internalIO. InitWindow(window);
|
|
internalIO.RenderWindow(windowPtr,window);
|
|
internalIO.TerminateWindow();
|
|
|
|
/**/
|
|
|
|
#endif
|
|
}
|
|
|
|
public unsafe class myClass
|
|
{
|
|
internal int* aPtr;
|
|
|
|
public int A
|
|
{
|
|
get { return *aPtr; }
|
|
private set { *aPtr = value; }
|
|
}
|
|
|
|
public myClass(int* ptr)
|
|
{
|
|
this.aPtr = ptr;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|