daily update on 20231113 by nitload youmu, upgrade gl loader complete

This commit is contained in:
Nitload
2023-11-14 02:51:12 +08:00
parent dac5f2455b
commit ae804553ce
84 changed files with 5492 additions and 98112 deletions
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.
@@ -0,0 +1,89 @@
Info @ 2023-11-14T02:37:48.7343911+08:00
Program start
Info @ 2023-11-14T02:37:48.7633374+08:00
Successfully load GLFW APIs. StgSharp is now working on p/invoke mode
Info @ 2023-11-14T02:37:48.8851886+08:00
Successfully create a context binded to current form. Its ID is 1818270039616
Error @ 2023-11-14T02:37:48.9267693+08:00
Object reference not set to an instance of an object.
at StgSharp.Graphics.Shader..ctor() in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Graphics\GL\Buffer\Shader.cs:line 16
at StgSharp.Program.DebugMain(String[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 34
at StgSharp.Program.Main(String[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 129
Info @ 2023-11-14T02:45:18.8693338+08:00
Program start
Info @ 2023-11-14T02:45:18.9004651+08:00
Successfully load GLFW APIs. StgSharp is now working on p/invoke mode
Info @ 2023-11-14T02:45:19.0302489+08:00
Successfully create a context binded to current form. Its ID is 1935559252096
Info @ 2023-11-14T02:45:19.0530565+08:00
Find core OpenGL version.
Successfully load all OpenGL 1.0 APIs
Successfully load all OpenGL 1.1 APIs
Successfully load all OpenGL 1.2 APIs
Successfully load all OpenGL 1.3 APIs
Successfully load all OpenGL 1.4 APIs
Successfully load all OpenGL 1.5 APIs
Successfully load all OpenGL 2.0 APIs
Successfully load all OpenGL 2.1 APIs
Successfully load all OpenGL 3.0 APIs
Successfully load all OpenGL 3.1 APIs
Successfully load all OpenGL 3.2 APIs
Successfully load all OpenGL 3.3 APIs
Successfully load all OpenGL 4.0 APIs
Successfully load all OpenGL 4.1 APIs
Successfully load all OpenGL 4.2 APIs
Successfully load all OpenGL 4.3 APIs
Successfully load all OpenGL 4.4 APIs
Cannot load OpenGL api called glGetnTexImage, this api may not exist or supported.
Cannot load OpenGL api called glGetnUniformdv, this api may not exist or supported.
Successfully load all OpenGL 4.5 APIs
Cannot load OpenGL api called glMultiDrawArraysIndirectCount, this api may not exist or supported.
Cannot load OpenGL api called glMultiDrawElementsIndirectCount, this api may not exist or supported.
Successfully load all OpenGL 4.6 APIs
Info @ 2023-11-14T02:45:19.1203473+08:00
No supported OpenGL extensions are found.
Info @ 2023-11-14T02:46:07.2551309+08:00
Program start
Info @ 2023-11-14T02:46:07.2827034+08:00
Successfully load GLFW APIs. StgSharp is now working on p/invoke mode
Info @ 2023-11-14T02:46:07.3949286+08:00
Successfully create a context binded to current form. Its ID is 2011041170880
Info @ 2023-11-14T02:46:07.4163324+08:00
Find core OpenGL version.
Successfully load all OpenGL 1.0 APIs
Successfully load all OpenGL 1.1 APIs
Successfully load all OpenGL 1.2 APIs
Successfully load all OpenGL 1.3 APIs
Successfully load all OpenGL 1.4 APIs
Successfully load all OpenGL 1.5 APIs
Successfully load all OpenGL 2.0 APIs
Successfully load all OpenGL 2.1 APIs
Successfully load all OpenGL 3.0 APIs
Successfully load all OpenGL 3.1 APIs
Successfully load all OpenGL 3.2 APIs
Successfully load all OpenGL 3.3 APIs
Successfully load all OpenGL 4.0 APIs
Successfully load all OpenGL 4.1 APIs
Successfully load all OpenGL 4.2 APIs
Successfully load all OpenGL 4.3 APIs
Successfully load all OpenGL 4.4 APIs
Cannot load OpenGL api called glGetnTexImage, this api may not exist or supported.
Cannot load OpenGL api called glGetnUniformdv, this api may not exist or supported.
Successfully load all OpenGL 4.5 APIs
Cannot load OpenGL api called glMultiDrawArraysIndirectCount, this api may not exist or supported.
Cannot load OpenGL api called glMultiDrawElementsIndirectCount, this api may not exist or supported.
Successfully load all OpenGL 4.6 APIs
Info @ 2023-11-14T02:46:07.5006823+08:00
No supported OpenGL extensions are found.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -125,6 +125,13 @@
<returns>The instance of created form</returns>
<exception cref="T:System.Exception"></exception>
</member>
<member name="M:StgSharp.Graphics.glManager.LoadGLfunc(System.String)">
<summary>
Get the function pointer of given OpenGL api name
</summary>
<param name="name">Name of the OpenGL api</param>
<returns>The funtion pointer of the api in form of <see cref="T:System.IntPtr"/></returns>
</member>
<member name="M:StgSharp.Graphics.Graphic.InitGL(System.Int32,System.Int32)">
<summary>
Init an instance of OpenGL program,
File diff suppressed because it is too large Load Diff
@@ -891,7 +891,7 @@ namespace StgSharp.Graphics
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate void glGetShadingRateSampleLocationivNV(uint rate, uint samples, uint index, int* location);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate void glGetSharpenTexFuncSGIS(uint target, float* points);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate ushort glGetStageIndexNV(uint shadertype);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate string glGetString(uint name);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate IntPtr glGetString(uint name);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate byte* glGetStringi(uint name, uint index);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate uint glGetSubroutineIndex(uint program, uint shadertype, byte* name);
[UnmanagedFunctionPointer(CallingConvention.StdCall)] internal unsafe delegate int glGetSubroutineUniformLocation(uint program, uint shadertype, byte* name);
+8 -7
View File
@@ -52,9 +52,8 @@ namespace StgSharp.Graphics
~Form()
{
InternalIO.InternalUnloadGLcontext(glContext);
GL.gl = default;
Marshal.FreeHGlobal((IntPtr)glContext);
Marshal.FreeHGlobal((IntPtr)contextID);
}
public int Height
@@ -108,13 +107,15 @@ namespace StgSharp.Graphics
{
windowID = windowPtr;
}
IntPtr ptr = Marshal.AllocHGlobal(sizeof(GLcontext));
glContext = (GLcontext*)ptr;
glContext = new GLcontext();
IntPtr ptr = Marshal.AllocHGlobal(sizeof(GLcontextIO));
contextID = (GLcontextIO*)ptr;
*contextID = new GLcontextIO();
InternalIO.InternalWriteLog("Successfully create a context binded to current form. " +
$"Its ID is {(ulong)ptr}", LogType.Info);
}
GL.gl = glContext;
InternalIO.InternalSetCurrentGLContext(windowID, glContext);
InternalIO.InternalSetCurrentGLContext(windowID, (IntPtr)contextID);
}
/// <summary>
+4 -4
View File
@@ -16,7 +16,7 @@ namespace StgSharp.Graphics
_bufferID = new uint[n];
fixed (uint* id = _bufferID)
{
GL.gl->GenBuffers(n, id);
GL.gl.GenBuffers(n, id);
}
}
@@ -27,14 +27,14 @@ namespace StgSharp.Graphics
public void Bind(int index)
{
GL.gl->BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
}
public void SetData<T>(int index, T[] bufferArray, BufferUsage usage)
where T : struct, IConvertible
{
GL.gl->BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.SetBufferData(BufferType.ELEMENT_ARRAY_BUFFER, bufferArray, usage);
}
@@ -42,7 +42,7 @@ namespace StgSharp.Graphics
{
fixed (uint* id = _bufferID)
{
GL.gl->DeleteBuffers(1, id);
GL.gl.DeleteBuffers(1, id);
}
}
@@ -13,19 +13,19 @@ namespace StgSharp.Graphics
public unsafe Shader()
{
programID = GL.gl->CreateProgram();
programID = GL.gl.CreateProgram();
}
public unsafe void CompileVertexShader(string shaderCode)
{
vertexShaderID = GL.CompileShader(shaderCode, ShaderType.VERTEX);
GL.gl->AttachShader(programID, vertexShaderID);
GL.gl.AttachShader(programID, vertexShaderID);
}
public unsafe void CompileFragmentShader(string shaderCode)
{
fragmentShaderID = GL.CompileShader(shaderCode, ShaderType.FRAGMENT);
GL.gl->AttachShader(programID, fragmentShaderID);
GL.gl.AttachShader(programID, fragmentShaderID);
}
public void Link()
@@ -50,7 +50,7 @@ namespace StgSharp.Graphics
public unsafe void Use()
{
GL.gl->UseProgram(programID);
GL.gl.UseProgram(programID);
}
}
+4 -4
View File
@@ -13,7 +13,7 @@ namespace StgSharp.Graphics
_bufferID = new uint[n];
fixed (uint* id = _bufferID)
{
GL.gl->GenVertexArrays(n, id);
GL.gl.GenVertexArrays(n, id);
}
}
@@ -27,21 +27,21 @@ namespace StgSharp.Graphics
public void Bind(int index)
{
GL.gl->BindVertexArray(_bufferID[index]);
GL.gl.BindVertexArray(_bufferID[index]);
}
public void Dispose()
{
fixed (uint* id = _bufferID)
{
GL.gl->DeleteVertexArrays(_bufferID.Length, id);
GL.gl.DeleteVertexArrays(_bufferID.Length, id);
}
}
public void SetVertexAttribute(uint index, int vertexLength, Type dataType, bool isNomalized, int stride, int pointer)
{
GL.gl->VertexAttribPointer(
GL.gl.VertexAttribPointer(
index, vertexLength, InternalIO.GLtype[dataType],
isNomalized,
stride, (void*)pointer);
+6 -6
View File
@@ -17,7 +17,7 @@ namespace StgSharp.Graphics
_bufferID = new uint[n];
fixed (uint* ptr = _bufferID)
{
GL.gl->GenBuffers(n, ptr);
GL.gl.GenBuffers(n, ptr);
}
}
@@ -31,19 +31,19 @@ namespace StgSharp.Graphics
/// </summary>
public static void Unbind()
{
GL.gl->BindBuffer(GLconst.ARRAY_BUFFER, 0);
GL.gl.BindBuffer(GLconst.ARRAY_BUFFER, 0);
}
public void Bind(int index)
{
GL.gl->BindBuffer(GLconst.ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ARRAY_BUFFER, _bufferID[index]);
}
public void Dispose()
{
fixed (uint* id = _bufferID)
{
GL.gl->DeleteBuffers(_bufferID.Length, id);
GL.gl.DeleteBuffers(_bufferID.Length, id);
}
}
@@ -55,14 +55,14 @@ namespace StgSharp.Graphics
/// <param name="readType"></param>
public void SetData<T>(int index, T bufferData, BufferUsage usage) where T : IMat
{
GL.gl->BindBuffer((int)BufferType.ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer((int)BufferType.ARRAY_BUFFER, _bufferID[index]);
GL.SetBufferData(BufferType.ARRAY_BUFFER, bufferData, usage);
}
public void SetDataArray<T>(int index, T[] bufferArray, BufferUsage usage) where T : struct, IConvertible
{
GL.gl->BindBuffer(GLconst.ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ARRAY_BUFFER, _bufferID[index]);
GL.SetBufferData(BufferType.ARRAY_BUFFER, bufferArray, usage);
}
}
@@ -15,13 +15,13 @@ namespace StgSharp.Graphics
textureId = new uint[n];
fixed (uint* id = textureId)
{
GL.gl->GenTextures(n, id);
GL.gl.GenTextures(n, id);
}
}
public void Bind(int index)
{
GL.gl->BindTexture(GLconst.PROXY_TEXTURE_2D, textureId[index]);
GL.gl.BindTexture(GLconst.PROXY_TEXTURE_2D, textureId[index]);
}
}
+8 -10
View File
@@ -9,9 +9,7 @@ namespace StgSharp.Graphics
{
public static unsafe partial class GL
{
internal unsafe static GLcontext* gl;
internal unsafe static GLcontext gl;
/// <summary>
/// sets the framebuffer resize callback of the specified <see cref="Form"/>,
@@ -38,7 +36,7 @@ namespace StgSharp.Graphics
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe void ClearColor(float R, float G, float B, float A)
{
ClearColor(R, G, B, A);
gl.ClearColor(R, G, B, A);
}
/// <summary>
@@ -130,7 +128,7 @@ namespace StgSharp.Graphics
public static unsafe uint CreatGraphicProgram()
{
return gl->CreateProgram();
return gl.CreateProgram();
}
@@ -156,7 +154,7 @@ namespace StgSharp.Graphics
LogType.Error);
return;
}
gl->DrawElements((uint)mode, count, a, (void*)ptr);
gl.DrawElements((uint)mode, count, a, (void*)ptr);
}
@@ -192,7 +190,7 @@ namespace StgSharp.Graphics
public static unsafe void SetBufferData<T>(BufferType bufferType, T bufferData, BufferUsage usage) where T : IMat
{
int size = sizeof(T);
gl->BufferData(
gl.BufferData(
(uint)bufferType,
size,
&bufferData,
@@ -202,14 +200,14 @@ namespace StgSharp.Graphics
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe void ClearGraphicError()
{
while (gl->GetError() != 0) { }
while (gl.GetError() != 0) { }
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe void GetGraphicError()
{
string error = null;
uint code = gl->GetError();
uint code = gl.GetError();
while (code != 0)
{
error += $"OpenGL error {code}\n";
@@ -240,7 +238,7 @@ namespace StgSharp.Graphics
int size = bufferArray.Length * Marshal.SizeOf(typeof(T));
fixed (void* bufferPtr = &bufferArray[0])
gl->BufferData(
gl.BufferData(
(uint)bufferType,
size,
bufferPtr,
+2 -78
View File
@@ -9,87 +9,11 @@ namespace StgSharp.Graphics
{
public unsafe partial class Form
{
internal GLcontext* glContext;
internal GLcontext glContext;
internal GLcontextIO* contextID;
private int missingAPIcount = 0;
private int problemAPIcount = 0;
public unsafe IntPtr LoadGLfunc(string name)
{
string log = $"Attempt to load ";
IntPtr ret = InternalIO.glfw.GetProcAddress(name);
if (ret == default)
{
InternalIO.InternalAppendLog(
$"Cannot load OpenGL api called {name}, this api may not exist or supported.");
missingAPIcount++;
return ret;
}
return ret;
}
public unsafe void LoadGlapi()
{
InternalIO.InternalLoaderLoadGLapi(glContext, LoadGLfunc);
//check out if all api is converted correctely.
FieldInfo[] target = typeof(GLcontext).GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
string problemLog = "Have problem in converting the fallowing GL API to C# delegates:\n";
foreach (FieldInfo item in target)
{
if (item.FieldType.Name.Contains("PFNG"))
{
if (item.GetValue(*glContext) == null)
{
problemLog += item.Name + ",";
problemAPIcount++;
}
}
}
InternalIO.InternalWriteLog(problemLog, LogType.Error);
if (problemAPIcount > missingAPIcount)
{
InternalIO.InternalWriteLog("Attempt to reload GL APIs", LogType.Info);
//use IntPtr as interface
TypedReference contextref = __makeref(*glContext);
GLcontextIO* iopack = (GLcontextIO*)glContext;
TypedReference iosource = __makeref(*iopack);
foreach (FieldInfo item in target)
{
if (item.FieldType.IsSubclassOf(typeof(Delegate))
&& item.GetValueDirect(contextref) == null)
{
IntPtr proc = default;
proc = LoadGLfunc("gl" + item.Name);
if (proc != IntPtr.Zero)
{
try
{
Delegate dele = Marshal.GetDelegateForFunctionPointer(proc, item.FieldType);
item.SetValueDirect(contextref, dele);
}
catch (Exception ex)
{
InternalIO.InternalWriteLog(
$"{ex.Message}",
LogType.Error);
}
}
}
}
}
GL.gl = glContext;
}
}
}
@@ -3,11 +3,6 @@ using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using static StgSharp.Graphics.GLFWlibrary;
using static System.Net.Mime.MediaTypeNames;
using System.Threading;
namespace StgSharp.Graphics
{
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,659 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Graphics
{
public static partial class glManager
{
#region coreVersion
private static bool core10 = false;
private static bool core11 = false;
private static bool core12 = false;
private static bool core13 = false;
private static bool core14 = false;
private static bool core15 = false;
private static bool core20 = false;
private static bool core21 = false;
private static bool core30 = false;
private static bool core31 = false;
private static bool core32 = false;
private static bool core33 = false;
private static bool core40 = false;
private static bool core41 = false;
private static bool core42 = false;
private static bool core43 = false;
private static bool core44 = false;
private static bool core45 = false;
private static bool core46 = false;
#endregion
#region extension
private static bool _3DFX_tbuffer;
private static bool _3DFX_texture_compression_FXT1;
private static bool _4DFX_multisample;
private static bool AMD_blend_minmax_factor;
private static bool AMD_conservative_depth;
private static bool AMD_debug_output;
private static bool AMD_depth_clamp_separate;
private static bool AMD_draw_buffers_blend;
private static bool AMD_framebuffer_multisample_advanced;
private static bool AMD_framebuffer_sample_positions;
private static bool AMD_gcn_shader;
private static bool AMD_gpu_shader_half_float;
private static bool AMD_gpu_shader_int16;
private static bool AMD_gpu_shader_int64;
private static bool AMD_interleaved_elements;
private static bool AMD_multi_draw_indirect;
private static bool AMD_name_gen_delete;
private static bool AMD_occlusion_query_event;
private static bool AMD_performance_monitor;
private static bool AMD_pinned_memory;
private static bool AMD_query_buffer_object;
private static bool AMD_sample_positions;
private static bool AMD_seamless_cubemap_per_texture;
private static bool AMD_shader_atomic_counter_ops;
private static bool AMD_shader_ballot;
private static bool AMD_shader_explicit_vertex_parameter;
private static bool AMD_shader_gpu_shader_half_float_fetch;
private static bool AMD_shader_image_load_store_lod;
private static bool AMD_shader_stencil_export;
private static bool AMD_shader_trinary_minmax;
private static bool AMD_sparse_texture;
private static bool AMD_stencil_operation_extended;
private static bool AMD_texture_gather_bias_lod;
private static bool AMD_texture_texture4;
private static bool AMD_transform_feedback3_lines_triangles;
private static bool AMD_transform_feedback4;
private static bool AMD_vertex_shader_layer;
private static bool AMD_vertex_shader_tessellator;
private static bool AMD_vertex_shader_viewport_index;
private static bool APPLE_aux_depth_stencil;
private static bool APPLE_client_storage;
private static bool APPLE_element_array;
private static bool APPLE_fence;
private static bool APPLE_float_pixels;
private static bool APPLE_flush_buffer_range;
private static bool APPLE_object_purgeable;
private static bool APPLE_rgb_422;
private static bool APPLE_row_bytes;
private static bool APPLE_specular_vector;
private static bool APPLE_texture_range;
private static bool APPLE_transform_hint;
private static bool APPLE_vertex_array_object;
private static bool APPLE_vertex_array_range;
private static bool APPLE_vertex_program_evaluators;
private static bool APPLE_ycbcr_422;
private static bool ARB_arrays_of_arrays;
private static bool ARB_base_instance;
private static bool ARB_bindless_texture;
private static bool ARB_blend_func_extended;
private static bool ARB_buffer_storage;
private static bool ARB_cl_event;
private static bool ARB_clear_buffer_object;
private static bool ARB_clear_texture;
private static bool ARB_clip_control;
private static bool ARB_color_buffer_float;
private static bool ARB_compatibility;
private static bool ARB_compressed_texture_pixel_storage;
private static bool ARB_compute_shader;
private static bool ARB_compute_variable_group_size;
private static bool ARB_conditional_render_inverted;
private static bool ARB_conservative_depth;
private static bool ARB_copy_buffer;
private static bool ARB_copy_image;
private static bool ARB_cull_distance;
private static bool ARB_debug_output;
private static bool ARB_depth_buffer_float;
private static bool ARB_depth_clamp;
private static bool ARB_depth_texture;
private static bool ARB_derivative_control;
private static bool ARB_direct_state_access;
private static bool ARB_draw_buffers;
private static bool ARB_draw_buffers_blend;
private static bool ARB_draw_elements_base_vertex;
private static bool ARB_draw_indirect;
private static bool ARB_draw_instanced;
private static bool ARB_enhanced_layouts;
private static bool ARB_ES2_compatibility;
private static bool ARB_ES3_1_compatibility;
private static bool ARB_ES3_2_compatibility;
private static bool ARB_ES3_compatibility;
private static bool ARB_explicit_attrib_location;
private static bool ARB_explicit_uniform_location;
private static bool ARB_fragment_coord_conventions;
private static bool ARB_fragment_layer_viewport;
private static bool ARB_fragment_program;
private static bool ARB_fragment_program_shadow;
private static bool ARB_fragment_shader;
private static bool ARB_fragment_shader_interlock;
private static bool ARB_framebuffer_no_attachments;
private static bool ARB_framebuffer_object;
private static bool ARB_framebuffer_sRGB;
private static bool ARB_geometry_shader4;
private static bool ARB_get_program_binary;
private static bool ARB_get_texture_sub_image;
private static bool ARB_gl_spirv;
private static bool ARB_gpu_shader_fp64;
private static bool ARB_gpu_shader_int64;
private static bool ARB_gpu_shader5;
private static bool ARB_half_float_pixel;
private static bool ARB_half_float_vertex;
private static bool ARB_imaging;
private static bool ARB_indirect_parameters;
private static bool ARB_instanced_arrays;
private static bool ARB_internalformat_query;
private static bool ARB_internalformat_query2;
private static bool ARB_invalidate_subdata;
private static bool ARB_map_buffer_alignment;
private static bool ARB_map_buffer_range;
private static bool ARB_matrix_palette;
private static bool ARB_multi_bind;
private static bool ARB_multi_draw_indirect;
private static bool ARB_multisample;
private static bool ARB_multitexture;
private static bool ARB_occlusion_query;
private static bool ARB_occlusion_query2;
private static bool ARB_parallel_shader_compile;
private static bool ARB_pipeline_statistics_query;
private static bool ARB_pixel_buffer_object;
private static bool ARB_point_parameters;
private static bool ARB_point_sprite;
private static bool ARB_polygon_offset_clamp;
private static bool ARB_post_depth_coverage;
private static bool ARB_program_interface_query;
private static bool ARB_provoking_vertex;
private static bool ARB_query_buffer_object;
private static bool ARB_robust_buffer_access_behavior;
private static bool ARB_robustness;
private static bool ARB_robustness_isolation;
private static bool ARB_sample_locations;
private static bool ARB_sample_shading;
private static bool ARB_sampler_objects;
private static bool ARB_seamless_cube_map;
private static bool ARB_seamless_cubemap_per_texture;
private static bool ARB_separate_shader_objects;
private static bool ARB_shader_atomic_counter_ops;
private static bool ARB_shader_atomic_counters;
private static bool ARB_shader_ballot;
private static bool ARB_shader_bit_encoding;
private static bool ARB_shader_clock;
private static bool ARB_shader_draw_parameters;
private static bool ARB_shader_group_vote;
private static bool ARB_shader_image_load_store;
private static bool ARB_shader_image_size;
private static bool ARB_shader_objects;
private static bool ARB_shader_precision;
private static bool ARB_shader_stencil_export;
private static bool ARB_shader_storage_buffer_object;
private static bool ARB_shader_subroutine;
private static bool ARB_shader_texture_image_samples;
private static bool ARB_shader_texture_lod;
private static bool ARB_shader_viewport_layer_array;
private static bool ARB_shading_language_100;
private static bool ARB_shading_language_420pack;
private static bool ARB_shading_language_include;
private static bool ARB_shading_language_packing;
private static bool ARB_shadow;
private static bool ARB_shadow_ambient;
private static bool ARB_sparse_buffer;
private static bool ARB_sparse_texture;
private static bool ARB_sparse_texture_clamp;
private static bool ARB_sparse_texture2;
private static bool ARB_spirv_extensions;
private static bool ARB_stencil_texturing;
private static bool ARB_sync;
private static bool ARB_tessellation_shader;
private static bool ARB_texture_barrier;
private static bool ARB_texture_border_clamp;
private static bool ARB_texture_buffer_object;
private static bool ARB_texture_buffer_object_rgb32;
private static bool ARB_texture_buffer_range;
private static bool ARB_texture_compression;
private static bool ARB_texture_compression_bptc;
private static bool ARB_texture_compression_rgtc;
private static bool ARB_texture_cube_map;
private static bool ARB_texture_cube_map_array;
private static bool ARB_texture_env_add;
private static bool ARB_texture_env_combine;
private static bool ARB_texture_env_crossbar;
private static bool ARB_texture_env_dot3;
private static bool ARB_texture_filter_anisotropic;
private static bool ARB_texture_filter_minmax;
private static bool ARB_texture_float;
private static bool ARB_texture_gather;
private static bool ARB_texture_mirror_clamp_to_edge;
private static bool ARB_texture_mirrored_repeat;
private static bool ARB_texture_multisample;
private static bool ARB_texture_non_power_of_two;
private static bool ARB_texture_query_levels;
private static bool ARB_texture_query_lod;
private static bool ARB_texture_rectangle;
private static bool ARB_texture_rg;
private static bool ARB_texture_rgb10_a2ui;
private static bool ARB_texture_stencil8;
private static bool ARB_texture_storage;
private static bool ARB_texture_storage_multisample;
private static bool ARB_texture_swizzle;
private static bool ARB_texture_view;
private static bool ARB_timer_query;
private static bool ARB_transform_feedback_instanced;
private static bool ARB_transform_feedback_overflow_query;
private static bool ARB_transform_feedback2;
private static bool ARB_transform_feedback3;
private static bool ARB_transpose_matrix;
private static bool ARB_uniform_buffer_object;
private static bool ARB_vertex_array_bgra;
private static bool ARB_vertex_array_object;
private static bool ARB_vertex_attrib_64bit;
private static bool ARB_vertex_attrib_binding;
private static bool ARB_vertex_blend;
private static bool ARB_vertex_buffer_object;
private static bool ARB_vertex_program;
private static bool ARB_vertex_shader;
private static bool ARB_vertex_type_10f_11f_11f_rev;
private static bool ARB_vertex_type_2_10_10_10_rev;
private static bool ARB_viewport_array;
private static bool ARB_window_pos;
private static bool ATI_draw_buffers;
private static bool ATI_element_array;
private static bool ATI_envmap_bumpmap;
private static bool ATI_fragment_shader;
private static bool ATI_map_object_buffer;
private static bool ATI_meminfo;
private static bool ATI_pixel_format_float;
private static bool ATI_pn_triangles;
private static bool ATI_separate_stencil;
private static bool ATI_text_fragment_shader;
private static bool ATI_texture_env_combine3;
private static bool ATI_texture_float;
private static bool ATI_texture_mirror_once;
private static bool ATI_vertex_array_object;
private static bool ATI_vertex_attrib_array_object;
private static bool ATI_vertex_streams;
private static bool EXT_422_pixels;
private static bool EXT_abgr;
private static bool EXT_bgra;
private static bool EXT_bindable_uniform;
private static bool EXT_blend_color;
private static bool EXT_blend_equation_separate;
private static bool EXT_blend_func_separate;
private static bool EXT_blend_logic_op;
private static bool EXT_blend_minmax;
private static bool EXT_blend_subtract;
private static bool EXT_clip_volume_hint;
private static bool EXT_cmyka;
private static bool EXT_color_subtable;
private static bool EXT_compiled_vertex_array;
private static bool EXT_convolution;
private static bool EXT_coordinate_frame;
private static bool EXT_copy_texture;
private static bool EXT_cull_vertex;
private static bool EXT_debug_label;
private static bool EXT_debug_marker;
private static bool EXT_depth_bounds_test;
private static bool EXT_direct_state_access;
private static bool EXT_draw_buffers2;
private static bool EXT_draw_instanced;
private static bool EXT_draw_range_elements;
private static bool EXT_EGL_image_storage;
private static bool EXT_EGL_sync;
private static bool EXT_external_buffer;
private static bool EXT_fog_coord;
private static bool EXT_framebuffer_blit;
private static bool EXT_framebuffer_blit_layers;
private static bool EXT_framebuffer_multisample;
private static bool EXT_framebuffer_multisample_blit_scaled;
private static bool EXT_framebuffer_object;
private static bool EXT_framebuffer_sRGB;
private static bool EXT_geometry_shader4;
private static bool EXT_gpu_program_parameters;
private static bool EXT_gpu_shader4;
private static bool EXT_histogram;
private static bool EXT_index_array_formats;
private static bool EXT_index_func;
private static bool EXT_index_material;
private static bool EXT_index_texture;
private static bool EXT_light_texture;
private static bool EXT_memory_object;
private static bool EXT_memory_object_fd;
private static bool EXT_memory_object_win32;
private static bool EXT_misc_attribute;
private static bool EXT_multi_draw_arrays;
private static bool EXT_multisample;
private static bool EXT_multiview_tessellation_geometry_shader;
private static bool EXT_multiview_texture_multisample;
private static bool EXT_multiview_timer_query;
private static bool EXT_packed_depth_stencil;
private static bool EXT_packed_float;
private static bool EXT_packed_pixels;
private static bool EXT_paletted_texture;
private static bool EXT_pixel_buffer_object;
private static bool EXT_pixel_transform;
private static bool EXT_pixel_transform_color_table;
private static bool EXT_point_parameters;
private static bool EXT_polygon_offset;
private static bool EXT_polygon_offset_clamp;
private static bool EXT_post_depth_coverage;
private static bool EXT_provoking_vertex;
private static bool EXT_raster_multisample;
private static bool EXT_rescale_normal;
private static bool EXT_secondary_color;
private static bool EXT_semaphore;
private static bool EXT_semaphore_fd;
private static bool EXT_semaphore_win32;
private static bool EXT_separate_shader_objects;
private static bool EXT_separate_specular_color;
private static bool EXT_shader_framebuffer_fetch;
private static bool EXT_shader_framebuffer_fetch_non_coherent;
private static bool EXT_shader_image_load_formatted;
private static bool EXT_shader_image_load_store;
private static bool EXT_shader_integer_mix;
private static bool EXT_shader_samples_identical;
private static bool EXT_shadow_funcs;
private static bool EXT_shared_texture_palette;
private static bool EXT_sparse_texture2;
private static bool EXT_stencil_clear_tag;
private static bool EXT_stencil_two_side;
private static bool EXT_stencil_wrap;
private static bool EXT_subtexture;
private static bool EXT_texture;
private static bool EXT_texture_array;
private static bool EXT_texture_buffer_object;
private static bool EXT_texture_compression_latc;
private static bool EXT_texture_compression_rgtc;
private static bool EXT_texture_compression_s3tc;
private static bool EXT_texture_cube_map;
private static bool EXT_texture_env_add;
private static bool EXT_texture_env_combine;
private static bool EXT_texture_env_dot3;
private static bool EXT_texture_filter_anisotropic;
private static bool EXT_texture_filter_minmax;
private static bool EXT_texture_integer;
private static bool EXT_texture_lod_bias;
private static bool EXT_texture_mirror_clamp;
private static bool EXT_texture_object;
private static bool EXT_texture_perturb_normal;
private static bool EXT_texture_shadow_lod;
private static bool EXT_texture_shared_exponent;
private static bool EXT_texture_snorm;
private static bool EXT_texture_sRGB;
private static bool EXT_texture_sRGB_decode;
private static bool EXT_texture_sRGB_R8;
private static bool EXT_texture_sRGB_RG8;
private static bool EXT_texture_storage;
private static bool EXT_texture_swizzle;
private static bool EXT_texture3D;
private static bool EXT_timer_query;
private static bool EXT_transform_feedback;
private static bool EXT_vertex_array;
private static bool EXT_vertex_array_bgra;
private static bool EXT_vertex_attrib_64bit;
private static bool EXT_vertex_shader;
private static bool EXT_vertex_weighting;
private static bool EXT_win32_keyed_mutex;
private static bool EXT_window_rectangles;
private static bool EXT_x11_sync_object;
private static bool GREMEDY_frame_terminator;
private static bool GREMEDY_string_marker;
private static bool HP_convolution_border_modes;
private static bool HP_image_transform;
private static bool HP_occlusion_test;
private static bool HP_texture_lighting;
private static bool IBM_cull_vertex;
private static bool IBM_multimode_draw_arrays;
private static bool IBM_rasterpos_clip;
private static bool IBM_static_data;
private static bool IBM_texture_mirrored_repeat;
private static bool IBM_vertex_array_lists;
private static bool INGR_blend_func_separate;
private static bool INGR_color_clamp;
private static bool INGR_interlace_read;
private static bool INTEL_blackhole_render;
private static bool INTEL_conservative_rasterization;
private static bool INTEL_fragment_shader_ordering;
private static bool INTEL_framebuffer_CMAA;
private static bool INTEL_map_texture;
private static bool INTEL_parallel_arrays;
private static bool INTEL_performance_query;
private static bool KHR_blend_equation_advanced;
private static bool KHR_blend_equation_advanced_coherent;
private static bool KHR_context_flush_control;
private static bool KHR_debug;
private static bool KHR_no_error;
private static bool KHR_parallel_shader_compile;
private static bool KHR_robust_buffer_access_behavior;
private static bool KHR_robustness;
private static bool KHR_shader_subgroup;
private static bool KHR_texture_compression_astc_hdr;
private static bool KHR_texture_compression_astc_ldr;
private static bool KHR_texture_compression_astc_sliced_3d;
private static bool MESA_framebuffer_flip_x;
private static bool MESA_framebuffer_flip_y;
private static bool MESA_framebuffer_swap_xy;
private static bool MESA_pack_invert;
private static bool MESA_program_binary_formats;
private static bool MESA_resize_buffers;
private static bool MESA_shader_integer_functions;
private static bool MESA_tile_raster_order;
private static bool MESA_window_pos;
private static bool MESA_ycbcr_texture;
private static bool MESAX_texture_stack;
private static bool NV_alpha_to_coverage_dither_control;
private static bool NV_bindless_multi_draw_indirect;
private static bool NV_bindless_multi_draw_indirect_count;
private static bool NV_bindless_texture;
private static bool NV_blend_equation_advanced;
private static bool NV_blend_equation_advanced_coherent;
private static bool NV_blend_minmax_factor;
private static bool NV_blend_square;
private static bool NV_clip_space_w_scaling;
private static bool NV_command_list;
private static bool NV_compute_program5;
private static bool NV_compute_shader_derivatives;
private static bool NV_conditional_render;
private static bool NV_conservative_raster;
private static bool NV_conservative_raster_dilate;
private static bool NV_conservative_raster_pre_snap;
private static bool NV_conservative_raster_pre_snap_triangles;
private static bool NV_conservative_raster_underestimation;
private static bool NV_copy_depth_to_color;
private static bool NV_copy_image;
private static bool NV_deep_texture3D;
private static bool NV_depth_buffer_float;
private static bool NV_depth_clamp;
private static bool NV_draw_texture;
private static bool NV_draw_vulkan_image;
private static bool NV_evaluators;
private static bool NV_explicit_multisample;
private static bool NV_fence;
private static bool NV_fill_rectangle;
private static bool NV_float_buffer;
private static bool NV_fog_distance;
private static bool NV_fragment_coverage_to_color;
private static bool NV_fragment_program;
private static bool NV_fragment_program_option;
private static bool NV_fragment_program2;
private static bool NV_fragment_program4;
private static bool NV_fragment_shader_barycentric;
private static bool NV_fragment_shader_interlock;
private static bool NV_framebuffer_mixed_samples;
private static bool NV_framebuffer_multisample_coverage;
private static bool NV_geometry_program4;
private static bool NV_geometry_shader_passthrough;
private static bool NV_geometry_shader4;
private static bool NV_gpu_multicast;
private static bool NV_gpu_program4;
private static bool NV_gpu_program5;
private static bool NV_gpu_program5_mem_extended;
private static bool NV_gpu_shader5;
private static bool NV_half_float;
private static bool NV_internalformat_sample_query;
private static bool NV_light_max_exponent;
private static bool NV_memory_attachment;
private static bool NV_memory_object_sparse;
private static bool NV_mesh_shader;
private static bool NV_multisample_coverage;
private static bool NV_multisample_filter_hint;
private static bool NV_occlusion_query;
private static bool NV_packed_depth_stencil;
private static bool NV_parameter_buffer_object;
private static bool NV_parameter_buffer_object2;
private static bool NV_path_rendering;
private static bool NV_path_rendering_shared_edge;
private static bool NV_pixel_data_range;
private static bool NV_point_sprite;
private static bool NV_present_video;
private static bool NV_primitive_restart;
private static bool NV_primitive_shading_rate;
private static bool NV_query_resource;
private static bool NV_query_resource_tag;
private static bool NV_register_combiners;
private static bool NV_register_combiners2;
private static bool NV_representative_fragment_test;
private static bool NV_robustness_video_memory_purge;
private static bool NV_sample_locations;
private static bool NV_sample_mask_override_coverage;
private static bool NV_scissor_exclusive;
private static bool NV_shader_atomic_counters;
private static bool NV_shader_atomic_float;
private static bool NV_shader_atomic_float64;
private static bool NV_shader_atomic_fp16_vector;
private static bool NV_shader_atomic_int64;
private static bool NV_shader_buffer_load;
private static bool NV_shader_buffer_store;
private static bool NV_shader_storage_buffer_object;
private static bool NV_shader_subgroup_partitioned;
private static bool NV_shader_texture_footprint;
private static bool NV_shader_thread_group;
private static bool NV_shader_thread_shuffle;
private static bool NV_shading_rate_image;
private static bool NV_stereo_view_rendering;
private static bool NV_tessellation_program5;
private static bool NV_texgen_emboss;
private static bool NV_texgen_reflection;
private static bool NV_texture_barrier;
private static bool NV_texture_compression_vtc;
private static bool NV_texture_env_combine4;
private static bool NV_texture_expand_normal;
private static bool NV_texture_multisample;
private static bool NV_texture_rectangle;
private static bool NV_texture_rectangle_compressed;
private static bool NV_texture_shader;
private static bool NV_texture_shader2;
private static bool NV_texture_shader3;
private static bool NV_timeline_semaphore;
private static bool NV_transform_feedback;
private static bool NV_transform_feedback2;
private static bool NV_uniform_buffer_std430_layout;
private static bool NV_uniform_buffer_unified_memory;
private static bool NV_vdpau_interop;
private static bool NV_vdpau_interop2;
private static bool NV_vertex_array_range;
private static bool NV_vertex_array_range2;
private static bool NV_vertex_attrib_integer_64bit;
private static bool NV_vertex_buffer_unified_memory;
private static bool NV_vertex_program;
private static bool NV_vertex_program1_1;
private static bool NV_vertex_program2;
private static bool NV_vertex_program2_option;
private static bool NV_vertex_program3;
private static bool NV_vertex_program4;
private static bool NV_video_capture;
private static bool NV_viewport_array2;
private static bool NV_viewport_swizzle;
private static bool NVX_blend_equation_advanced_multi_draw_buffers;
private static bool NVX_conditional_render;
private static bool NVX_gpu_memory_info;
private static bool NVX_gpu_multicast2;
private static bool NVX_linked_gpu_multicast;
private static bool NVX_progress_fence;
private static bool OES_byte_coordinates;
private static bool OES_compressed_paletted_texture;
private static bool OES_fixed_point;
private static bool OES_query_matrix;
private static bool OES_read_format;
private static bool OES_single_precision;
private static bool OML_interlace;
private static bool OML_resample;
private static bool OML_subsample;
private static bool OVR_multiview;
private static bool OVR_multiview2;
private static bool PGI_misc_hints;
private static bool PGI_vertex_hints;
private static bool REND_screen_coordinates;
private static bool S3_s3tc;
private static bool SGI_color_matrix;
private static bool SGI_color_table;
private static bool SGI_texture_color_table;
private static bool SGIS_detail_texture;
private static bool SGIS_fog_function;
private static bool SGIS_generate_mipmap;
private static bool SGIS_multisample;
private static bool SGIS_pixel_texture;
private static bool SGIS_point_line_texgen;
private static bool SGIS_point_parameters;
private static bool SGIS_sharpen_texture;
private static bool SGIS_texture_border_clamp;
private static bool SGIS_texture_color_mask;
private static bool SGIS_texture_edge_clamp;
private static bool SGIS_texture_filter4;
private static bool SGIS_texture_lod;
private static bool SGIS_texture_select;
private static bool SGIS_texture4D;
private static bool SGIX_async;
private static bool SGIX_async_histogram;
private static bool SGIX_async_pixel;
private static bool SGIX_blend_alpha_minmax;
private static bool SGIX_calligraphic_fragment;
private static bool SGIX_clipmap;
private static bool SGIX_convolution_accuracy;
private static bool SGIX_depth_pass_instrument;
private static bool SGIX_depth_texture;
private static bool SGIX_flush_raster;
private static bool SGIX_fog_offset;
private static bool SGIX_fragment_lighting;
private static bool SGIX_framezoom;
private static bool SGIX_igloo_interface;
private static bool SGIX_instruments;
private static bool SGIX_interlace;
private static bool SGIX_ir_instrument1;
private static bool SGIX_list_priority;
private static bool SGIX_pixel_texture;
private static bool SGIX_pixel_tiles;
private static bool SGIX_polynomial_ffd;
private static bool SGIX_reference_plane;
private static bool SGIX_resample;
private static bool SGIX_scalebias_hint;
private static bool SGIX_shadow;
private static bool SGIX_shadow_ambient;
private static bool SGIX_sprite;
private static bool SGIX_subsample;
private static bool SGIX_tag_sample_buffer;
private static bool SGIX_texture_add_env;
private static bool SGIX_texture_coordinate_clamp;
private static bool SGIX_texture_lod_bias;
private static bool SGIX_texture_multi_buffer;
private static bool SGIX_texture_scale_bias;
private static bool SGIX_vertex_preclip;
private static bool SGIX_ycrcb;
private static bool SGIX_ycrcb_subsample;
private static bool SGIX_ycrcba;
private static bool SUN_convolution_border_modes;
private static bool SUN_global_alpha;
private static bool SUN_mesh_array;
private static bool SUN_slice_accum;
private static bool SUN_triangle_list;
private static bool SUN_vertex;
private static bool SUNX_constant_data;
private static bool WIN_phong_shading;
private static bool WIN_specular_fog;
#endregion
}
}
+1 -7
View File
@@ -103,14 +103,8 @@ namespace StgSharp.Graphics
{
InternalIO.InternalWriteLog("Attempt to load GLFW APIs twice", LogType.Warning);
}
//↓RAM will overflow
InternalIO.InternalInitGL(4, 6);
/*
InternalIO.glfw.Init();
InternalIO.glfw.WindowHint(GLconst.GLFW_VERSION_MAJOR, majorVersion);
InternalIO.glfw.WindowHint(GLconst.GLFW_VERSION_MAJOR, majorVersion);
InternalIO.glfw.WindowHint(GLconst.GLFW_VERSION_MINOR, minorVersion);
/**/
}
@@ -125,6 +125,13 @@
<returns>The instance of created form</returns>
<exception cref="T:System.Exception"></exception>
</member>
<member name="M:StgSharp.Graphics.glManager.LoadGLfunc(System.String)">
<summary>
Get the function pointer of given OpenGL api name
</summary>
<param name="name">Name of the OpenGL api</param>
<returns>The funtion pointer of the api in form of <see cref="T:System.IntPtr"/></returns>
</member>
<member name="M:StgSharp.Graphics.Graphic.InitGL(System.Int32,System.Int32)">
<summary>
Init an instance of OpenGL program,
@@ -1 +1 @@
10071dce7326ef6d60aabd762192db8a0eb3e262
10ac7af9fa9833eca3eb77b212f61a7eda93e6bc
@@ -125,6 +125,13 @@
<returns>The instance of created form</returns>
<exception cref="T:System.Exception"></exception>
</member>
<member name="M:StgSharp.Graphics.glManager.LoadGLfunc(System.String)">
<summary>
Get the function pointer of given OpenGL api name
</summary>
<param name="name">Name of the OpenGL api</param>
<returns>The funtion pointer of the api in form of <see cref="T:System.IntPtr"/></returns>
</member>
<member name="M:StgSharp.Graphics.Graphic.InitGL(System.Int32,System.Int32)">
<summary>
Init an instance of OpenGL program,
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -190,7 +190,6 @@
<ItemGroup>
<ClCompile Include="debuger.c" />
<ClCompile Include="dllmain.c" />
<ClCompile Include="gl.c" />
<ClCompile Include="glsc2.c" />
<ClCompile Include="linear.c" />
<ClCompile Include="mat2.c" />
@@ -94,9 +94,6 @@
<ClCompile Include="StgSharpC.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="gl.c">
<Filter>源文件\glad</Filter>
</ClCompile>
<ClCompile Include="glsc2.c">
<Filter>源文件\glad</Filter>
</ClCompile>
-645
View File
@@ -7946,651 +7946,6 @@ extern "C" {
typedef struct GladGLContext {
void* userptr;
#pragma region platformSig
int VERSION_1_0;
int VERSION_1_1;
int VERSION_1_2;
int VERSION_1_3;
int VERSION_1_4;
int VERSION_1_5;
int VERSION_2_0;
int VERSION_2_1;
int VERSION_3_0;
int VERSION_3_1;
int VERSION_3_2;
int VERSION_3_3;
int VERSION_4_0;
int VERSION_4_1;
int VERSION_4_2;
int VERSION_4_3;
int VERSION_4_4;
int VERSION_4_5;
int VERSION_4_6;
int _3DFX_multisample;
int _3DFX_tbuffer;
int _3DFX_texture_compression_FXT1;
int AMD_blend_minmax_factor;
int AMD_conservative_depth;
int AMD_debug_output;
int AMD_depth_clamp_separate;
int AMD_draw_buffers_blend;
int AMD_framebuffer_multisample_advanced;
int AMD_framebuffer_sample_positions;
int AMD_gcn_shader;
int AMD_gpu_shader_half_float;
int AMD_gpu_shader_int16;
int AMD_gpu_shader_int64;
int AMD_interleaved_elements;
int AMD_multi_draw_indirect;
int AMD_name_gen_delete;
int AMD_occlusion_query_event;
int AMD_performance_monitor;
int AMD_pinned_memory;
int AMD_query_buffer_object;
int AMD_sample_positions;
int AMD_seamless_cubemap_per_texture;
int AMD_shader_atomic_counter_ops;
int AMD_shader_ballot;
int AMD_shader_explicit_vertex_parameter;
int AMD_shader_gpu_shader_half_float_fetch;
int AMD_shader_image_load_store_lod;
int AMD_shader_stencil_export;
int AMD_shader_trinary_minmax;
int AMD_sparse_texture;
int AMD_stencil_operation_extended;
int AMD_texture_gather_bias_lod;
int AMD_texture_texture4;
int AMD_transform_feedback3_lines_triangles;
int AMD_transform_feedback4;
int AMD_vertex_shader_layer;
int AMD_vertex_shader_tessellator;
int AMD_vertex_shader_viewport_index;
int APPLE_aux_depth_stencil;
int APPLE_client_storage;
int APPLE_element_array;
int APPLE_fence;
int APPLE_float_pixels;
int APPLE_flush_buffer_range;
int APPLE_object_purgeable;
int APPLE_rgb_422;
int APPLE_row_bytes;
int APPLE_specular_vector;
int APPLE_texture_range;
int APPLE_transform_hint;
int APPLE_vertex_array_object;
int APPLE_vertex_array_range;
int APPLE_vertex_program_evaluators;
int APPLE_ycbcr_422;
int ARB_ES2_compatibility;
int ARB_ES3_1_compatibility;
int ARB_ES3_2_compatibility;
int ARB_ES3_compatibility;
int ARB_arrays_of_arrays;
int ARB_base_instance;
int ARB_bindless_texture;
int ARB_blend_func_extended;
int ARB_buffer_storage;
int ARB_cl_event;
int ARB_clear_buffer_object;
int ARB_clear_texture;
int ARB_clip_control;
int ARB_color_buffer_float;
int ARB_compatibility;
int ARB_compressed_texture_pixel_storage;
int ARB_compute_shader;
int ARB_compute_variable_group_size;
int ARB_conditional_render_inverted;
int ARB_conservative_depth;
int ARB_copy_buffer;
int ARB_copy_image;
int ARB_cull_distance;
int ARB_debug_output;
int ARB_depth_buffer_float;
int ARB_depth_clamp;
int ARB_depth_texture;
int ARB_derivative_control;
int ARB_direct_state_access;
int ARB_draw_buffers;
int ARB_draw_buffers_blend;
int ARB_draw_elements_base_vertex;
int ARB_draw_indirect;
int ARB_draw_instanced;
int ARB_enhanced_layouts;
int ARB_explicit_attrib_location;
int ARB_explicit_uniform_location;
int ARB_fragment_coord_conventions;
int ARB_fragment_layer_viewport;
int ARB_fragment_program;
int ARB_fragment_program_shadow;
int ARB_fragment_shader;
int ARB_fragment_shader_interlock;
int ARB_framebuffer_no_attachments;
int ARB_framebuffer_object;
int ARB_framebuffer_sRGB;
int ARB_geometry_shader4;
int ARB_get_program_binary;
int ARB_get_texture_sub_image;
int ARB_gl_spirv;
int ARB_gpu_shader5;
int ARB_gpu_shader_fp64;
int ARB_gpu_shader_int64;
int ARB_half_float_pixel;
int ARB_half_float_vertex;
int ARB_imaging;
int ARB_indirect_parameters;
int ARB_instanced_arrays;
int ARB_internalformat_query;
int ARB_internalformat_query2;
int ARB_invalidate_subdata;
int ARB_map_buffer_alignment;
int ARB_map_buffer_range;
int ARB_matrix_palette;
int ARB_multi_bind;
int ARB_multi_draw_indirect;
int ARB_multisample;
int ARB_multitexture;
int ARB_occlusion_query;
int ARB_occlusion_query2;
int ARB_parallel_shader_compile;
int ARB_pipeline_statistics_query;
int ARB_pixel_buffer_object;
int ARB_point_parameters;
int ARB_point_sprite;
int ARB_polygon_offset_clamp;
int ARB_post_depth_coverage;
int ARB_program_interface_query;
int ARB_provoking_vertex;
int ARB_query_buffer_object;
int ARB_robust_buffer_access_behavior;
int ARB_robustness;
int ARB_robustness_isolation;
int ARB_sample_locations;
int ARB_sample_shading;
int ARB_sampler_objects;
int ARB_seamless_cube_map;
int ARB_seamless_cubemap_per_texture;
int ARB_separate_shader_objects;
int ARB_shader_atomic_counter_ops;
int ARB_shader_atomic_counters;
int ARB_shader_ballot;
int ARB_shader_bit_encoding;
int ARB_shader_clock;
int ARB_shader_draw_parameters;
int ARB_shader_group_vote;
int ARB_shader_image_load_store;
int ARB_shader_image_size;
int ARB_shader_objects;
int ARB_shader_precision;
int ARB_shader_stencil_export;
int ARB_shader_storage_buffer_object;
int ARB_shader_subroutine;
int ARB_shader_texture_image_samples;
int ARB_shader_texture_lod;
int ARB_shader_viewport_layer_array;
int ARB_shading_language_100;
int ARB_shading_language_420pack;
int ARB_shading_language_include;
int ARB_shading_language_packing;
int ARB_shadow;
int ARB_shadow_ambient;
int ARB_sparse_buffer;
int ARB_sparse_texture;
int ARB_sparse_texture2;
int ARB_sparse_texture_clamp;
int ARB_spirv_extensions;
int ARB_stencil_texturing;
int ARB_sync;
int ARB_tessellation_shader;
int ARB_texture_barrier;
int ARB_texture_border_clamp;
int ARB_texture_buffer_object;
int ARB_texture_buffer_object_rgb32;
int ARB_texture_buffer_range;
int ARB_texture_compression;
int ARB_texture_compression_bptc;
int ARB_texture_compression_rgtc;
int ARB_texture_cube_map;
int ARB_texture_cube_map_array;
int ARB_texture_env_add;
int ARB_texture_env_combine;
int ARB_texture_env_crossbar;
int ARB_texture_env_dot3;
int ARB_texture_filter_anisotropic;
int ARB_texture_filter_minmax;
int ARB_texture_float;
int ARB_texture_gather;
int ARB_texture_mirror_clamp_to_edge;
int ARB_texture_mirrored_repeat;
int ARB_texture_multisample;
int ARB_texture_non_power_of_two;
int ARB_texture_query_levels;
int ARB_texture_query_lod;
int ARB_texture_rectangle;
int ARB_texture_rg;
int ARB_texture_rgb10_a2ui;
int ARB_texture_stencil8;
int ARB_texture_storage;
int ARB_texture_storage_multisample;
int ARB_texture_swizzle;
int ARB_texture_view;
int ARB_timer_query;
int ARB_transform_feedback2;
int ARB_transform_feedback3;
int ARB_transform_feedback_instanced;
int ARB_transform_feedback_overflow_query;
int ARB_transpose_matrix;
int ARB_uniform_buffer_object;
int ARB_vertex_array_bgra;
int ARB_vertex_array_object;
int ARB_vertex_attrib_64bit;
int ARB_vertex_attrib_binding;
int ARB_vertex_blend;
int ARB_vertex_buffer_object;
int ARB_vertex_program;
int ARB_vertex_shader;
int ARB_vertex_type_10f_11f_11f_rev;
int ARB_vertex_type_2_10_10_10_rev;
int ARB_viewport_array;
int ARB_window_pos;
int ATI_draw_buffers;
int ATI_element_array;
int ATI_envmap_bumpmap;
int ATI_fragment_shader;
int ATI_map_object_buffer;
int ATI_meminfo;
int ATI_pixel_format_float;
int ATI_pn_triangles;
int ATI_separate_stencil;
int ATI_text_fragment_shader;
int ATI_texture_env_combine3;
int ATI_texture_float;
int ATI_texture_mirror_once;
int ATI_vertex_array_object;
int ATI_vertex_attrib_array_object;
int ATI_vertex_streams;
int EXT_422_pixels;
int EXT_EGL_image_storage;
int EXT_EGL_sync;
int EXT_abgr;
int EXT_bgra;
int EXT_bindable_uniform;
int EXT_blend_color;
int EXT_blend_equation_separate;
int EXT_blend_func_separate;
int EXT_blend_logic_op;
int EXT_blend_minmax;
int EXT_blend_subtract;
int EXT_clip_volume_hint;
int EXT_cmyka;
int EXT_color_subtable;
int EXT_compiled_vertex_array;
int EXT_convolution;
int EXT_coordinate_frame;
int EXT_copy_texture;
int EXT_cull_vertex;
int EXT_debug_label;
int EXT_debug_marker;
int EXT_depth_bounds_test;
int EXT_direct_state_access;
int EXT_draw_buffers2;
int EXT_draw_instanced;
int EXT_draw_range_elements;
int EXT_external_buffer;
int EXT_fog_coord;
int EXT_framebuffer_blit;
int EXT_framebuffer_blit_layers;
int EXT_framebuffer_multisample;
int EXT_framebuffer_multisample_blit_scaled;
int EXT_framebuffer_object;
int EXT_framebuffer_sRGB;
int EXT_geometry_shader4;
int EXT_gpu_program_parameters;
int EXT_gpu_shader4;
int EXT_histogram;
int EXT_index_array_formats;
int EXT_index_func;
int EXT_index_material;
int EXT_index_texture;
int EXT_light_texture;
int EXT_memory_object;
int EXT_memory_object_fd;
int EXT_memory_object_win32;
int EXT_misc_attribute;
int EXT_multi_draw_arrays;
int EXT_multisample;
int EXT_multiview_tessellation_geometry_shader;
int EXT_multiview_texture_multisample;
int EXT_multiview_timer_query;
int EXT_packed_depth_stencil;
int EXT_packed_float;
int EXT_packed_pixels;
int EXT_paletted_texture;
int EXT_pixel_buffer_object;
int EXT_pixel_transform;
int EXT_pixel_transform_color_table;
int EXT_point_parameters;
int EXT_polygon_offset;
int EXT_polygon_offset_clamp;
int EXT_post_depth_coverage;
int EXT_provoking_vertex;
int EXT_raster_multisample;
int EXT_rescale_normal;
int EXT_secondary_color;
int EXT_semaphore;
int EXT_semaphore_fd;
int EXT_semaphore_win32;
int EXT_separate_shader_objects;
int EXT_separate_specular_color;
int EXT_shader_framebuffer_fetch;
int EXT_shader_framebuffer_fetch_non_coherent;
int EXT_shader_image_load_formatted;
int EXT_shader_image_load_store;
int EXT_shader_integer_mix;
int EXT_shader_samples_identical;
int EXT_shadow_funcs;
int EXT_shared_texture_palette;
int EXT_sparse_texture2;
int EXT_stencil_clear_tag;
int EXT_stencil_two_side;
int EXT_stencil_wrap;
int EXT_subtexture;
int EXT_texture;
int EXT_texture3D;
int EXT_texture_array;
int EXT_texture_buffer_object;
int EXT_texture_compression_latc;
int EXT_texture_compression_rgtc;
int EXT_texture_compression_s3tc;
int EXT_texture_cube_map;
int EXT_texture_env_add;
int EXT_texture_env_combine;
int EXT_texture_env_dot3;
int EXT_texture_filter_anisotropic;
int EXT_texture_filter_minmax;
int EXT_texture_integer;
int EXT_texture_lod_bias;
int EXT_texture_mirror_clamp;
int EXT_texture_object;
int EXT_texture_perturb_normal;
int EXT_texture_sRGB;
int EXT_texture_sRGB_R8;
int EXT_texture_sRGB_RG8;
int EXT_texture_sRGB_decode;
int EXT_texture_shadow_lod;
int EXT_texture_shared_exponent;
int EXT_texture_snorm;
int EXT_texture_storage;
int EXT_texture_swizzle;
int EXT_timer_query;
int EXT_transform_feedback;
int EXT_vertex_array;
int EXT_vertex_array_bgra;
int EXT_vertex_attrib_64bit;
int EXT_vertex_shader;
int EXT_vertex_weighting;
int EXT_win32_keyed_mutex;
int EXT_window_rectangles;
int EXT_x11_sync_object;
int GREMEDY_frame_terminator;
int GREMEDY_string_marker;
int HP_convolution_border_modes;
int HP_image_transform;
int HP_occlusion_test;
int HP_texture_lighting;
int IBM_cull_vertex;
int IBM_multimode_draw_arrays;
int IBM_rasterpos_clip;
int IBM_static_data;
int IBM_texture_mirrored_repeat;
int IBM_vertex_array_lists;
int INGR_blend_func_separate;
int INGR_color_clamp;
int INGR_interlace_read;
int INTEL_blackhole_render;
int INTEL_conservative_rasterization;
int INTEL_fragment_shader_ordering;
int INTEL_framebuffer_CMAA;
int INTEL_map_texture;
int INTEL_parallel_arrays;
int INTEL_performance_query;
int KHR_blend_equation_advanced;
int KHR_blend_equation_advanced_coherent;
int KHR_context_flush_control;
int KHR_debug;
int KHR_no_error;
int KHR_parallel_shader_compile;
int KHR_robust_buffer_access_behavior;
int KHR_robustness;
int KHR_shader_subgroup;
int KHR_texture_compression_astc_hdr;
int KHR_texture_compression_astc_ldr;
int KHR_texture_compression_astc_sliced_3d;
int MESAX_texture_stack;
int MESA_framebuffer_flip_x;
int MESA_framebuffer_flip_y;
int MESA_framebuffer_swap_xy;
int MESA_pack_invert;
int MESA_program_binary_formats;
int MESA_resize_buffers;
int MESA_shader_integer_functions;
int MESA_tile_raster_order;
int MESA_window_pos;
int MESA_ycbcr_texture;
int NVX_blend_equation_advanced_multi_draw_buffers;
int NVX_conditional_render;
int NVX_gpu_memory_info;
int NVX_gpu_multicast2;
int NVX_linked_gpu_multicast;
int NVX_progress_fence;
int NV_alpha_to_coverage_dither_control;
int NV_bindless_multi_draw_indirect;
int NV_bindless_multi_draw_indirect_count;
int NV_bindless_texture;
int NV_blend_equation_advanced;
int NV_blend_equation_advanced_coherent;
int NV_blend_minmax_factor;
int NV_blend_square;
int NV_clip_space_w_scaling;
int NV_command_list;
int NV_compute_program5;
int NV_compute_shader_derivatives;
int NV_conditional_render;
int NV_conservative_raster;
int NV_conservative_raster_dilate;
int NV_conservative_raster_pre_snap;
int NV_conservative_raster_pre_snap_triangles;
int NV_conservative_raster_underestimation;
int NV_copy_depth_to_color;
int NV_copy_image;
int NV_deep_texture3D;
int NV_depth_buffer_float;
int NV_depth_clamp;
int NV_draw_texture;
int NV_draw_vulkan_image;
int NV_evaluators;
int NV_explicit_multisample;
int NV_fence;
int NV_fill_rectangle;
int NV_float_buffer;
int NV_fog_distance;
int NV_fragment_coverage_to_color;
int NV_fragment_program;
int NV_fragment_program2;
int NV_fragment_program4;
int NV_fragment_program_option;
int NV_fragment_shader_barycentric;
int NV_fragment_shader_interlock;
int NV_framebuffer_mixed_samples;
int NV_framebuffer_multisample_coverage;
int NV_geometry_program4;
int NV_geometry_shader4;
int NV_geometry_shader_passthrough;
int NV_gpu_multicast;
int NV_gpu_program4;
int NV_gpu_program5;
int NV_gpu_program5_mem_extended;
int NV_gpu_shader5;
int NV_half_float;
int NV_internalformat_sample_query;
int NV_light_max_exponent;
int NV_memory_attachment;
int NV_memory_object_sparse;
int NV_mesh_shader;
int NV_multisample_coverage;
int NV_multisample_filter_hint;
int NV_occlusion_query;
int NV_packed_depth_stencil;
int NV_parameter_buffer_object;
int NV_parameter_buffer_object2;
int NV_path_rendering;
int NV_path_rendering_shared_edge;
int NV_pixel_data_range;
int NV_point_sprite;
int NV_present_video;
int NV_primitive_restart;
int NV_primitive_shading_rate;
int NV_query_resource;
int NV_query_resource_tag;
int NV_register_combiners;
int NV_register_combiners2;
int NV_representative_fragment_test;
int NV_robustness_video_memory_purge;
int NV_sample_locations;
int NV_sample_mask_override_coverage;
int NV_scissor_exclusive;
int NV_shader_atomic_counters;
int NV_shader_atomic_float;
int NV_shader_atomic_float64;
int NV_shader_atomic_fp16_vector;
int NV_shader_atomic_int64;
int NV_shader_buffer_load;
int NV_shader_buffer_store;
int NV_shader_storage_buffer_object;
int NV_shader_subgroup_partitioned;
int NV_shader_texture_footprint;
int NV_shader_thread_group;
int NV_shader_thread_shuffle;
int NV_shading_rate_image;
int NV_stereo_view_rendering;
int NV_tessellation_program5;
int NV_texgen_emboss;
int NV_texgen_reflection;
int NV_texture_barrier;
int NV_texture_compression_vtc;
int NV_texture_env_combine4;
int NV_texture_expand_normal;
int NV_texture_multisample;
int NV_texture_rectangle;
int NV_texture_rectangle_compressed;
int NV_texture_shader;
int NV_texture_shader2;
int NV_texture_shader3;
int NV_timeline_semaphore;
int NV_transform_feedback;
int NV_transform_feedback2;
int NV_uniform_buffer_std430_layout;
int NV_uniform_buffer_unified_memory;
int NV_vdpau_interop;
int NV_vdpau_interop2;
int NV_vertex_array_range;
int NV_vertex_array_range2;
int NV_vertex_attrib_integer_64bit;
int NV_vertex_buffer_unified_memory;
int NV_vertex_program;
int NV_vertex_program1_1;
int NV_vertex_program2;
int NV_vertex_program2_option;
int NV_vertex_program3;
int NV_vertex_program4;
int NV_video_capture;
int NV_viewport_array2;
int NV_viewport_swizzle;
int OES_byte_coordinates;
int OES_compressed_paletted_texture;
int OES_fixed_point;
int OES_query_matrix;
int OES_read_format;
int OES_single_precision;
int OML_interlace;
int OML_resample;
int OML_subsample;
int OVR_multiview;
int OVR_multiview2;
int PGI_misc_hints;
int PGI_vertex_hints;
int REND_screen_coordinates;
int S3_s3tc;
int SGIS_detail_texture;
int SGIS_fog_function;
int SGIS_generate_mipmap;
int SGIS_multisample;
int SGIS_pixel_texture;
int SGIS_point_line_texgen;
int SGIS_point_parameters;
int SGIS_sharpen_texture;
int SGIS_texture4D;
int SGIS_texture_border_clamp;
int SGIS_texture_color_mask;
int SGIS_texture_edge_clamp;
int SGIS_texture_filter4;
int SGIS_texture_lod;
int SGIS_texture_select;
int SGIX_async;
int SGIX_async_histogram;
int SGIX_async_pixel;
int SGIX_blend_alpha_minmax;
int SGIX_calligraphic_fragment;
int SGIX_clipmap;
int SGIX_convolution_accuracy;
int SGIX_depth_pass_instrument;
int SGIX_depth_texture;
int SGIX_flush_raster;
int SGIX_fog_offset;
int SGIX_fragment_lighting;
int SGIX_framezoom;
int SGIX_igloo_interface;
int SGIX_instruments;
int SGIX_interlace;
int SGIX_ir_instrument1;
int SGIX_list_priority;
int SGIX_pixel_texture;
int SGIX_pixel_tiles;
int SGIX_polynomial_ffd;
int SGIX_reference_plane;
int SGIX_resample;
int SGIX_scalebias_hint;
int SGIX_shadow;
int SGIX_shadow_ambient;
int SGIX_sprite;
int SGIX_subsample;
int SGIX_tag_sample_buffer;
int SGIX_texture_add_env;
int SGIX_texture_coordinate_clamp;
int SGIX_texture_lod_bias;
int SGIX_texture_multi_buffer;
int SGIX_texture_scale_bias;
int SGIX_vertex_preclip;
int SGIX_ycrcb;
int SGIX_ycrcb_subsample;
int SGIX_ycrcba;
int SGI_color_matrix;
int SGI_color_table;
int SGI_texture_color_table;
int SUNX_constant_data;
int SUN_convolution_border_modes;
int SUN_global_alpha;
int SUN_mesh_array;
int SUN_slice_accum;
int SUN_triangle_list;
int SUN_vertex;
int WIN_phong_shading;
int WIN_specular_fog;
#pragma endregion
#pragma region platformAPI
@@ -2,12 +2,6 @@ d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharp
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\vc143.idb
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\wgl.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\wgl.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\linear.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\linear.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\glsc2.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\glsc2.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\gl.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\gl.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\mat4.obj
@@ -16,53 +10,24 @@ d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharp
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\mat3.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\mat2.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\mat2.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\linear.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\linear.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\glsc2.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\glsc2.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\gl.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\dllmain.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\dllmain.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\debuger.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\debuger.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\ss_io.cod
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpgraphic.lib
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpgraphic.exp
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc.lib
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc.exp
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc.dll
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.ilk
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc.pdb
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\context.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\egl_context.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\init.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\input.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\monitor.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\null_init.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\null_joystick.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\null_monitor.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\null_window.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\osmesa_context.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\platform.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\ss_io.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpgraphic.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\vulkan.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\wgl_context.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_init.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_joystick.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_module.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_monitor.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_thread.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_time.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\win32_window.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\window.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpgraphic.ilk
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\gl.obj
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.command.1.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.items.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.1.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.2.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.3.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.4.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.5.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.6.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.7.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.8.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.read.9.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\cl.write.1.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\link.command.1.tlog
d:\nitloadindustry\研究项目\1-flagship\th2020\projectfile\源代码\stgsharpc\x64\debug\stgsharpc.tlog\link.read.1.tlog
+16 -16
View File
@@ -844,8 +844,8 @@ $LN5:
00 mov ecx, DWORD PTR shaderProgram$[rbp]
0004d 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
00054 ff 90 80 2c 00
00 call QWORD PTR [rax+11392]
00054 ff 90 88 22 00
00 call QWORD PTR [rax+8840]
; 66 :
; 67 : int success;
@@ -857,8 +857,8 @@ $LN5:
00 mov ecx, DWORD PTR shaderProgram$[rbp]
00069 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
00070 ff 90 48 24 00
00 call QWORD PTR [rax+9288]
00070 ff 90 50 1a 00
00 call QWORD PTR [rax+6736]
; 69 : if (!success)
@@ -876,8 +876,8 @@ $LN5:
00 mov ecx, DWORD PTR shaderProgram$[rbp]
00091 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
00098 ff 90 98 23 00
00 call QWORD PTR [rax+9112]
00098 ff 90 a0 19 00
00 call QWORD PTR [rax+6560]
; 72 : return 0;
@@ -969,8 +969,8 @@ $LN7:
00 mov ecx, DWORD PTR shadertype$[rbp]
00061 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
00068 ff 90 f0 13 00
00 call QWORD PTR [rax+5104]
00068 ff 90 f8 09 00
00 call QWORD PTR [rax+2552]
0006e 89 45 04 mov DWORD PTR shader$4[rbp], eax
; 43 : currentContext->ShaderSource(shader, 1, &shaderCode, NULL);
@@ -982,16 +982,16 @@ $LN7:
00080 8b 4d 04 mov ecx, DWORD PTR shader$4[rbp]
00083 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
0008a ff 90 50 41 00
00 call QWORD PTR [rax+16720]
0008a ff 90 58 37 00
00 call QWORD PTR [rax+14168]
; 44 : currentContext->CompileShader(shader);
00090 8b 4d 04 mov ecx, DWORD PTR shader$4[rbp]
00093 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
0009a ff 90 18 11 00
00 call QWORD PTR [rax+4376]
0009a ff 90 20 07 00
00 call QWORD PTR [rax+1824]
; 45 : int success;
; 46 : currentContext->GetShaderiv(shader, GL_COMPILE_STATUS, &success);
@@ -1001,8 +1001,8 @@ $LN7:
000a9 8b 4d 04 mov ecx, DWORD PTR shader$4[rbp]
000ac 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
000b3 ff 90 40 25 00
00 call QWORD PTR [rax+9536]
000b3 ff 90 48 1b 00
00 call QWORD PTR [rax+6984]
; 47 : if (!success)
@@ -1019,8 +1019,8 @@ $LN7:
000ce 8b 4d 04 mov ecx, DWORD PTR shader$4[rbp]
000d1 48 8b 05 00 00
00 00 mov rax, QWORD PTR currentContext
000d8 ff 90 20 25 00
00 call QWORD PTR [rax+9504]
000d8 ff 90 28 1b 00
00 call QWORD PTR [rax+6952]
; 50 : return 0;
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,5 @@
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\debuger.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\debuger.obj
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\dllmain.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\dllmain.obj
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\gl.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\gl.obj
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\glsc2.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\glsc2.obj
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\linear.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\linear.obj
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\mat2.c;D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\x64\Debug\mat2.obj
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
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.
Binary file not shown.
+10 -10
View File
@@ -29,7 +29,7 @@ namespace StgSharp
f.SetSizeLimit(800, 600, 800, 600);
GL.SetFrameBufferSizeCallback(f, FormSizeCallback);
f.LoadGlapi();
glManager.LoadGLapi(f, glManager.LoadGLfunc);
Shader shader = new Shader();
shader.CompileVertexShader(
@@ -67,7 +67,7 @@ namespace StgSharp
VertexBuffer vbo = new VertexBuffer(1);
ElementBuffer ebo = new ElementBuffer(1);
GL.gl->BindVertexArray(vao[0]);
GL.gl.BindVertexArray(vao[0]);
@@ -76,13 +76,13 @@ namespace StgSharp
GL.gl->VertexAttribPointer(0, 3, GLconst.FLOAT, false, 4 * sizeof(float), (void*)0);
GL.gl->EnableVertexAttribArray(0);
GL.gl.VertexAttribPointer(0, 3, GLconst.FLOAT, false, 4 * sizeof(float), (void*)0);
GL.gl.EnableVertexAttribArray(0);
/**/
GL.gl->BindBuffer(GLconst.ARRAY_BUFFER, 0);
GL.gl->BindVertexArray(0);
GL.gl.BindBuffer(GLconst.ARRAY_BUFFER, 0);
GL.gl.BindVertexArray(0);
/**/
@@ -92,15 +92,15 @@ namespace StgSharp
ProcessInput(f.windowID);
GL.ClearColor(0.2f, 0.3f, 0.3f, 1.0f);
GL.gl->Clear(GLconst.COLOR_BUFFER_BIT);
GL.gl.Clear(GLconst.COLOR_BUFFER_BIT);
shader.Use();
GL.gl->BindVertexArray(vao._bufferID[0]);
GL.gl.BindVertexArray(vao._bufferID[0]);
GL.DrawElements(GepmetryType.TRIANGLES, 9, typeof(uint), IntPtr.Zero);
GL.gl->BindVertexArray(0);
GL.gl.BindVertexArray(0);
InternalIO.glfw.SwapBuffers(f.windowID);
InternalIO.glfw.PollEvents();
@@ -138,7 +138,7 @@ namespace StgSharp
public static unsafe void FormSizeCallback(IntPtr window, int width, int height)
{
GL.gl->Viewport(0, 0, width, height);
GL.gl.Viewport(0, 0, width, height);
}
public static unsafe void ProcessInput(IntPtr windowPtr)
@@ -1 +1 @@
d15de974a6d659169b538adc8b1d85f47d9bb9d2
b88d3dd655e6b46a04f51a138750d3fbfc55ef8f
@@ -125,6 +125,13 @@
<returns>The instance of created form</returns>
<exception cref="T:System.Exception"></exception>
</member>
<member name="M:StgSharp.Graphics.glManager.LoadGLfunc(System.String)">
<summary>
Get the function pointer of given OpenGL api name
</summary>
<param name="name">Name of the OpenGL api</param>
<returns>The funtion pointer of the api in form of <see cref="T:System.IntPtr"/></returns>
</member>
<member name="M:StgSharp.Graphics.Graphic.InitGL(System.Int32,System.Int32)">
<summary>
Init an instance of OpenGL program,