daily update on 20230623 by nitload youmu, SSG lib rewrite
This commit is contained in:
@@ -58,7 +58,7 @@ namespace StgSharp.Graphics
|
||||
info = new formInfo();
|
||||
allControl = new LinkedList<Pool>();
|
||||
Init();
|
||||
StgSharp.Graphic.LoadForm(this);
|
||||
//StgSharp.Graphic.LoadForm(this);
|
||||
|
||||
}
|
||||
|
||||
@@ -70,11 +70,7 @@ namespace StgSharp.Graphics
|
||||
|
||||
internal unsafe void defualtInit()
|
||||
{
|
||||
IntPtr windowPtr = Graphic.InitWindow(this);
|
||||
internalIO.InternalCompileShader((shaderObject*)this.shader);
|
||||
internalIO.InternalRenderWindow(windowPtr, this.info, (shaderObject*)this.shader);
|
||||
internalIO.TerminateWindow((shaderObject*)shader);
|
||||
|
||||
//IntPtr windowPtr = Graphic.InitWindow(this);
|
||||
}
|
||||
|
||||
public virtual void Init()
|
||||
@@ -82,15 +78,11 @@ namespace StgSharp.Graphics
|
||||
info.color = new vec4d(0.95, 0.93, 0.92, 0);
|
||||
info.width = 800;
|
||||
info.height = 600;
|
||||
this.windowPtr = Graphic.InitWindow(this);
|
||||
//this.windowPtr = Graphic.InitWindow(this);
|
||||
}
|
||||
|
||||
public void Show()
|
||||
{
|
||||
internalIO.InternalCompileShader((shaderObject*)shader);
|
||||
internalIO.InternalRenderWindow(this.windowPtr, this.info, (shaderObject*)shader);
|
||||
internalIO.TerminateWindow((shaderObject*)shader);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user