daily update on 20240328 by nitload youmu, building thread blueprint
This commit is contained in:
@@ -27,12 +27,16 @@ namespace StgSharp
|
||||
}
|
||||
}
|
||||
|
||||
public override void Deinit(object[] args)
|
||||
public override void Deinit()
|
||||
{
|
||||
/**/
|
||||
Console.WriteLine(1);
|
||||
vao.Dispose();
|
||||
Console.WriteLine(2);
|
||||
vbo.Dispose();
|
||||
Console.WriteLine(3);
|
||||
ebo.Dispose();
|
||||
Console.WriteLine(4);
|
||||
/**/
|
||||
|
||||
}
|
||||
@@ -42,15 +46,13 @@ namespace StgSharp
|
||||
gl.Viewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
public override void Init(object[] args)
|
||||
public override void Init()
|
||||
{
|
||||
InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
|
||||
SetRenderThreads(2);
|
||||
|
||||
SetMetadata(800, 600, "Hello, STG#!", IntPtr.Zero, null);
|
||||
SetMetadata(800, 800, "Hello, STG#!", IntPtr.Zero, null);
|
||||
MakeAsCurrentContext();
|
||||
SetSizeLimit(800, 600, 800, 600);
|
||||
SetSizeLimit(800, 800, 800, 800);
|
||||
this.LoadGLapi(null);
|
||||
FrameBufferSizeCallback =
|
||||
(IntPtr id, uint width, uint height) =>
|
||||
@@ -167,7 +169,17 @@ namespace StgSharp
|
||||
|
||||
vao.BindNull();
|
||||
/**/
|
||||
Console.WriteLine(1);
|
||||
Console.Clear();
|
||||
Console.WriteLine(FrameSpeed);
|
||||
}
|
||||
|
||||
//[RenderActivity(RenderPriority.Default,false)]
|
||||
public void Beep()
|
||||
{
|
||||
if (CurrentFrameCount%60==0)
|
||||
{
|
||||
Console.Beep();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,15 @@ uniform vec3 color;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(aPos.xyz,1.0) + vec4(color.xy-vec2(0.5,0.5),0.0,0.0);
|
||||
float as = color.z-0.5;
|
||||
float ac = sqrt(1 - as * as);
|
||||
mat4x4 rotation = mat4x4(
|
||||
ac,-as,0,0,
|
||||
as,ac,0,0,
|
||||
0,0,1,0,
|
||||
0,0,0,1
|
||||
);
|
||||
gl_Position = rotation * (vec4(aPos.xyz,1.0) + vec4(color.xy-vec2(0.5,0.5),0.0,0.0));
|
||||
TexColor = color;
|
||||
TexCoord = aTextCoord;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f0d91b6d5195682edaab2a326e5daaba61f53271")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ea2a4a7dcb0a67c25bbc49839aeb8cd582ba0408")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
f9459952dd47bd41dcc123b52a4718f98eb61cf0fdc390afb1acf1f1b33d7062
|
||||
c385dcdffa8fc64c5dbee012681b30ca72e22bfa0e770022c4e8ab92f11215ca
|
||||
|
||||
@@ -1 +1 @@
|
||||
575ff880dd336b341cc36500cd23ede305b168666cb797489c1cb322b8eb07cb
|
||||
87387179d403eda220c231b05b13d28d27488334b6bc1d1fc43e415db883f5d6
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/f0d91b6d5195682edaab2a326e5daaba61f53271/*"}}
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/ea2a4a7dcb0a67c25bbc49839aeb8cd582ba0408/*"}}
|
||||
@@ -35,11 +35,6 @@
|
||||
Height of this form, represent in <see cref="T:System.Int32"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.Form.IsDoubleRendering">
|
||||
<summary>
|
||||
Representing
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.Form.Size">
|
||||
<summary>
|
||||
Width of this form, represent in <see cref="T:System.Int32"/>
|
||||
@@ -50,17 +45,15 @@
|
||||
Width of this form, represent in <see cref="T:System.Int32"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Init(System.Object[])">
|
||||
<member name="M:StgSharp.Graphics.Form.Init">
|
||||
<summary>
|
||||
Necessary operation to init this form.
|
||||
</summary>
|
||||
<param name="args"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Main">
|
||||
<summary>
|
||||
Behaviour of current form when in a frame cycle.
|
||||
</summary>
|
||||
<param name="args"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.MakeAsCurrentContext">
|
||||
<summary>
|
||||
@@ -111,24 +104,16 @@
|
||||
<param name="maxWidth">Maximum width of curent form</param>
|
||||
<param name="maxHeight">Maximum height of current form</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Show">
|
||||
<summary>
|
||||
Init this form and render it on screen, and respond with operation
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.GetGL">
|
||||
<summary>
|
||||
Get OpenGL library of this form's context.
|
||||
</summary>
|
||||
<returns>A <see cref="T:StgSharp.Graphics.IglFunc"/> package contains all opengl APIs</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.SetRenderThreads(System.Int32)">
|
||||
<member name="M:StgSharp.Graphics.Form.Show">
|
||||
<summary>
|
||||
Define how current form render in one frame.
|
||||
Init this form and render it on screen, and respond with operation
|
||||
</summary>
|
||||
<param name="leastThreds">
|
||||
Please define this befor calling any OpenGL api and other graphic methods.
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.CreateElementBuffer(System.Int32)">
|
||||
<summary>
|
||||
@@ -164,9 +149,65 @@
|
||||
</summary>
|
||||
<returns>New instance of <see cref="T:StgSharp.Graphics.Shader"/> instance. </returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.RenderActivityAttribute">
|
||||
<summary>
|
||||
Mark that a method in a <see cref="T:StgSharp.Graphics.Form"/>
|
||||
should be called when rendering.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.RenderPriority">
|
||||
<summary>
|
||||
Priority level of a render activity.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Pre_1">
|
||||
<summary>
|
||||
One level higher than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Pre_2">
|
||||
<summary>
|
||||
Two level higher than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Pre_3">
|
||||
<summary>
|
||||
Three level higher than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Aft_1">
|
||||
<summary>
|
||||
One level lower than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Aft_2">
|
||||
<summary>
|
||||
Two level lower than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Aft_3">
|
||||
<summary>
|
||||
Three level lower than <see cref="F:StgSharp.Graphics.RenderPriority.Default"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Highest">
|
||||
<summary>
|
||||
Highest priority, in <see cref="T:StgSharp.Graphics.RenderPriority"/>, it is <see cref="F:StgSharp.Graphics.RenderPriority.Pre_3"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Default">
|
||||
<summary>
|
||||
Default priority, usually <see cref="M:StgSharp.Graphics.Form.Main"/> is in this priority.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Graphics.RenderPriority.Least">
|
||||
<summary>
|
||||
Lowest priority, in <see cref="T:StgSharp.Graphics.RenderPriority"/>, it is <see cref="F:StgSharp.Graphics.RenderPriority.Aft_3"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.BufferObjectBase">
|
||||
<summary>
|
||||
Interface of all kinds OpenGL buffer onjects
|
||||
Interface of all kinds OpenGL buffer objects
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.BufferObjectBase.Item(System.Int32)">
|
||||
@@ -256,7 +297,7 @@
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.glHandleSet.Release">
|
||||
<summary>
|
||||
Realse all resource in this handle.
|
||||
Release all resource in this handle.
|
||||
This will release all resource in this <see cref="T:StgSharp.Graphics.glHandle"/>.
|
||||
This <see langword="glHandle"/> will be not usable.
|
||||
</summary>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user