daily update on 20231217 by nitload youmu
This commit is contained in:
+195
-178
@@ -1,5 +1,6 @@
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Logic;
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Math.Linear;
|
||||
using System;
|
||||
@@ -12,182 +13,182 @@ using System.Text;
|
||||
namespace StgSharp
|
||||
{
|
||||
|
||||
public class StgSharpDemoForm : Form
|
||||
{
|
||||
Uniform<float, float, float> color;
|
||||
ElementBuffer ebo;
|
||||
Uniform<int> ourTexture;
|
||||
Uniform<int> ourTexture2;
|
||||
Shader shader;
|
||||
Texture texture;
|
||||
VertexArray vao;
|
||||
VertexBuffer vbo;
|
||||
|
||||
public static unsafe void ProcessInput(IntPtr windowPtr)
|
||||
{
|
||||
if (InternalIO.glfw.GetKey(windowPtr, (int)Operation.Key.ESCAPE)
|
||||
== KeyStatus.PRESS)
|
||||
{
|
||||
InternalIO.glfw.SetWindowShouldClose(windowPtr, 1);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Deinit(object[] args, IglFunc GL)
|
||||
{
|
||||
/**/
|
||||
vao.Dispose();
|
||||
vbo.Dispose();
|
||||
ebo.Dispose();
|
||||
/**/
|
||||
|
||||
InternalIO.glfw.Terminate();
|
||||
}
|
||||
|
||||
public unsafe void FormSizeCallback(IntPtr window, int width, int height)
|
||||
{
|
||||
GL.Viewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
public override void Init(object[] args)
|
||||
{
|
||||
|
||||
InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
|
||||
Platform.InitGL(4, 6);
|
||||
|
||||
InitForm(800, 600, "Hello, STG#!", IntPtr.Zero, null);
|
||||
MakeAsCurrentContext();
|
||||
SetSizeLimit(800, 600, 800, 600);
|
||||
GL.SetFrameBufferSizeCallback(windowID, FormSizeCallback);
|
||||
|
||||
this.LoadGLapi(null);
|
||||
|
||||
shader = CreateShader();
|
||||
shader.CompileVertexShader(
|
||||
File.ReadAllText("Shader\\vertex.vert")
|
||||
);
|
||||
shader.CompileFragmentShader(
|
||||
File.ReadAllText("Shader\\fragment.frag")
|
||||
);
|
||||
shader.Link();
|
||||
|
||||
Triangle tri = new Triangle(
|
||||
-0.5f, -0.3f, 0.0f,
|
||||
0.5f, -0.5f, 0.0f,
|
||||
0.0f, 0.5f, 0.0f
|
||||
);
|
||||
|
||||
Rectangle rec = new Rectangle(
|
||||
-0.5f, 0.5f, 0.0f,
|
||||
0.5f, 0.5f, 0.0f,
|
||||
0.5f, -0.5f, 0.0f,
|
||||
-0.5f, -0.5f, 0.0f
|
||||
);
|
||||
|
||||
Polygon5 polygon = new Polygon5(
|
||||
-0.4f, 0.5f, 0.0f,
|
||||
0.5f, 0.5f, 0.0f,
|
||||
0.6f, -0.5f, 0.0f,
|
||||
0, -1, 0,
|
||||
-0.7f, -0.5f, 0.0f
|
||||
);
|
||||
|
||||
|
||||
vao = new VertexArray(1);
|
||||
vbo = new VertexBuffer(2);
|
||||
ebo = new ElementBuffer(1);
|
||||
texture = CreateTexture(2);
|
||||
|
||||
|
||||
float[] texCoord = {
|
||||
0.0f, 0.0f,
|
||||
1.0f, 0.0f,
|
||||
1.0f, 1.0f,
|
||||
0.0f, 1.0f };
|
||||
|
||||
GL.BindVertexArray(vao[0]);
|
||||
|
||||
ebo.SetValue(0, rec.Indices, BufferUsage.STATIC_DRAW);
|
||||
|
||||
vbo.SetValue(0, rec.VertexBuffer, BufferUsage.STATIC_DRAW);
|
||||
GL.SetVertexAttribute(0, 3, typeof(float), false, 4 * sizeof(float), 0);
|
||||
|
||||
vbo.SetValueArray(1, texCoord, BufferUsage.STATIC_DRAW);
|
||||
GL.SetVertexAttribute(2, 2, typeof(float), false, 2 * sizeof(float), 0);
|
||||
|
||||
/**/
|
||||
GL.BindBuffer(BufferType.ARRAY_BUFFER, 0);
|
||||
vao.BindNull();
|
||||
/**/
|
||||
|
||||
texture.Bind2D(0);
|
||||
texture.Set2dWrapProperty(Wrap.Repeat, Wrap.Repeat);
|
||||
texture.Set2dFilterProperty(Filter.Nearest, Filter.Nearest);
|
||||
texture.LoadTexture(0, "Shader\\Image1.png", null);
|
||||
|
||||
texture.Bind2D(1);
|
||||
texture.Set2dWrapProperty(Wrap.Repeat, Wrap.Repeat);
|
||||
texture.Set2dFilterProperty(Filter.Nearest, Filter.Nearest);
|
||||
texture.LoadTexture(1, "Shader\\awesomeface.png", null);
|
||||
|
||||
|
||||
//color = GetUniform<float, float, float>(shader, "color");
|
||||
|
||||
shader.Use();
|
||||
/**/
|
||||
//ourTexture = GetUniform<int>(shader, "ourTexture");
|
||||
GL.SetValue(ourTexture, 0);
|
||||
//ourTexture2 = GetUniform<int>(shader, "ourTexture2");
|
||||
GL.SetValue(ourTexture2, 1);
|
||||
/**/
|
||||
|
||||
}
|
||||
|
||||
public override void OnRenderFrame(object[] args, IglFunc GL)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnUpdateFrame(object[] args, IglFunc GL)
|
||||
{
|
||||
|
||||
ProcessInput(windowID);
|
||||
|
||||
GL.ClearColor(0.333f, 0.555f, 0.555f, 1.0f);
|
||||
//GL.api.Clear(GLconst.COLOR_BUFFER_BIT);
|
||||
GL.Clear(MaskBufferBit.COLOR);
|
||||
|
||||
vao.Bind(0);
|
||||
shader.Use();
|
||||
|
||||
/**/
|
||||
texture.Activate(TextureUnit.Unit0);
|
||||
texture.Bind2D(0);
|
||||
texture.Activate(TextureUnit.Unit1);
|
||||
texture.Bind2D(1);
|
||||
/**/
|
||||
|
||||
float time = (float)InternalIO.glfw.GetTime();
|
||||
GL.SetValue(color,
|
||||
0.5f + MathF.Sin(time),
|
||||
0.5f + MathF.Sin(time/* + 0.667f * 3.14f/**/),
|
||||
0.5f + MathF.Sin(time/* - 0.667f * 3.14f/**/)
|
||||
);
|
||||
|
||||
vao.Bind(0);
|
||||
|
||||
|
||||
AlignFrame(this, () =>
|
||||
{
|
||||
GL.DrawElements(GepmetryType.TRIANGLES, 6, typeof(uint), IntPtr.Zero);
|
||||
|
||||
vao.BindNull();
|
||||
|
||||
InternalIO.glfw.SwapBuffers(windowID);
|
||||
InternalIO.glfw.PollEvents();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
// public class StgSharpDemoForm : Form
|
||||
// {
|
||||
// Uniform<float, float, float> color;
|
||||
// ElementBuffer ebo;
|
||||
// Uniform<int> ourTexture;
|
||||
// Uniform<int> ourTexture2;
|
||||
// Shader shader;
|
||||
// Texture texture;
|
||||
// VertexArray vao;
|
||||
// VertexBuffer vbo;
|
||||
//
|
||||
// public static unsafe void ProcessInput(IntPtr windowPtr)
|
||||
// {
|
||||
// if (InternalIO.glfw.GetKey(windowPtr, (int)Operation.Key.ESCAPE)
|
||||
// == KeyStatus.PRESS)
|
||||
// {
|
||||
// InternalIO.glfw.SetWindowShouldClose(windowPtr, 1);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// public override void Deinit(object[] args, IglFunc GL)
|
||||
// {
|
||||
// /**/
|
||||
// vao.Dispose();
|
||||
// vbo.Dispose();
|
||||
// ebo.Dispose();
|
||||
// /**/
|
||||
//
|
||||
// InternalIO.glfw.Terminate();
|
||||
// }
|
||||
//
|
||||
// public unsafe void FormSizeCallback(IntPtr window, int width, int height)
|
||||
// {
|
||||
// GL.Viewport(0, 0, width, height);
|
||||
// }
|
||||
//
|
||||
// public override void Init(object[] args)
|
||||
// {
|
||||
//
|
||||
// InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
//
|
||||
// Platform.InitGL(4, 6);
|
||||
//
|
||||
// InitForm(800, 600, "Hello, STG#!", IntPtr.Zero, null);
|
||||
// MakeAsCurrentContext();
|
||||
// SetSizeLimit(800, 600, 800, 600);
|
||||
// GL.SetFrameBufferSizeCallback(windowID, FormSizeCallback);
|
||||
//
|
||||
// this.LoadGLapi(null);
|
||||
//
|
||||
// shader = CreateShader();
|
||||
// shader.CompileVertexShader(
|
||||
// File.ReadAllText("Shader\\vertex.vert")
|
||||
// );
|
||||
// shader.CompileFragmentShader(
|
||||
// File.ReadAllText("Shader\\fragment.frag")
|
||||
// );
|
||||
// shader.Link();
|
||||
//
|
||||
// Triangle tri = new Triangle(
|
||||
// -0.5f, -0.3f, 0.0f,
|
||||
// 0.5f, -0.5f, 0.0f,
|
||||
// 0.0f, 0.5f, 0.0f
|
||||
// );
|
||||
//
|
||||
// Rectangle rec = new Rectangle(
|
||||
// -0.5f, 0.5f, 0.0f,
|
||||
// 0.5f, 0.5f, 0.0f,
|
||||
// 0.5f, -0.5f, 0.0f,
|
||||
// -0.5f, -0.5f, 0.0f
|
||||
// );
|
||||
//
|
||||
// Polygon5 polygon = new Polygon5(
|
||||
// -0.4f, 0.5f, 0.0f,
|
||||
// 0.5f, 0.5f, 0.0f,
|
||||
// 0.6f, -0.5f, 0.0f,
|
||||
// 0, -1, 0,
|
||||
// -0.7f, -0.5f, 0.0f
|
||||
// );
|
||||
//
|
||||
//
|
||||
// vao = new VertexArray(1);
|
||||
// vbo = new VertexBuffer(2);
|
||||
// ebo = new ElementBuffer(1);
|
||||
// texture = CreateTexture(2);
|
||||
//
|
||||
//
|
||||
// float[] texCoord = {
|
||||
// 0.0f, 0.0f,
|
||||
// 1.0f, 0.0f,
|
||||
// 1.0f, 1.0f,
|
||||
// 0.0f, 1.0f };
|
||||
//
|
||||
// GL.BindVertexArray(vao[0]);
|
||||
//
|
||||
// ebo.SetValue(0, rec.Indices, BufferUsage.STATIC_DRAW);
|
||||
//
|
||||
// vbo.SetValue(0, rec.VertexBuffer, BufferUsage.STATIC_DRAW);
|
||||
// GL.SetVertexAttribute(0, 3, typeof(float), false, 4 * sizeof(float), 0);
|
||||
//
|
||||
// vbo.SetValueArray(1, texCoord, BufferUsage.STATIC_DRAW);
|
||||
// GL.SetVertexAttribute(2, 2, typeof(float), false, 2 * sizeof(float), 0);
|
||||
//
|
||||
// /**/
|
||||
// GL.BindBuffer(BufferType.ARRAY_BUFFER, 0);
|
||||
// vao.BindNull();
|
||||
// /**/
|
||||
//
|
||||
// texture.Bind2D(0);
|
||||
// texture.Set2dWrapProperty(Wrap.Repeat, Wrap.Repeat);
|
||||
// texture.Set2dFilterProperty(Filter.Nearest, Filter.Nearest);
|
||||
// texture.LoadTexture(0, "Shader\\Image1.png", null);
|
||||
//
|
||||
// texture.Bind2D(1);
|
||||
// texture.Set2dWrapProperty(Wrap.Repeat, Wrap.Repeat);
|
||||
// texture.Set2dFilterProperty(Filter.Nearest, Filter.Nearest);
|
||||
// texture.LoadTexture(1, "Shader\\awesomeface.png", null);
|
||||
//
|
||||
//
|
||||
// //color = GetUniform<float, float, float>(shader, "color");
|
||||
//
|
||||
// shader.Use();
|
||||
// /**/
|
||||
// //ourTexture = GetUniform<int>(shader, "ourTexture");
|
||||
// GL.SetValue(ourTexture, 0);
|
||||
// //ourTexture2 = GetUniform<int>(shader, "ourTexture2");
|
||||
// GL.SetValue(ourTexture2, 1);
|
||||
// /**/
|
||||
//
|
||||
// }
|
||||
//
|
||||
// public override void OnRenderFrame(object[] args, IglFunc GL)
|
||||
// {
|
||||
// }
|
||||
//
|
||||
// public override void OnUpdateFrame(object[] args, IglFunc GL)
|
||||
// {
|
||||
//
|
||||
// ProcessInput(windowID);
|
||||
//
|
||||
// GL.ClearColor(0.333f, 0.555f, 0.555f, 1.0f);
|
||||
// //GL.api.Clear(GLconst.COLOR_BUFFER_BIT);
|
||||
// GL.Clear(MaskBufferBit.COLOR);
|
||||
//
|
||||
// vao.Bind(0);
|
||||
// shader.Use();
|
||||
//
|
||||
// /**/
|
||||
// texture.Activate(TextureUnit.Unit0);
|
||||
// texture.Bind2D(0);
|
||||
// texture.Activate(TextureUnit.Unit1);
|
||||
// texture.Bind2D(1);
|
||||
// /**/
|
||||
//
|
||||
// float time = (float)InternalIO.glfw.GetTime();
|
||||
// GL.SetValue(color,
|
||||
// 0.5f + MathF.Sin(time),
|
||||
// 0.5f + MathF.Sin(time/* + 0.667f * 3.14f/**/),
|
||||
// 0.5f + MathF.Sin(time/* - 0.667f * 3.14f/**/)
|
||||
// );
|
||||
//
|
||||
// vao.Bind(0);
|
||||
//
|
||||
//
|
||||
// AlignFrame(this, () =>
|
||||
// {
|
||||
// GL.DrawElements(GepmetryType.TRIANGLES, 6, typeof(uint), IntPtr.Zero);
|
||||
//
|
||||
// vao.BindNull();
|
||||
//
|
||||
// InternalIO.glfw.SwapBuffers(windowID);
|
||||
// InternalIO.glfw.PollEvents();
|
||||
// });
|
||||
//
|
||||
// }
|
||||
// }
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
@@ -196,8 +197,24 @@ namespace StgSharp
|
||||
{
|
||||
try
|
||||
{
|
||||
StgSharpDemoForm demoForm = new StgSharpDemoForm();
|
||||
demoForm.Show(null);
|
||||
|
||||
DynamicArrayList<int> list = new DynamicArrayList<int>();
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
list.Add(i + 1);
|
||||
}
|
||||
list.ShowStructure();
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
Console.WriteLine(list[i]);
|
||||
}
|
||||
for (int i = 99; i >= 0; i--)
|
||||
{
|
||||
Console.WriteLine(list.Length);
|
||||
list.RemoveAt(i);
|
||||
}
|
||||
Console.WriteLine(list.Length);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -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+8b14599233aebdea7b06c2073fd92aa31800164d")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+659420aa6c98d2cef990b65d1c5999c6968f3699")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
51df9ffdab5f2efe774f0851f1e38e609d26429e2fe900edf259834ca9f1c168
|
||||
0ab12d2c59e99bed4d91307c0f5814fb6bd5b6c00fee74f06034c9eec82824d1
|
||||
|
||||
@@ -1 +1 @@
|
||||
00bbfd1293fc084f2832b4c2a7391aef92f545fcaa28ae1447945a3e52b96666
|
||||
9e267d6382351e5a6029e566efd636dd8c97791311edd2b33766cc1dbf39e8a8
|
||||
|
||||
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/8b14599233aebdea7b06c2073fd92aa31800164d/*"}}
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/659420aa6c98d2cef990b65d1c5999c6968f3699/*"}}
|
||||
@@ -29,22 +29,43 @@
|
||||
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"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.Form.GL">
|
||||
<member name="M:StgSharp.Graphics.Form.Init(System.Object[])">
|
||||
<summary>
|
||||
A set of methods providing support for all OpenGL
|
||||
APIs and other methods depend on OpenGL.
|
||||
Necessary operation to init this form.
|
||||
</summary>
|
||||
<param name="args"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Main(System.Object[])">
|
||||
<summary>
|
||||
Behaviour of current form when in a render cycle.
|
||||
When this form
|
||||
</summary>
|
||||
<param name="args"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Show(System.Object[])">
|
||||
<summary>
|
||||
Init this form and render it on screen, and respond with operation
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.SetRenderThreads(System.Boolean)">
|
||||
<summary>
|
||||
Define how current form render in one frame.
|
||||
</summary>
|
||||
<param name="totalThread">
|
||||
|
||||
Please define
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.InitForm(System.Int32,System.Int32,System.String,System.IntPtr,StgSharp.Graphics.Form)">
|
||||
<summary>
|
||||
Constructor of a Form, creats an instance of a form and
|
||||
@@ -94,11 +115,6 @@
|
||||
Maximum size of current form. In form of a <see cref="T:StgSharp.Math.Vec2d"/> of (width,height)
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.BindToPlatform">
|
||||
<summary>
|
||||
Bind this form to StgSharp platform.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.Texture.LoadTexture(System.Int32,System.String,StgSharp.Graphics.ImageLoader)">
|
||||
<summary>
|
||||
|
||||
@@ -107,29 +123,6 @@
|
||||
<param name="index"></param>
|
||||
<param name="loader"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.VertexBuffer.Unbind">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.VertexBuffer.SetValue``1(System.Int32,``0,StgSharp.Graphics.BufferUsage)">
|
||||
<summary>
|
||||
Set data to current vertex buffer object
|
||||
</summary>
|
||||
<typeparam name="T">Type of bufferData</typeparam>
|
||||
<param name="index">Index to find certain VBO in this instance</param>
|
||||
<param name="bufferData">Data to write in</param>
|
||||
<param name="usage">How OpenGL use these data, defined by <see cref="T:StgSharp.Graphics.BufferUsage"/></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.VertexBuffer.SetValueArray``1(System.Int32,``0[],StgSharp.Graphics.BufferUsage)">
|
||||
<summary>
|
||||
Set data to current vertex buffer object
|
||||
</summary>
|
||||
<typeparam name="T">Type of bufferData</typeparam>
|
||||
<param name="index">Index to find certain VBO in this instance</param>
|
||||
<param name="bufferArray">A array of data to write in</param>
|
||||
<param name="usage">How OpenGL use these data, defined by <see cref="T:StgSharp.Graphics.BufferUsage"/></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Form.CreateShader">
|
||||
<summary>
|
||||
Create an instance of <see cref="T:StgSharp.Graphics.Form.Shader"/> program
|
||||
@@ -193,6 +186,34 @@
|
||||
</summary>
|
||||
<param name="timer"><see cref="T:StgSharp.Graphics.FrameTimer"/> to be converted</param>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.IBufferObject">
|
||||
<summary>
|
||||
Interface of all kinds OpenGL buffer onjects
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.VertexBuffer.Unbind">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.VertexBuffer.SetValue``1(System.Int32,``0,StgSharp.Graphics.BufferUsage)">
|
||||
<summary>
|
||||
Set data to current vertex buffer object
|
||||
</summary>
|
||||
<typeparam name="T">Type of bufferData</typeparam>
|
||||
<param name="index">Index to find certain VBO in this instance</param>
|
||||
<param name="bufferData">Data to write in</param>
|
||||
<param name="usage">How OpenGL use these data, defined by <see cref="T:StgSharp.Graphics.BufferUsage"/></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.VertexBuffer.SetValueArray``1(System.Int32,``0[],StgSharp.Graphics.BufferUsage)">
|
||||
<summary>
|
||||
Set data to current vertex buffer object
|
||||
</summary>
|
||||
<typeparam name="T">Type of bufferData</typeparam>
|
||||
<param name="index">Index to find certain VBO in this instance</param>
|
||||
<param name="bufferArray">A array of data to write in</param>
|
||||
<param name="usage">How OpenGL use these data, defined by <see cref="T:StgSharp.Graphics.BufferUsage"/></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.glManager.LoadGLapi(StgSharp.Graphics.Form,StgSharp.Graphics.GLfuncLoader)">
|
||||
<summary>
|
||||
Load all aupportable OpenGL APIs and bind them to given <see cref="T:StgSharp.Graphics.Form"/> context.
|
||||
@@ -269,6 +290,34 @@
|
||||
<param name="uniform">The <see cref="T:StgSharp.Graphics.Uniform`1"/> target</param>
|
||||
<param name="vec">A <see cref="T:StgSharp.Math.Vec4d"/> value of the uniform </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.AlignFrame(StgSharp.Graphics.Form)">
|
||||
<summary>
|
||||
Align a sets of code to frame update of a <see cref="T:StgSharp.Graphics.Form"/>.
|
||||
Usually, a call of <see cref="M:StgSharp.Graphics.IglFunc.AfterAlign(StgSharp.Graphics.Form,System.Action)"/> is required.
|
||||
This method is used as sigle thread method. If more than one
|
||||
alignment is requested, a <see cref="T:System.InvalidOperationException"/> will throw.
|
||||
</summary>
|
||||
<param name="form">The form used as frame update benchmark.</param>
|
||||
<exception cref="T:System.InvalidOperationException">More than one alingment attached to one form timer</exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.AfterAlign(StgSharp.Graphics.Form,System.Action)">
|
||||
<summary>
|
||||
Operation after alignment by calling <see cref="M:StgSharp.Graphics.IglFunc.AlignFrame(StgSharp.Graphics.Form)"/>.
|
||||
No calling of this method is acceptable, but it will bring the risk
|
||||
of that relevant code will not run if it is interrupted by frame overtime.
|
||||
Please call this method immediately after calling <see cref="M:StgSharp.Graphics.IglFunc.AlignFrame(StgSharp.Graphics.Form)"/>,
|
||||
too early or sonner may cause <see cref="T:System.InvalidOperationException"/>.
|
||||
</summary>
|
||||
<param name="form">The form used as frame update benchmark.</param>
|
||||
<param name="action">Operation after frame update alignment.</param>
|
||||
<exception cref="T:System.InvalidOperationException">The action binded to a wrong alignment.</exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.ActiveTexture(System.UInt32)">
|
||||
<summary>
|
||||
Same function as OpenGL api glActiveTexture
|
||||
</summary>
|
||||
<param name="type">type of texture to activate</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.AttachShader(System.UInt32,System.UInt32)">
|
||||
<summary>
|
||||
Same fucntion as OpenGL api glAttachShader
|
||||
@@ -283,6 +332,13 @@
|
||||
<param name="bufferType"></param>
|
||||
<param name="index"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.BindTexture(System.UInt32,System.UInt32)">
|
||||
<summary>
|
||||
Same function as OpenGL api, glBindTexture.
|
||||
</summary>
|
||||
<param name="type">Type of texture to bind</param>
|
||||
<param name="texture">Sign of texture</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.BindVertexArray(System.UInt32)">
|
||||
<summary>
|
||||
Same function as OpenGL api, glBindVertexArray
|
||||
@@ -354,6 +410,13 @@
|
||||
<param name="count"></param>
|
||||
<param name="ptr"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.GenTextures(System.Int32,System.UInt32*)">
|
||||
<summary>
|
||||
Same fucnction as OpenGL api glGenTextures.
|
||||
</summary>
|
||||
<param name="count">amount of textures to generate</param>
|
||||
<param name="ptr">pointer to texture signs' array</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.GenVertexArrays(System.Int32,System.UInt32*)">
|
||||
<summary>
|
||||
Same fucntion as OpenGL api, glGenVertexArray
|
||||
@@ -369,6 +432,12 @@
|
||||
<param name="ptr">Pointer to byte array of name <see cref="T:System.String"/> of the uniform </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.MakeContexCurrent(StgSharp.Graphics.Form)">
|
||||
<summary>
|
||||
Make the OpenGL context of a vertain <see cref="T:StgSharp.Graphics.Form"/> as the activated OpenGL context.
|
||||
</summary>
|
||||
<param name="form"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.SetFrameBufferSizeCallback(System.IntPtr,StgSharp.Graphics.FrameBufferSizeHandler)">
|
||||
<summary>
|
||||
sets the framebuffer resize callback of the specified <see cref="T:StgSharp.Graphics.Form"/>,
|
||||
@@ -415,26 +484,6 @@
|
||||
</summary>
|
||||
<param name="program">Sign of program to be used</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.GenTextures(System.Int32,System.UInt32*)">
|
||||
<summary>
|
||||
Same fucnction as OpenGL api glGenTextures.
|
||||
</summary>
|
||||
<param name="count">amount of textures to generate</param>
|
||||
<param name="ptr">pointer to texture signs' array</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.BindTexture(System.UInt32,System.UInt32)">
|
||||
<summary>
|
||||
Same function as OpenGL api, glBindTexture.
|
||||
</summary>
|
||||
<param name="type">Type of texture to bind</param>
|
||||
<param name="texture">Sign of texture</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.ActiveTexture(System.UInt32)">
|
||||
<summary>
|
||||
Same function as OpenGL api glActiveTexture
|
||||
</summary>
|
||||
<param name="type">type of texture to activate</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.IglFunc.Viewport(System.Int32,System.Int32,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Same function as the OpenGL api, glViewPort
|
||||
@@ -599,6 +648,47 @@
|
||||
A square
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Logic.DynamicArrayList`1">
|
||||
<summary>
|
||||
A linear data structure with dynamic length.
|
||||
It contains a <see cref="T:System.Collections.Generic.List`1"/> of <see cref="T:System.Array"/>,
|
||||
each <see cref="T:System.Array"/> is twice longer than the former one.
|
||||
</summary>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:StgSharp.Logic.DynamicArrayList`1.#ctor(System.Int32)">
|
||||
<summary>
|
||||
Init a <see cref="T:StgSharp.Logic.DynamicArrayList`1"/> with a certain amount of elements prepared.
|
||||
</summary>
|
||||
<param name="count">Amount of elements to be prepared.</param>
|
||||
</member>
|
||||
<member name="P:StgSharp.Logic.DynamicArrayList`1.Length">
|
||||
<summary>
|
||||
Length of this <see cref="T:StgSharp.Logic.DynamicArrayList`1"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Logic.Bool2">
|
||||
<summary>
|
||||
A pair of <see cref="T:System.Boolean"/> value
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Logic.Bool2.Value">
|
||||
<summary>
|
||||
A <see cref="T:System.UInt16"/> value.
|
||||
The lower byte is <see cref="F:StgSharp.Logic.Bool2.bool0"/>,
|
||||
and higher byte is <see cref="F:StgSharp.Logic.Bool2.bool1"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Logic.Bool2.bool0">
|
||||
<summary>
|
||||
The first <see cref="T:System.Boolean"/> value.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Logic.Bool2.bool1">
|
||||
<summary>
|
||||
The second <see cref="T:System.Boolean"/> value.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.LinkedList`1.IsEmpty">
|
||||
<summary>
|
||||
Whether this linked list has no members or not.
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user