47 lines
811 B
C#
47 lines
811 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
|
|
|
|
/**/
|
|
Pool p = new Pool();
|
|
Instruction.AddPool(p);
|
|
|
|
Triangle t = new Triangle();
|
|
Console.WriteLine(t.RefPoint01.Position);
|
|
|
|
t.RefPoint01.Position = new vec3d(0,0.5f,0);
|
|
|
|
Window w = new Window();
|
|
w.width = 800;
|
|
w.height = 600;
|
|
w.name = "StgSharp";
|
|
w.windowColor = new vec4d(0.1f,0.1f,0.1f,1.0f);
|
|
|
|
//internalIO.LoadTriangle(t);
|
|
internalIO.Window(w);
|
|
|
|
/**/
|
|
|
|
#endif
|
|
}
|
|
|
|
public static unsafe void GetPtr(int a)
|
|
{
|
|
int* ap = &a;
|
|
*ap = 100;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|