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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -4,6 +4,12 @@
|
||||
<name>StgSharp</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:StgSharp.Instruction.InitPool">
|
||||
<summary>
|
||||
Add a pool to timeline controller, and return the instance of the pool.
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="F:StgSharp.Control.ProgramTimeLine.tickCounter">
|
||||
<summary>
|
||||
Tick counter count the frames passed since the program start.
|
||||
@@ -69,6 +75,11 @@
|
||||
<param name="tick">当前游戏刻</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.Square">
|
||||
<summary>
|
||||
A square
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.LinkedList`1.Add(`0)">
|
||||
<summary>
|
||||
Add an item to the tail of linked list.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user