daily update on 20230529 by nitload youmu
This commit is contained in:
@@ -12,32 +12,37 @@ internal class Program
|
||||
#if DEBUG
|
||||
|
||||
/**/
|
||||
Pool p = new Pool();
|
||||
Instruction.AddPool(p);
|
||||
|
||||
Triangle t = new Triangle();
|
||||
Console.WriteLine(t.RefPoint01.Position);
|
||||
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);
|
||||
|
||||
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);
|
||||
IntPtr windowPtr = internalIO. InitWindow(window);
|
||||
internalIO.RenderWindow(windowPtr,window);
|
||||
internalIO.TerminateWindow();
|
||||
|
||||
/**/
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
public static unsafe void GetPtr(int a)
|
||||
public unsafe class myClass
|
||||
{
|
||||
int* ap = &a;
|
||||
*ap = 100;
|
||||
internal int* aPtr;
|
||||
|
||||
public int A
|
||||
{
|
||||
get { return *aPtr; }
|
||||
private set { *aPtr = value; }
|
||||
}
|
||||
|
||||
public myClass(int* ptr)
|
||||
{
|
||||
this.aPtr = ptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user