daily update on 20230511 by nitlod youmu
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
|
||||
public delegate int InitWindow(int width, int height);
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GraphicIO
|
||||
{
|
||||
public InitWindow initWindowPtr = default;
|
||||
|
||||
|
||||
|
||||
public GraphicIO()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,494 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
//rename types in style of GLFW
|
||||
|
||||
using GLFWbool = Boolean;
|
||||
using _glfw = _GLFWlibrary;
|
||||
|
||||
public unsafe static partial class GLFW
|
||||
{
|
||||
internal static _glfw glfw = new _glfw();
|
||||
|
||||
//these are consts defined in GLFW3.h
|
||||
|
||||
public const int GLFW_VERSION_MAJOR = 3;
|
||||
public const int GLFW_VERSION_MINOR = 4;
|
||||
public const int GLFW_VERSION_REVISION = 0;
|
||||
public const int GLFW_TRUE = 1;
|
||||
public const int GLFW_FALSE = 0;
|
||||
public const int GLFW_RELEASE = 0;
|
||||
public const int GLFW_PRESS = 1;
|
||||
public const int GLFW_REPEAT = 2;
|
||||
public const int GLFW_HAT_CENTERED = 0;
|
||||
public const int GLFW_HAT_UP = 1;
|
||||
public const int GLFW_HAT_RIGHT = 2;
|
||||
public const int GLFW_HAT_DOWN = 4;
|
||||
public const int GLFW_HAT_LEFT = 8;
|
||||
public const int GLFW_HAT_RIGHT_UP = (GLFW_HAT_RIGHT | GLFW_HAT_UP);
|
||||
public const int GLFW_HAT_RIGHT_DOWN = (GLFW_HAT_RIGHT | GLFW_HAT_DOWN);
|
||||
public const int GLFW_HAT_LEFT_UP = (GLFW_HAT_LEFT | GLFW_HAT_UP);
|
||||
public const int GLFW_HAT_LEFT_DOWN = (GLFW_HAT_LEFT | GLFW_HAT_DOWN);
|
||||
public const int GLFW_KEY_UNKNOWN = -1;
|
||||
public const int GLFW_KEY_SPACE = 32;
|
||||
public const int GLFW_KEY_APOSTROPHE = 39/*'*/;
|
||||
public const int GLFW_KEY_COMMA = 44/*,*/;
|
||||
public const int GLFW_KEY_MINUS = 45/*-*/;
|
||||
public const int GLFW_KEY_PERIOD = 46/*.*/;
|
||||
public const int GLFW_KEY_SLASH = 47/*/*/;
|
||||
public const int GLFW_KEY_0 = 48;
|
||||
public const int GLFW_KEY_1 = 49;
|
||||
public const int GLFW_KEY_2 = 50;
|
||||
public const int GLFW_KEY_3 = 51;
|
||||
public const int GLFW_KEY_4 = 52;
|
||||
public const int GLFW_KEY_5 = 53;
|
||||
public const int GLFW_KEY_6 = 54;
|
||||
public const int GLFW_KEY_7 = 55;
|
||||
public const int GLFW_KEY_8 = 56;
|
||||
public const int GLFW_KEY_9 = 57;
|
||||
public const int GLFW_KEY_SEMICOLON = 59/*;*/;
|
||||
public const int GLFW_KEY_EQUAL = 61/*=*/;
|
||||
public const int GLFW_KEY_A = 65;
|
||||
public const int GLFW_KEY_B = 66;
|
||||
public const int GLFW_KEY_C = 67;
|
||||
public const int GLFW_KEY_D = 68;
|
||||
public const int GLFW_KEY_E = 69;
|
||||
public const int GLFW_KEY_F = 70;
|
||||
public const int GLFW_KEY_G = 71;
|
||||
public const int GLFW_KEY_H = 72;
|
||||
public const int GLFW_KEY_I = 73;
|
||||
public const int GLFW_KEY_J = 74;
|
||||
public const int GLFW_KEY_K = 75;
|
||||
public const int GLFW_KEY_L = 76;
|
||||
public const int GLFW_KEY_M = 77;
|
||||
public const int GLFW_KEY_N = 78;
|
||||
public const int GLFW_KEY_O = 79;
|
||||
public const int GLFW_KEY_P = 80;
|
||||
public const int GLFW_KEY_Q = 81;
|
||||
public const int GLFW_KEY_R = 82;
|
||||
public const int GLFW_KEY_S = 83;
|
||||
public const int GLFW_KEY_T = 84;
|
||||
public const int GLFW_KEY_U = 85;
|
||||
public const int GLFW_KEY_V = 86;
|
||||
public const int GLFW_KEY_W = 87;
|
||||
public const int GLFW_KEY_X = 88;
|
||||
public const int GLFW_KEY_Y = 89;
|
||||
public const int GLFW_KEY_Z = 90;
|
||||
public const int GLFW_KEY_LEFT_BRACKET = 91/*[*/;
|
||||
public const int GLFW_KEY_BACKSLASH = 92/*\*/;
|
||||
public const int GLFW_KEY_RIGHT_BRACKET = 93/*]*/;
|
||||
public const int GLFW_KEY_GRAVE_ACCENT = 96/*`*/;
|
||||
public const int GLFW_KEY_WORLD_1 = 161/*non-US#1*/;
|
||||
public const int GLFW_KEY_WORLD_2 = 162/*non-US#2*/;
|
||||
public const int GLFW_KEY_ESCAPE = 256;
|
||||
public const int GLFW_KEY_ENTER = 257;
|
||||
public const int GLFW_KEY_TAB = 258;
|
||||
public const int GLFW_KEY_BACKSPACE = 259;
|
||||
public const int GLFW_KEY_INSERT = 260;
|
||||
public const int GLFW_KEY_DELETE = 261;
|
||||
public const int GLFW_KEY_RIGHT = 262;
|
||||
public const int GLFW_KEY_LEFT = 263;
|
||||
public const int GLFW_KEY_DOWN = 264;
|
||||
public const int GLFW_KEY_UP = 265;
|
||||
public const int GLFW_KEY_PAGE_UP = 266;
|
||||
public const int GLFW_KEY_PAGE_DOWN = 267;
|
||||
public const int GLFW_KEY_HOME = 268;
|
||||
public const int GLFW_KEY_END = 269;
|
||||
public const int GLFW_KEY_CAPS_LOCK = 280;
|
||||
public const int GLFW_KEY_SCROLL_LOCK = 281;
|
||||
public const int GLFW_KEY_NUM_LOCK = 282;
|
||||
public const int GLFW_KEY_PRINT_SCREEN = 283;
|
||||
public const int GLFW_KEY_PAUSE = 284;
|
||||
public const int GLFW_KEY_F1 = 290;
|
||||
public const int GLFW_KEY_F2 = 291;
|
||||
public const int GLFW_KEY_F3 = 292;
|
||||
public const int GLFW_KEY_F4 = 293;
|
||||
public const int GLFW_KEY_F5 = 294;
|
||||
public const int GLFW_KEY_F6 = 295;
|
||||
public const int GLFW_KEY_F7 = 296;
|
||||
public const int GLFW_KEY_F8 = 297;
|
||||
public const int GLFW_KEY_F9 = 298;
|
||||
public const int GLFW_KEY_F10 = 299;
|
||||
public const int GLFW_KEY_F11 = 300;
|
||||
public const int GLFW_KEY_F12 = 301;
|
||||
public const int GLFW_KEY_F13 = 302;
|
||||
public const int GLFW_KEY_F14 = 303;
|
||||
public const int GLFW_KEY_F15 = 304;
|
||||
public const int GLFW_KEY_F16 = 305;
|
||||
public const int GLFW_KEY_F17 = 306;
|
||||
public const int GLFW_KEY_F18 = 307;
|
||||
public const int GLFW_KEY_F19 = 308;
|
||||
public const int GLFW_KEY_F20 = 309;
|
||||
public const int GLFW_KEY_F21 = 310;
|
||||
public const int GLFW_KEY_F22 = 311;
|
||||
public const int GLFW_KEY_F23 = 312;
|
||||
public const int GLFW_KEY_F24 = 313;
|
||||
public const int GLFW_KEY_F25 = 314;
|
||||
public const int GLFW_KEY_KP_0 = 320;
|
||||
public const int GLFW_KEY_KP_1 = 321;
|
||||
public const int GLFW_KEY_KP_2 = 322;
|
||||
public const int GLFW_KEY_KP_3 = 323;
|
||||
public const int GLFW_KEY_KP_4 = 324;
|
||||
public const int GLFW_KEY_KP_5 = 325;
|
||||
public const int GLFW_KEY_KP_6 = 326;
|
||||
public const int GLFW_KEY_KP_7 = 327;
|
||||
public const int GLFW_KEY_KP_8 = 328;
|
||||
public const int GLFW_KEY_KP_9 = 329;
|
||||
public const int GLFW_KEY_KP_DECIMAL = 330;
|
||||
public const int GLFW_KEY_KP_DIVIDE = 331;
|
||||
public const int GLFW_KEY_KP_MULTIPLY = 332;
|
||||
public const int GLFW_KEY_KP_SUBTRACT = 333;
|
||||
public const int GLFW_KEY_KP_ADD = 334;
|
||||
public const int GLFW_KEY_KP_ENTER = 335;
|
||||
public const int GLFW_KEY_KP_EQUAL = 336;
|
||||
public const int GLFW_KEY_LEFT_SHIFT = 340;
|
||||
public const int GLFW_KEY_LEFT_CONTROL = 341;
|
||||
public const int GLFW_KEY_LEFT_ALT = 342;
|
||||
public const int GLFW_KEY_LEFT_SUPER = 343;
|
||||
public const int GLFW_KEY_RIGHT_SHIFT = 344;
|
||||
public const int GLFW_KEY_RIGHT_CONTROL = 345;
|
||||
public const int GLFW_KEY_RIGHT_ALT = 346;
|
||||
public const int GLFW_KEY_RIGHT_SUPER = 347;
|
||||
public const int GLFW_KEY_MENU = 348;
|
||||
public const int GLFW_KEY_LAST = GLFW_KEY_MENU;
|
||||
public const int GLFW_MOD_SHIFT = 0x0001;
|
||||
public const int GLFW_MOD_CONTROL = 0x0002;
|
||||
public const int GLFW_MOD_ALT = 0x0004;
|
||||
public const int GLFW_MOD_SUPER = 0x0008;
|
||||
public const int GLFW_MOD_CAPS_LOCK = 0x0010;
|
||||
public const int GLFW_MOD_NUM_LOCK = 0x0020;
|
||||
public const int GLFW_MOUSE_BUTTON_1 = 0;
|
||||
public const int GLFW_MOUSE_BUTTON_2 = 1;
|
||||
public const int GLFW_MOUSE_BUTTON_3 = 2;
|
||||
public const int GLFW_MOUSE_BUTTON_4 = 3;
|
||||
public const int GLFW_MOUSE_BUTTON_5 = 4;
|
||||
public const int GLFW_MOUSE_BUTTON_6 = 5;
|
||||
public const int GLFW_MOUSE_BUTTON_7 = 6;
|
||||
public const int GLFW_MOUSE_BUTTON_8 = 7;
|
||||
public const int GLFW_MOUSE_BUTTON_LAST = GLFW_MOUSE_BUTTON_8;
|
||||
public const int GLFW_MOUSE_BUTTON_LEFT = GLFW_MOUSE_BUTTON_1;
|
||||
public const int GLFW_MOUSE_BUTTON_RIGHT = GLFW_MOUSE_BUTTON_2;
|
||||
public const int GLFW_MOUSE_BUTTON_MIDDLE = GLFW_MOUSE_BUTTON_3;
|
||||
public const int GLFW_JOYSTICK_1 = 0;
|
||||
public const int GLFW_JOYSTICK_2 = 1;
|
||||
public const int GLFW_JOYSTICK_3 = 2;
|
||||
public const int GLFW_JOYSTICK_4 = 3;
|
||||
public const int GLFW_JOYSTICK_5 = 4;
|
||||
public const int GLFW_JOYSTICK_6 = 5;
|
||||
public const int GLFW_JOYSTICK_7 = 6;
|
||||
public const int GLFW_JOYSTICK_8 = 7;
|
||||
public const int GLFW_JOYSTICK_9 = 8;
|
||||
public const int GLFW_JOYSTICK_10 = 9;
|
||||
public const int GLFW_JOYSTICK_11 = 10;
|
||||
public const int GLFW_JOYSTICK_12 = 11;
|
||||
public const int GLFW_JOYSTICK_13 = 12;
|
||||
public const int GLFW_JOYSTICK_14 = 13;
|
||||
public const int GLFW_JOYSTICK_15 = 14;
|
||||
public const int GLFW_JOYSTICK_16 = 15;
|
||||
public const int GLFW_JOYSTICK_LAST = GLFW_JOYSTICK_16;
|
||||
public const int GLFW_GAMEPAD_BUTTON_A = 0;
|
||||
public const int GLFW_GAMEPAD_BUTTON_B = 1;
|
||||
public const int GLFW_GAMEPAD_BUTTON_X = 2;
|
||||
public const int GLFW_GAMEPAD_BUTTON_Y = 3;
|
||||
public const int GLFW_GAMEPAD_BUTTON_LEFT_BUMPER = 4;
|
||||
public const int GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER = 5;
|
||||
public const int GLFW_GAMEPAD_BUTTON_BACK = 6;
|
||||
public const int GLFW_GAMEPAD_BUTTON_START = 7;
|
||||
public const int GLFW_GAMEPAD_BUTTON_GUIDE = 8;
|
||||
public const int GLFW_GAMEPAD_BUTTON_LEFT_THUMB = 9;
|
||||
public const int GLFW_GAMEPAD_BUTTON_RIGHT_THUMB = 10;
|
||||
public const int GLFW_GAMEPAD_BUTTON_DPAD_UP = 11;
|
||||
public const int GLFW_GAMEPAD_BUTTON_DPAD_RIGHT = 12;
|
||||
public const int GLFW_GAMEPAD_BUTTON_DPAD_DOWN = 13;
|
||||
public const int GLFW_GAMEPAD_BUTTON_DPAD_LEFT = 14;
|
||||
public const int GLFW_GAMEPAD_BUTTON_LAST = GLFW_GAMEPAD_BUTTON_DPAD_LEFT;
|
||||
public const int GLFW_GAMEPAD_BUTTON_CROSS = GLFW_GAMEPAD_BUTTON_A;
|
||||
public const int GLFW_GAMEPAD_BUTTON_CIRCLE = GLFW_GAMEPAD_BUTTON_B;
|
||||
public const int GLFW_GAMEPAD_BUTTON_SQUARE = GLFW_GAMEPAD_BUTTON_X;
|
||||
public const int GLFW_GAMEPAD_BUTTON_TRIANGLE = GLFW_GAMEPAD_BUTTON_Y;
|
||||
public const int GLFW_GAMEPAD_AXIS_LEFT_X = 0;
|
||||
public const int GLFW_GAMEPAD_AXIS_LEFT_Y = 1;
|
||||
public const int GLFW_GAMEPAD_AXIS_RIGHT_X = 2;
|
||||
public const int GLFW_GAMEPAD_AXIS_RIGHT_Y = 3;
|
||||
public const int GLFW_GAMEPAD_AXIS_LEFT_TRIGGER = 4;
|
||||
public const int GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER = 5;
|
||||
public const int GLFW_GAMEPAD_AXIS_LAST = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER;
|
||||
public const int GLFW_NO_ERROR = 0;
|
||||
public const int GLFW_NOT_INITIALIZED = 0x00010001;
|
||||
public const int GLFW_NO_CURRENT_CONTEXT = 0x00010002;
|
||||
public const int GLFW_INVALID_ENUM = 0x00010003;
|
||||
public const int GLFW_INVALID_VALUE = 0x00010004;
|
||||
public const int GLFW_OUT_OF_MEMORY = 0x00010005;
|
||||
public const int GLFW_API_UNAVAILABLE = 0x00010006;
|
||||
public const int GLFW_VERSION_UNAVAILABLE = 0x00010007;
|
||||
public const int GLFW_PLATFORM_ERROR = 0x00010008;
|
||||
public const int GLFW_FORMAT_UNAVAILABLE = 0x00010009;
|
||||
public const int GLFW_NO_WINDOW_CONTEXT = 0x0001000A;
|
||||
public const int GLFW_CURSOR_UNAVAILABLE = 0x0001000B;
|
||||
public const int GLFW_FEATURE_UNAVAILABLE = 0x0001000C;
|
||||
public const int GLFW_FEATURE_UNIMPLEMENTED = 0x0001000D;
|
||||
public const int GLFW_PLATFORM_UNAVAILABLE = 0x0001000E;
|
||||
public const int GLFW_FOCUSED = 0x00020001;
|
||||
public const int GLFW_ICONIFIED = 0x00020002;
|
||||
public const int GLFW_RESIZABLE = 0x00020003;
|
||||
public const int GLFW_VISIBLE = 0x00020004;
|
||||
public const int GLFW_DECORATED = 0x00020005;
|
||||
public const int GLFW_AUTO_ICONIFY = 0x00020006;
|
||||
public const int GLFW_FLOATING = 0x00020007;
|
||||
public const int GLFW_MAXIMIZED = 0x00020008;
|
||||
public const int GLFW_CENTER_CURSOR = 0x00020009;
|
||||
public const int GLFW_TRANSPARENT_FRAMEBUFFER = 0x0002000A;
|
||||
public const int GLFW_HOVERED = 0x0002000B;
|
||||
public const int GLFW_FOCUS_ON_SHOW = 0x0002000C;
|
||||
public const int GLFW_MOUSE_PASSTHROUGH = 0x0002000D;
|
||||
public const int GLFW_POSITION_X = 0x0002000E;
|
||||
public const int GLFW_POSITION_Y = 0x0002000F;
|
||||
public const int GLFW_RED_BITS = 0x00021001;
|
||||
public const int GLFW_GREEN_BITS = 0x00021002;
|
||||
public const int GLFW_BLUE_BITS = 0x00021003;
|
||||
public const int GLFW_ALPHA_BITS = 0x00021004;
|
||||
public const int GLFW_DEPTH_BITS = 0x00021005;
|
||||
public const int GLFW_STENCIL_BITS = 0x00021006;
|
||||
public const int GLFW_ACCUM_RED_BITS = 0x00021007;
|
||||
public const int GLFW_ACCUM_GREEN_BITS = 0x00021008;
|
||||
public const int GLFW_ACCUM_BLUE_BITS = 0x00021009;
|
||||
public const int GLFW_ACCUM_ALPHA_BITS = 0x0002100A;
|
||||
public const int GLFW_AUX_BUFFERS = 0x0002100B;
|
||||
public const int GLFW_STEREO = 0x0002100C;
|
||||
public const int GLFW_SAMPLES = 0x0002100D;
|
||||
public const int GLFW_SRGB_CAPABLE = 0x0002100E;
|
||||
public const int GLFW_REFRESH_RATE = 0x0002100F;
|
||||
public const int GLFW_DOUBLEBUFFER = 0x00021010;
|
||||
public const int GLFW_CLIENT_API = 0x00022001;
|
||||
public const int GLFW_CONTEXT_VERSION_MAJOR = 0x00022002;
|
||||
public const int GLFW_CONTEXT_VERSION_MINOR = 0x00022003;
|
||||
public const int GLFW_CONTEXT_REVISION = 0x00022004;
|
||||
public const int GLFW_CONTEXT_ROBUSTNESS = 0x00022005;
|
||||
public const int GLFW_OPENGL_FORWARD_COMPAT = 0x00022006;
|
||||
public const int GLFW_CONTEXT_DEBUG = 0x00022007;
|
||||
public const int GLFW_OPENGL_DEBUG_CONTEXT = GLFW_CONTEXT_DEBUG;
|
||||
public const int GLFW_OPENGL_PROFILE = 0x00022008;
|
||||
public const int GLFW_CONTEXT_RELEASE_BEHAVIOR = 0x00022009;
|
||||
public const int GLFW_CONTEXT_NO_ERROR = 0x0002200A;
|
||||
public const int GLFW_CONTEXT_CREATION_API = 0x0002200B;
|
||||
public const int GLFW_SCALE_TO_MONITOR = 0x0002200C;
|
||||
public const int GLFW_COCOA_RETINA_FRAMEBUFFER = 0x00023001;
|
||||
public const int GLFW_COCOA_FRAME_NAME = 0x00023002;
|
||||
public const int GLFW_COCOA_GRAPHICS_SWITCHING = 0x00023003;
|
||||
public const int GLFW_X11_CLASS_NAME = 0x00024001;
|
||||
public const int GLFW_X11_INSTANCE_NAME = 0x00024002;
|
||||
public const int GLFW_WIN32_KEYBOARD_MENU = 0x00025001;
|
||||
public const int GLFW_WAYLAND_APP_ID = 0x00026001;
|
||||
public const int GLFW_NO_API = 0;
|
||||
public const int GLFW_OPENGL_API = 0x00030001;
|
||||
public const int GLFW_OPENGL_ES_API = 0x00030002;
|
||||
public const int GLFW_NO_ROBUSTNESS = 0;
|
||||
public const int GLFW_NO_RESET_NOTIFICATION = 0x00031001;
|
||||
public const int GLFW_LOSE_CONTEXT_ON_RESET = 0x00031002;
|
||||
public const int GLFW_OPENGL_ANY_PROFILE = 0;
|
||||
public const int GLFW_OPENGL_CORE_PROFILE = 0x00032001;
|
||||
public const int GLFW_OPENGL_COMPAT_PROFILE = 0x00032002;
|
||||
public const int GLFW_CURSOR = 0x00033001;
|
||||
public const int GLFW_STICKY_KEYS = 0x00033002;
|
||||
public const int GLFW_STICKY_MOUSE_BUTTONS = 0x00033003;
|
||||
public const int GLFW_LOCK_KEY_MODS = 0x00033004;
|
||||
public const int GLFW_RAW_MOUSE_MOTION = 0x00033005;
|
||||
public const int GLFW_CURSOR_NORMAL = 0x00034001;
|
||||
public const int GLFW_CURSOR_HIDDEN = 0x00034002;
|
||||
public const int GLFW_CURSOR_DISABLED = 0x00034003;
|
||||
public const int GLFW_CURSOR_CAPTURED = 0x00034004;
|
||||
public const int GLFW_ANY_RELEASE_BEHAVIOR = 0;
|
||||
public const int GLFW_RELEASE_BEHAVIOR_FLUSH = 0x00035001;
|
||||
public const int GLFW_RELEASE_BEHAVIOR_NONE = 0x00035002;
|
||||
public const int GLFW_NATIVE_CONTEXT_API = 0x00036001;
|
||||
public const int GLFW_EGL_CONTEXT_API = 0x00036002;
|
||||
public const int GLFW_OSMESA_CONTEXT_API = 0x00036003;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_NONE = 0x00037001;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_OPENGL = 0x00037002;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_OPENGLES = 0x00037003;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_D3D9 = 0x00037004;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_D3D11 = 0x00037005;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_VULKAN = 0x00037007;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE_METAL = 0x00037008;
|
||||
public const int GLFW_WAYLAND_PREFER_LIBDECOR = 0x00038001;
|
||||
public const int GLFW_WAYLAND_DISABLE_LIBDECOR = 0x00038002;
|
||||
public const uint GLFW_ANY_POSITION = 0x80000000;
|
||||
public const int GLFW_ARROW_CURSOR = 0x00036001;
|
||||
public const int GLFW_IBEAM_CURSOR = 0x00036002;
|
||||
public const int GLFW_CROSSHAIR_CURSOR = 0x00036003;
|
||||
public const int GLFW_POINTING_HAND_CURSOR = 0x00036004;
|
||||
public const int GLFW_RESIZE_EW_CURSOR = 0x00036005;
|
||||
public const int GLFW_RESIZE_NS_CURSOR = 0x00036006;
|
||||
public const int GLFW_RESIZE_NWSE_CURSOR = 0x00036007;
|
||||
public const int GLFW_RESIZE_NESW_CURSOR = 0x00036008;
|
||||
public const int GLFW_RESIZE_ALL_CURSOR = 0x00036009;
|
||||
public const int GLFW_NOT_ALLOWED_CURSOR = 0x0003600A;
|
||||
public const int GLFW_HRESIZE_CURSOR = GLFW_RESIZE_EW_CURSOR;
|
||||
public const int GLFW_VRESIZE_CURSOR = GLFW_RESIZE_NS_CURSOR;
|
||||
public const int GLFW_HAND_CURSOR = GLFW_POINTING_HAND_CURSOR;
|
||||
public const int GLFW_CONNECTED = 0x00040001;
|
||||
public const int GLFW_DISCONNECTED = 0x00040002;
|
||||
public const int GLFW_JOYSTICK_HAT_BUTTONS = 0x00050001;
|
||||
public const int GLFW_ANGLE_PLATFORM_TYPE = 0x00050002;
|
||||
public const int GLFW_PLATFORM = 0x00050003;
|
||||
public const int GLFW_COCOA_CHDIR_RESOURCES = 0x00051001;
|
||||
public const int GLFW_COCOA_MENUBAR = 0x00051002;
|
||||
public const int GLFW_X11_XCB_VULKAN_SURFACE = 0x00052001;
|
||||
public const int GLFW_WAYLAND_LIBDECOR = 0x00053001;
|
||||
public const int GLFW_ANY_PLATFORM = 0x00060000;
|
||||
public const int GLFW_PLATFORM_WIN32 = 0x00060001;
|
||||
public const int GLFW_PLATFORM_COCOA = 0x00060002;
|
||||
public const int GLFW_PLATFORM_WAYLAND = 0x00060003;
|
||||
public const int GLFW_PLATFORM_X11 = 0x00060004;
|
||||
public const int GLFW_PLATFORM_NULL = 0x00060005;
|
||||
public const int GLFW_DONT_CARE = -1;
|
||||
|
||||
|
||||
|
||||
//consts in internal.h
|
||||
|
||||
internal const uint _GLFW_INSERT_FIRST = 0;
|
||||
internal const uint _GLFW_INSERT_LAST = 1;
|
||||
internal const uint _GLFW_POLL_PRESENCE = 0;
|
||||
internal const uint _GLFW_POLL_AXES = 1;
|
||||
internal const uint _GLFW_POLL_BUTTONS = 2;
|
||||
internal const uint _GLFW_POLL_ALL = (_GLFW_POLL_AXES | _GLFW_POLL_BUTTONS);
|
||||
internal const uint _GLFW_MESSAGE_SIZE = 1024;
|
||||
internal const uint GL_VERSION = 0x1f02;
|
||||
internal const uint GL_NONE = 0;
|
||||
internal const uint GL_COLOR_BUFFER_BIT = 0x00004000;
|
||||
internal const uint GL_UNSIGNED_BYTE = 0x1401;
|
||||
internal const uint GL_EXTENSIONS = 0x1f03;
|
||||
internal const uint GL_NUM_EXTENSIONS = 0x821d;
|
||||
internal const uint GL_CONTEXT_FLAGS = 0x821e;
|
||||
internal const uint GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001;
|
||||
internal const uint GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002;
|
||||
internal const uint GL_CONTEXT_PROFILE_MASK = 0x9126;
|
||||
internal const uint GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002;
|
||||
internal const uint GL_CONTEXT_CORE_PROFILE_BIT = 0x00000001;
|
||||
internal const uint GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256;
|
||||
internal const uint GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252;
|
||||
internal const uint GL_NO_RESET_NOTIFICATION_ARB = 0x8261;
|
||||
internal const uint GL_CONTEXT_RELEASE_BEHAVIOR = 0x82fb;
|
||||
internal const uint GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82fc;
|
||||
internal const uint GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008;
|
||||
internal const uint EGL_SUCCESS = 0x3000;
|
||||
internal const uint EGL_NOT_INITIALIZED = 0x3001;
|
||||
internal const uint EGL_BAD_ACCESS = 0x3002;
|
||||
internal const uint EGL_BAD_ALLOC = 0x3003;
|
||||
internal const uint EGL_BAD_ATTRIBUTE = 0x3004;
|
||||
internal const uint EGL_BAD_CONFIG = 0x3005;
|
||||
internal const uint EGL_BAD_CONTEXT = 0x3006;
|
||||
internal const uint EGL_BAD_CURRENT_SURFACE = 0x3007;
|
||||
internal const uint EGL_BAD_DISPLAY = 0x3008;
|
||||
internal const uint EGL_BAD_MATCH = 0x3009;
|
||||
internal const uint EGL_BAD_NATIVE_PIXMAP = 0x300a;
|
||||
internal const uint EGL_BAD_NATIVE_WINDOW = 0x300b;
|
||||
internal const uint EGL_BAD_PARAMETER = 0x300c;
|
||||
internal const uint EGL_BAD_SURFACE = 0x300d;
|
||||
internal const uint EGL_CONTEXT_LOST = 0x300e;
|
||||
internal const uint EGL_COLOR_BUFFER_TYPE = 0x303f;
|
||||
internal const uint EGL_RGB_BUFFER = 0x308e;
|
||||
internal const uint EGL_SURFACE_TYPE = 0x3033;
|
||||
internal const uint EGL_WINDOW_BIT = 0x0004;
|
||||
internal const uint EGL_RENDERABLE_TYPE = 0x3040;
|
||||
internal const uint EGL_OPENGL_ES_BIT = 0x0001;
|
||||
internal const uint EGL_OPENGL_ES2_BIT = 0x0004;
|
||||
internal const uint EGL_OPENGL_BIT = 0x0008;
|
||||
internal const uint EGL_ALPHA_SIZE = 0x3021;
|
||||
internal const uint EGL_BLUE_SIZE = 0x3022;
|
||||
internal const uint EGL_GREEN_SIZE = 0x3023;
|
||||
internal const uint EGL_RED_SIZE = 0x3024;
|
||||
internal const uint EGL_DEPTH_SIZE = 0x3025;
|
||||
internal const uint EGL_STENCIL_SIZE = 0x3026;
|
||||
internal const uint EGL_SAMPLES = 0x3031;
|
||||
internal const uint EGL_OPENGL_ES_API = 0x30a0;
|
||||
internal const uint EGL_OPENGL_API = 0x30a2;
|
||||
internal const uint EGL_NONE = 0x3038;
|
||||
internal const uint EGL_RENDER_BUFFER = 0x3086;
|
||||
internal const uint EGL_SINGLE_BUFFER = 0x3085;
|
||||
internal const uint EGL_EXTENSIONS = 0x3055;
|
||||
internal const uint EGL_CONTEXT_CLIENT_VERSION = 0x3098;
|
||||
internal const uint EGL_NATIVE_VISUAL_ID = 0x302e;
|
||||
//internal const uint EGL_NO_SURFACE = ((EGLSurface)0);
|
||||
internal static void* EGL_NO_SURFACE = ((void*)0);
|
||||
//internal const uint EGL_NO_DISPLAY = ((EGLDisplay)0);
|
||||
internal static void* EGL_NO_DISPLAY = ((void*)0);
|
||||
//internal const uint EGL_NO_CONTEXT = ((EGLContext)0);
|
||||
internal static void* EGL_NO_CONTEXT = ((void*)0);
|
||||
//internal const uint EGL_DEFAULT_DISPLAY = ((EGLNativeDisplayType)0);
|
||||
internal static void* EGL_DEFAULT_DISPLAY = ((void*)0);
|
||||
internal const uint EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR = 0x00000002;
|
||||
internal const uint EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR = 0x00000001;
|
||||
internal const uint EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR = 0x00000002;
|
||||
internal const uint EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR = 0x00000001;
|
||||
internal const uint EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR = 0x31bd;
|
||||
internal const uint EGL_NO_RESET_NOTIFICATION_KHR = 0x31be;
|
||||
internal const uint EGL_LOSE_CONTEXT_ON_RESET_KHR = 0x31bf;
|
||||
internal const uint EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR = 0x00000004;
|
||||
internal const uint EGL_CONTEXT_MAJOR_VERSION_KHR = 0x3098;
|
||||
internal const uint EGL_CONTEXT_MINOR_VERSION_KHR = 0x30fb;
|
||||
internal const uint EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR = 0x30fd;
|
||||
internal const uint EGL_CONTEXT_FLAGS_KHR = 0x30fc;
|
||||
internal const uint EGL_CONTEXT_OPENGL_NO_ERROR_KHR = 0x31b3;
|
||||
internal const uint EGL_GL_COLORSPACE_KHR = 0x309d;
|
||||
internal const uint EGL_GL_COLORSPACE_SRGB_KHR = 0x3089;
|
||||
internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_KHR = 0x2097;
|
||||
internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR = 0;
|
||||
internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR = 0x2098;
|
||||
internal const uint EGL_PLATFORM_X11_EXT = 0x31d5;
|
||||
internal const uint EGL_PLATFORM_WAYLAND_EXT = 0x31d8;
|
||||
internal const uint EGL_PRESENT_OPAQUE_EXT = 0x31df;
|
||||
internal const uint EGL_PLATFORM_ANGLE_ANGLE = 0x3202;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_ANGLE = 0x3203;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE = 0x320d;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE = 0x320e;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE = 0x3207;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE = 0x3208;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE = 0x3450;
|
||||
internal const uint EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE = 0x3489;
|
||||
internal const uint EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE = 0x348f;
|
||||
internal static IntPtr eglGetConfigAttrib = glfw.egl.GetConfigAttrib;
|
||||
internal static IntPtr eglGetConfigs = glfw.egl.GetConfigs;
|
||||
internal static IntPtr eglGetDisplay = glfw.egl.GetDisplay;
|
||||
internal static IntPtr eglGetError = glfw.egl.GetError;
|
||||
internal static IntPtr eglInitialize = glfw.egl.Initialize;
|
||||
internal static IntPtr eglTerminate = glfw.egl.Terminate;
|
||||
internal static IntPtr eglBindAPI = glfw.egl.BindAPI;
|
||||
internal static IntPtr eglCreateContext = glfw.egl.CreateContext;
|
||||
internal static IntPtr eglDestroySurface = glfw.egl.DestroySurface;
|
||||
internal static IntPtr eglDestroyContext = glfw.egl.DestroyContext;
|
||||
internal static IntPtr eglCreateWindowSurface = glfw.egl.CreateWindowSurface;
|
||||
internal static IntPtr eglMakeCurrent = glfw.egl.MakeCurrent;
|
||||
internal static IntPtr eglSwapBuffers = glfw.egl.SwapBuffers;
|
||||
internal static IntPtr eglSwapInterval = glfw.egl.SwapInterval;
|
||||
internal static IntPtr eglQueryString = glfw.egl.QueryString;
|
||||
internal static IntPtr eglGetProcAddress = glfw.egl.GetProcAddress;
|
||||
internal static IntPtr eglGetPlatformDisplayEXT = glfw.egl.GetPlatformDisplayEXT;
|
||||
internal static IntPtr eglCreatePlatformWindowSurfaceEXT = glfw.egl.CreatePlatformWindowSurfaceEXT;
|
||||
internal const uint OSMESA_RGBA = 0x1908;
|
||||
internal const uint OSMESA_FORMAT = 0x22;
|
||||
internal const uint OSMESA_DEPTH_BITS = 0x30;
|
||||
internal const uint OSMESA_STENCIL_BITS = 0x31;
|
||||
internal const uint OSMESA_ACCUM_BITS = 0x32;
|
||||
internal const uint OSMESA_PROFILE = 0x33;
|
||||
internal const uint OSMESA_CORE_PROFILE = 0x34;
|
||||
internal const uint OSMESA_COMPAT_PROFILE = 0x35;
|
||||
internal const uint OSMESA_CONTEXT_MAJOR_VERSION = 0x36;
|
||||
internal const uint OSMESA_CONTEXT_MINOR_VERSION = 0x37;
|
||||
internal static IntPtr OSMesaCreateContextExt;
|
||||
internal static IntPtr OSMesaCreateContextAttribs;
|
||||
internal static IntPtr OSMesaDestroyContext;
|
||||
internal static IntPtr OSMesaMakeCurrent;
|
||||
internal static IntPtr OSMesaGetColorBuffer;
|
||||
internal static IntPtr OSMesaGetDepthBuffer;
|
||||
internal static IntPtr OSMesaGetProcAddress;
|
||||
internal const uint VK_NULL_HANDLE = 0;
|
||||
internal static IntPtr vkGetInstanceProcAddr;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
internal enum VkStructureType:uint
|
||||
{
|
||||
VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000,
|
||||
VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000,
|
||||
VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000,
|
||||
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
|
||||
VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000123000,
|
||||
VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT = 1000217000,
|
||||
VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||
}
|
||||
|
||||
internal enum VkResult
|
||||
{
|
||||
VK_SUCCESS = 0,
|
||||
VK_NOT_READY = 1,
|
||||
VK_TIMEOUT = 2,
|
||||
VK_EVENT_SET = 3,
|
||||
VK_EVENT_RESET = 4,
|
||||
VK_INCOMPLETE = 5,
|
||||
VK_ERROR_OUT_OF_HOST_MEMORY = -1,
|
||||
VK_ERROR_OUT_OF_DEVICE_MEMORY = -2,
|
||||
VK_ERROR_INITIALIZATION_FAILED = -3,
|
||||
VK_ERROR_DEVICE_LOST = -4,
|
||||
VK_ERROR_MEMORY_MAP_FAILED = -5,
|
||||
VK_ERROR_LAYER_NOT_PRESENT = -6,
|
||||
VK_ERROR_EXTENSION_NOT_PRESENT = -7,
|
||||
VK_ERROR_FEATURE_NOT_PRESENT = -8,
|
||||
VK_ERROR_INCOMPATIBLE_DRIVER = -9,
|
||||
VK_ERROR_TOO_MANY_OBJECTS = -10,
|
||||
VK_ERROR_FORMAT_NOT_SUPPORTED = -11,
|
||||
VK_ERROR_SURFACE_LOST_KHR = -1000000000,
|
||||
VK_SUBOPTIMAL_KHR = 1000001003,
|
||||
VK_ERROR_OUT_OF_DATE_KHR = -1000001004,
|
||||
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001,
|
||||
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
|
||||
VK_ERROR_VALIDATION_FAILED_EXT = -1000011001,
|
||||
VK_RESULT_MAX_ENUM = 0x7FFFFFFF
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,782 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
//rename types in style of GLFW
|
||||
|
||||
using GLFWbool = Boolean;
|
||||
using _glfw = _GLFWlibrary;
|
||||
|
||||
//strucs defined in glfw3.h
|
||||
|
||||
|
||||
public unsafe struct GLFWcontext
|
||||
{
|
||||
int client;
|
||||
int source;
|
||||
int major, minor, revision;
|
||||
GLFWbool forward, debug, noerror;
|
||||
int profile;
|
||||
int robustness;
|
||||
int release;
|
||||
|
||||
//PFNGLGETSTRINGIPROC GetStringi;
|
||||
IntPtr GetStringi;
|
||||
//PFNGLGETINTEGERVPROC GetIntegerv;
|
||||
IntPtr GetIntegerv;
|
||||
//PFNGLGETSTRINGPROC GetString;
|
||||
IntPtr GetString;
|
||||
|
||||
/*
|
||||
void (* makeCurrent) (_GLFWwindow*);
|
||||
void (* swapBuffers) (_GLFWwindow*);
|
||||
void (* swapInterval) (int);
|
||||
int (* extensionSupported) (const char*);
|
||||
GLFWglproc(*getProcAddress)(const char*);
|
||||
void (* destroy) (_GLFWwindow*);
|
||||
*/
|
||||
|
||||
IntPtr makeCurrent;
|
||||
IntPtr swapBuffer;
|
||||
IntPtr swapInterval;
|
||||
IntPtr extensionSupported;
|
||||
IntPtr getProcAddress;
|
||||
IntPtr destroy;
|
||||
|
||||
internal struct egl
|
||||
{
|
||||
/*
|
||||
EGLConfig config;
|
||||
EGLContext handle;
|
||||
EGLSurface surface;
|
||||
*/
|
||||
void* config;
|
||||
void* handle;
|
||||
void* surface;
|
||||
void* client;
|
||||
}
|
||||
|
||||
internal struct osmesa
|
||||
{
|
||||
//OSMesaContext handle;
|
||||
void* handle;
|
||||
int width;
|
||||
int height;
|
||||
void* buffer;
|
||||
}
|
||||
|
||||
// This is defined in platform.h
|
||||
//GLFW_PLATFORM_CONTEXT_STATE
|
||||
}
|
||||
|
||||
|
||||
public unsafe struct GLFWvidmode
|
||||
{
|
||||
/*! The width, in screen coordinates, of the video mode.
|
||||
*/
|
||||
public int width;
|
||||
/*! The height, in screen coordinates, of the video mode.
|
||||
*/
|
||||
public int height;
|
||||
/*! The bit depth of the red channel of the video mode.
|
||||
*/
|
||||
public int redBits;
|
||||
/*! The bit depth of the green channel of the video mode.
|
||||
*/
|
||||
public int greenBits;
|
||||
/*! The bit depth of the blue channel of the video mode.
|
||||
*/
|
||||
public int blueBits;
|
||||
/*! The refresh rate, in Hz, of the video mode.
|
||||
*/
|
||||
int refreshRate;
|
||||
}
|
||||
|
||||
public unsafe struct GLFWgammaramp
|
||||
{
|
||||
|
||||
/*! An array of value describing the response of the red channel.
|
||||
*/
|
||||
ushort* red;
|
||||
/*! An array of value describing the response of the green channel.
|
||||
*/
|
||||
ushort* green;
|
||||
/*! An array of value describing the response of the blue channel.
|
||||
*/
|
||||
ushort* blue;
|
||||
/*! The number of elements in each array.
|
||||
*/
|
||||
uint size;
|
||||
}
|
||||
|
||||
public unsafe struct GLFWimage
|
||||
{
|
||||
|
||||
/*! The width, in pixels, of this image.
|
||||
*/
|
||||
int width;
|
||||
/*! The height, in pixels, of this image.
|
||||
*/
|
||||
int height;
|
||||
/*! The pixel data of this image, arranged left-to-right, top-to-bottom.
|
||||
*/
|
||||
byte* pixels;
|
||||
}
|
||||
|
||||
public struct GLFWgamepadstate
|
||||
{
|
||||
|
||||
/*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
|
||||
* or `GLFW_RELEASE`.
|
||||
*/
|
||||
byte[] buttons = new byte[15];
|
||||
/*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0
|
||||
* to 1.0 inclusive.
|
||||
*/
|
||||
float[] axes = new float[6];
|
||||
|
||||
public GLFWgamepadstate()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe struct GLFWallocator
|
||||
{
|
||||
//GLFWallocatefun allocate;
|
||||
IntPtr allocate;
|
||||
//GLFWreallocatefun reallocate;
|
||||
IntPtr reallocate;
|
||||
//GLFWdeallocatefun deallocate;
|
||||
IntPtr deallocate;
|
||||
void* user;
|
||||
}
|
||||
|
||||
public unsafe struct GLFWmonitor
|
||||
{
|
||||
|
||||
char[] name = new char[128];
|
||||
void* userPointer;
|
||||
|
||||
// Physical dimensions in millimeters.
|
||||
int widthMM, heightMM;
|
||||
|
||||
// The window whose video mode is current on this monitor
|
||||
//_GLFWwindow* window;
|
||||
IntPtr window;
|
||||
|
||||
//GLFWvidmode* modes;
|
||||
IntPtr modes;
|
||||
int modeCount;
|
||||
GLFWvidmode currentMode;
|
||||
|
||||
GLFWgammaramp originalRamp;
|
||||
GLFWgammaramp currentRamp;
|
||||
|
||||
// not transformed
|
||||
//GLFW_PLATFORM_MONITOR_STATE;
|
||||
|
||||
public GLFWmonitor() { }
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWwindow
|
||||
{
|
||||
//struct _GLFWwindow* next in GLFW
|
||||
public IntPtr next;
|
||||
|
||||
public bool resizable;
|
||||
public bool decorated;
|
||||
public bool autoIconify;
|
||||
public bool floating;
|
||||
public bool focusOnShow;
|
||||
public bool mousePassthrough;
|
||||
public bool shouldClose;
|
||||
public void* userPointer;
|
||||
public bool doublebuffer;
|
||||
public GLFWvidmode videoMode;
|
||||
//public GLFWmonitor* monitor;
|
||||
public IntPtr monitor;
|
||||
public GLFWcursor* cursor;
|
||||
|
||||
public int minwidth, minheight;
|
||||
public int maxwidth, maxheight;
|
||||
public int numer, denom;
|
||||
|
||||
public bool stickyKeys;
|
||||
public bool stickyMouseButtons;
|
||||
public bool lockKeyMods;
|
||||
public int cursorMode;
|
||||
public char[] mouseButtons = new char[8];
|
||||
public char[] keys = new char[349];
|
||||
// Virtual cursor position when cursor is disabled
|
||||
public double virtualCursorPosX, virtualCursorPosY;
|
||||
public bool rawMouseMotion;
|
||||
|
||||
public GLFWcontext context;
|
||||
|
||||
public _GLFWwindow()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public struct GLFWcursor
|
||||
{
|
||||
//_GLFWcursor* next;
|
||||
IntPtr next;
|
||||
|
||||
// This is defined in platform.h
|
||||
// not completed in tranformation
|
||||
// GLFW_PLATFORM_CURSOR_STATE;
|
||||
}
|
||||
|
||||
public unsafe struct GLFWerror
|
||||
{
|
||||
|
||||
//_GLFWerror* next;
|
||||
IntPtr next;
|
||||
int code;
|
||||
char[] description = new char[GLFW._GLFW_MESSAGE_SIZE];
|
||||
|
||||
public GLFWerror()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe struct GLFWinitconfig
|
||||
{
|
||||
|
||||
GLFWbool hatButtons;
|
||||
int angleType;
|
||||
int platformID;
|
||||
//PFN_vkGetInstanceProcAddr vulkanLoader;
|
||||
IntPtr vulkanLoader;
|
||||
struct ns
|
||||
{
|
||||
GLFWbool menubar;
|
||||
GLFWbool chdir;
|
||||
}
|
||||
struct x11
|
||||
{
|
||||
GLFWbool xcbVulkanSurface;
|
||||
}
|
||||
struct wl
|
||||
{
|
||||
int libdecorMode;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe struct GLFWwndconfig
|
||||
{
|
||||
|
||||
int xpos;
|
||||
int ypos;
|
||||
int width;
|
||||
int height;
|
||||
char* title;
|
||||
GLFWbool resizable;
|
||||
GLFWbool visible;
|
||||
GLFWbool decorated;
|
||||
GLFWbool focused;
|
||||
GLFWbool autoIconify;
|
||||
GLFWbool floating;
|
||||
GLFWbool maximized;
|
||||
GLFWbool centerCursor;
|
||||
GLFWbool focusOnShow;
|
||||
GLFWbool mousePassthrough;
|
||||
GLFWbool scaleToMonitor;
|
||||
internal struct Ns
|
||||
{
|
||||
GLFWbool retina;
|
||||
char[] frameName = new char[256];
|
||||
|
||||
public Ns()
|
||||
{
|
||||
}
|
||||
}
|
||||
internal Ns ns = new Ns();
|
||||
|
||||
internal struct X11
|
||||
{
|
||||
char[] className = new char[256];
|
||||
char[] instanceName = new char[256];
|
||||
|
||||
public X11()
|
||||
{
|
||||
}
|
||||
}
|
||||
internal X11 x11 = new X11();
|
||||
|
||||
internal struct Win32
|
||||
{
|
||||
GLFWbool keymenu;
|
||||
}
|
||||
internal Win32 win32 = new Win32();
|
||||
|
||||
internal struct Wl
|
||||
{
|
||||
char[] appId = new char[256];
|
||||
|
||||
public Wl()
|
||||
{
|
||||
}
|
||||
}
|
||||
internal Wl wl = new Wl();
|
||||
|
||||
public GLFWwndconfig()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe struct GLFWctxconfig
|
||||
{
|
||||
int client;
|
||||
int source;
|
||||
int major;
|
||||
int minor;
|
||||
GLFWbool forward;
|
||||
GLFWbool debug;
|
||||
GLFWbool noerror;
|
||||
int profile;
|
||||
int robustness;
|
||||
int release;
|
||||
//_GLFWwindow* share;
|
||||
IntPtr share;
|
||||
internal struct Nsgl
|
||||
{
|
||||
GLFWbool offline;
|
||||
}
|
||||
internal Nsgl nsgl = new Nsgl();
|
||||
|
||||
public GLFWctxconfig()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe struct GLFWfbconfig
|
||||
{
|
||||
|
||||
int redBits;
|
||||
int greenBits;
|
||||
int blueBits;
|
||||
int alphaBits;
|
||||
int depthBits;
|
||||
int stencilBits;
|
||||
int accumRedBits;
|
||||
int accumGreenBits;
|
||||
int accumBlueBits;
|
||||
int accumAlphaBits;
|
||||
int auxBuffers;
|
||||
GLFWbool stereo;
|
||||
int samples;
|
||||
GLFWbool sRGB;
|
||||
GLFWbool doublebuffer;
|
||||
GLFWbool transparent;
|
||||
uintptr_t handle;
|
||||
}
|
||||
|
||||
|
||||
internal unsafe struct _GLFWlibrary
|
||||
{
|
||||
GLFWbool initialized;
|
||||
GLFWallocator allocator;
|
||||
|
||||
GLFWplatform platform;
|
||||
|
||||
internal unsafe struct Hints
|
||||
{
|
||||
GLFWinitconfig init;
|
||||
GLFWfbconfig framebuffer;
|
||||
GLFWwndconfig window;
|
||||
GLFWctxconfig context;
|
||||
int refreshRate;
|
||||
}
|
||||
internal Hints hints = new Hints();
|
||||
|
||||
//_GLFWerror* errorListHead;
|
||||
IntPtr errorListHead;
|
||||
//_GLFWcursor* cursorListHead;
|
||||
IntPtr cursorListHead;
|
||||
//_GLFWwindow* windowListHead;
|
||||
IntPtr windowListHead;
|
||||
//_GLFWmonitor** monitors;
|
||||
IntPtr monitors;
|
||||
int monitorCount;
|
||||
|
||||
|
||||
|
||||
GLFWbool joysticksInitialized;
|
||||
_GLFWjoystick[] joysticks = new _GLFWjoystick[GLFW.GLFW_JOYSTICK_LAST + 1];
|
||||
//_GLFWmapping* mappings;
|
||||
IntPtr mappings;
|
||||
int mappingCount;
|
||||
|
||||
_GLFWtls errorSlot;
|
||||
_GLFWtls contextSlot;
|
||||
_GLFWmutex errorLock;
|
||||
|
||||
internal unsafe struct timer
|
||||
{
|
||||
ulong offset;
|
||||
// This is defined in platform.h
|
||||
|
||||
|
||||
//not transformed function defination
|
||||
//GLFW_PLATFORM_LIBRARY_TIMER_STATE
|
||||
}
|
||||
|
||||
|
||||
internal unsafe struct Egl
|
||||
{
|
||||
internal int platform;
|
||||
internal void* display;
|
||||
internal int major, minor;
|
||||
internal bool prefix;
|
||||
|
||||
internal bool KHR_create_context;
|
||||
internal bool KHR_create_context_no_error;
|
||||
internal bool KHR_gl_colorspace;
|
||||
internal bool KHR_get_all_proc_addresses;
|
||||
internal bool KHR_context_flush_control;
|
||||
internal bool EXT_client_extensions;
|
||||
internal bool EXT_platform_base;
|
||||
internal bool EXT_platform_x11;
|
||||
internal bool EXT_platform_wayland;
|
||||
internal bool EXT_present_opaque;
|
||||
internal bool ANGLE_platform_angle;
|
||||
internal bool ANGLE_platform_angle_opengl;
|
||||
internal bool ANGLE_platform_angle_d3d;
|
||||
internal bool ANGLE_platform_angle_vulkan;
|
||||
internal bool ANGLE_platform_angle_metal;
|
||||
|
||||
internal void* handle;
|
||||
|
||||
internal IntPtr GetConfigAttrib;
|
||||
internal IntPtr GetConfigs;
|
||||
internal IntPtr GetDisplay;
|
||||
internal IntPtr GetError;
|
||||
internal IntPtr Initialize;
|
||||
internal IntPtr Terminate;
|
||||
internal IntPtr BindAPI;
|
||||
internal IntPtr CreateContext;
|
||||
internal IntPtr DestroySurface;
|
||||
internal IntPtr DestroyContext;
|
||||
internal IntPtr CreateWindowSurface;
|
||||
internal IntPtr MakeCurrent;
|
||||
internal IntPtr SwapBuffers;
|
||||
internal IntPtr SwapInterval;
|
||||
internal IntPtr QueryString;
|
||||
internal IntPtr GetProcAddress;
|
||||
|
||||
internal IntPtr GetPlatformDisplayEXT;
|
||||
internal IntPtr CreatePlatformWindowSurfaceEXT;
|
||||
}
|
||||
internal Egl egl = new Egl();
|
||||
|
||||
internal unsafe struct Osmesa
|
||||
{
|
||||
void* handle;
|
||||
|
||||
IntPtr CreateContextExt;
|
||||
IntPtr CreateContextAttribs;
|
||||
IntPtr DestroyContext;
|
||||
IntPtr MakeCurrent;
|
||||
IntPtr GetColorBuffer;
|
||||
IntPtr GetDepthBuffer;
|
||||
IntPtr GetProcAddress;
|
||||
}
|
||||
internal Osmesa osmesa = new Osmesa();
|
||||
|
||||
internal unsafe struct vk
|
||||
{
|
||||
GLFWbool available;
|
||||
void* handle;
|
||||
char*[] extensions = new char*[2];
|
||||
IntPtr GetInstanceProcAddr;
|
||||
GLFWbool KHR_surface;
|
||||
GLFWbool KHR_win32_surface;
|
||||
GLFWbool MVK_macos_surface;
|
||||
GLFWbool EXT_metal_surface;
|
||||
GLFWbool KHR_xlib_surface;
|
||||
GLFWbool KHR_xcb_surface;
|
||||
GLFWbool KHR_wayland_surface;
|
||||
|
||||
public vk()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal unsafe struct Callbacks
|
||||
{
|
||||
IntPtr monitor;
|
||||
IntPtr joystick;
|
||||
}
|
||||
internal Callbacks callbacks = new Callbacks();
|
||||
|
||||
public _GLFWlibrary()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWmapelement
|
||||
{
|
||||
byte type;
|
||||
byte index;
|
||||
sbyte axisScale;
|
||||
sbyte axisOffset;
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWmapping
|
||||
{
|
||||
|
||||
char[] name = new char[128];
|
||||
char[] guid = new char[33];
|
||||
_GLFWmapelement[] buttons = new _GLFWmapelement[15];
|
||||
_GLFWmapelement[] axes = new _GLFWmapelement[6];
|
||||
|
||||
public _GLFWmapping() { }
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWjoystick
|
||||
{
|
||||
|
||||
GLFWbool allocated;
|
||||
GLFWbool connected;
|
||||
float* axes;
|
||||
int axisCount;
|
||||
byte* buttons;
|
||||
int buttonCount;
|
||||
byte* hats;
|
||||
int hatCount;
|
||||
char[] name = new char[128];
|
||||
void* userPointer;
|
||||
char[] guid = new char[33];
|
||||
//_GLFWmapping* mapping;
|
||||
IntPtr mapping;
|
||||
|
||||
// This is defined in platform.h
|
||||
// not completed in transforming
|
||||
// GLFW_PLATFORM_JOYSTICK_STATE;
|
||||
|
||||
public _GLFWjoystick() { }
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWtls
|
||||
{
|
||||
// This is defined in platform.h
|
||||
|
||||
//GLFW_PLATFORM_TLS_STATE
|
||||
}
|
||||
|
||||
|
||||
public unsafe struct GLFWplatform
|
||||
{
|
||||
|
||||
int platformID;
|
||||
// init
|
||||
//GLFWbool(*init)(void);
|
||||
IntPtr init;
|
||||
//void (* terminate) (void);
|
||||
IntPtr terminate;
|
||||
|
||||
// input
|
||||
/* void (* getCursorPos) (_GLFWwindow*, double*, double*);
|
||||
void (* setCursorPos) (_GLFWwindow*, double, double);
|
||||
void (* setCursorMode) (_GLFWwindow*, int);
|
||||
void (* setRawMouseMotion) (_GLFWwindow*, GLFWbool);
|
||||
GLFWbool(*rawMouseMotionSupported)(void);
|
||||
GLFWbool(*createCursor)(_GLFWcursor*,const GLFWimage*,int,int);
|
||||
GLFWbool(*createStandardCursor)(_GLFWcursor*, int);
|
||||
void (* destroyCursor) (_GLFWcursor*);
|
||||
void (* setCursor) (_GLFWwindow*, _GLFWcursor*);
|
||||
const char* (*getScancodeName)(int);
|
||||
int (* getKeyScancode) (int);
|
||||
void (* setClipboardString) (const char*);
|
||||
const char* (*getClipboardString)(void);
|
||||
GLFWbool(*initJoysticks)(void);
|
||||
void (* terminateJoysticks) (void);
|
||||
GLFWbool(*pollJoystick)(_GLFWjoystick*, int);
|
||||
const char* (*getMappingName)(void);
|
||||
void (* updateGamepadGUID) (char*);
|
||||
// monitor
|
||||
void (* freeMonitor) (_GLFWmonitor*);
|
||||
void (* getMonitorPos) (_GLFWmonitor*, int*, int*);
|
||||
void (* getMonitorContentScale) (_GLFWmonitor*, float*, float*);
|
||||
void (* getMonitorWorkarea) (_GLFWmonitor*, int*, int*, int*, int*);
|
||||
GLFWvidmode* (* getVideoModes) (_GLFWmonitor*, int*);
|
||||
void (* getVideoMode) (_GLFWmonitor*, GLFWvidmode*);
|
||||
GLFWbool(*getGammaRamp)(_GLFWmonitor*, GLFWgammaramp*);
|
||||
void (* setGammaRamp) (_GLFWmonitor*,const GLFWgammaramp*);
|
||||
// window
|
||||
GLFWbool(*createWindow)(_GLFWwindow*,const _GLFWwndconfig*,const _GLFWctxconfig*,const _GLFWfbconfig*);
|
||||
void (* destroyWindow) (_GLFWwindow*);
|
||||
void (* setWindowTitle) (_GLFWwindow*,const char*);
|
||||
void (* setWindowIcon) (_GLFWwindow*, int,const GLFWimage*);
|
||||
void (* getWindowPos) (_GLFWwindow*, int*, int*);
|
||||
void (* setWindowPos) (_GLFWwindow*, int, int);
|
||||
void (* getWindowSize) (_GLFWwindow*, int*, int*);
|
||||
void (* setWindowSize) (_GLFWwindow*, int, int);
|
||||
void (* setWindowSizeLimits) (_GLFWwindow*, int, int, int, int);
|
||||
void (* setWindowAspectRatio) (_GLFWwindow*, int, int);
|
||||
void (* getFramebufferSize) (_GLFWwindow*, int*, int*);
|
||||
void (* getWindowFrameSize) (_GLFWwindow*, int*, int*, int*, int*);
|
||||
void (* getWindowContentScale) (_GLFWwindow*, float*, float*);
|
||||
void (* iconifyWindow) (_GLFWwindow*);
|
||||
void (* restoreWindow) (_GLFWwindow*);
|
||||
void (* maximizeWindow) (_GLFWwindow*);
|
||||
void (* showWindow) (_GLFWwindow*);
|
||||
void (* hideWindow) (_GLFWwindow*);
|
||||
void (* requestWindowAttention) (_GLFWwindow*);
|
||||
void (* focusWindow) (_GLFWwindow*);
|
||||
void (* setWindowMonitor) (_GLFWwindow*, _GLFWmonitor*, int, int, int, int, int);
|
||||
GLFWbool(*windowFocused)(_GLFWwindow*);
|
||||
GLFWbool(*windowIconified)(_GLFWwindow*);
|
||||
GLFWbool(*windowVisible)(_GLFWwindow*);
|
||||
GLFWbool(*windowMaximized)(_GLFWwindow*);
|
||||
GLFWbool(*windowHovered)(_GLFWwindow*);
|
||||
GLFWbool(*framebufferTransparent)(_GLFWwindow*);
|
||||
float (* getWindowOpacity) (_GLFWwindow*);
|
||||
void (* setWindowResizable) (_GLFWwindow*, GLFWbool);
|
||||
void (* setWindowDecorated) (_GLFWwindow*, GLFWbool);
|
||||
void (* setWindowFloating) (_GLFWwindow*, GLFWbool);
|
||||
void (* setWindowOpacity) (_GLFWwindow*, float);
|
||||
void (* setWindowMousePassthrough) (_GLFWwindow*, GLFWbool);
|
||||
void (* pollEvents) (void);
|
||||
void (* waitEvents) (void);
|
||||
void (* waitEventsTimeout) (double);
|
||||
void (* postEmptyEvent) (void);
|
||||
*/
|
||||
internal IntPtr setCursorPos;
|
||||
internal IntPtr setCursorMode;
|
||||
internal IntPtr setRawMouseMotion;
|
||||
internal IntPtr rawMouseMotionSupported;
|
||||
internal IntPtr createCursor;
|
||||
internal IntPtr createStandardCursor;
|
||||
internal IntPtr destroyCursor;
|
||||
internal IntPtr setCursor;
|
||||
internal IntPtr getScancodeName;
|
||||
internal IntPtr getKeyScancode;
|
||||
internal IntPtr setClipboardString;
|
||||
internal IntPtr getClipboardString;
|
||||
internal IntPtr initJoysticks;
|
||||
internal IntPtr terminateJoysticks;
|
||||
internal IntPtr pollJoystick;
|
||||
internal IntPtr getMappingName;
|
||||
internal IntPtr updateGamepadGUID;
|
||||
// monitor
|
||||
internal IntPtr freeMonitor;
|
||||
internal IntPtr getMonitorPos;
|
||||
internal IntPtr getMonitorContentScale;
|
||||
internal IntPtr getMonitorWorkarea;
|
||||
internal IntPtr getVideoModes;
|
||||
internal IntPtr getVideoMode;
|
||||
internal IntPtr getGammaRamp;
|
||||
internal IntPtr setGammaRamp;
|
||||
// window
|
||||
internal IntPtr createWindow;
|
||||
internal IntPtr destroyWindow;
|
||||
internal IntPtr setWindowTitle;
|
||||
internal IntPtr setWindowIcon;
|
||||
internal IntPtr getWindowPos;
|
||||
internal IntPtr setWindowPos;
|
||||
internal IntPtr getWindowSize;
|
||||
internal IntPtr setWindowSize;
|
||||
internal IntPtr setWindowSizeLimits;
|
||||
internal IntPtr setWindowAspectRatio;
|
||||
internal IntPtr getFramebufferSize;
|
||||
internal IntPtr getWindowFrameSize;
|
||||
internal IntPtr getWindowContentScale;
|
||||
internal IntPtr iconifyWindow;
|
||||
internal IntPtr restoreWindow;
|
||||
internal IntPtr maximizeWindow;
|
||||
internal IntPtr showWindow;
|
||||
internal IntPtr hideWindow;
|
||||
internal IntPtr requestWindowAttention;
|
||||
internal IntPtr focusWindow;
|
||||
internal IntPtr setWindowMonitor;
|
||||
internal IntPtr windowFocused;
|
||||
internal IntPtr windowIconified;
|
||||
internal IntPtr windowVisible;
|
||||
internal IntPtr windowMaximized;
|
||||
internal IntPtr windowHovered;
|
||||
internal IntPtr framebufferTransparent;
|
||||
internal IntPtr getWindowOpacity;
|
||||
internal IntPtr setWindowResizable;
|
||||
internal IntPtr setWindowDecorated;
|
||||
internal IntPtr setWindowFloating;
|
||||
internal IntPtr setWindowOpacity;
|
||||
internal IntPtr setWindowMousePassthrough;
|
||||
internal IntPtr pollEvents;
|
||||
internal IntPtr waitEvents;
|
||||
internal IntPtr waitEventsTimeout;
|
||||
internal IntPtr postEmptyEvent;
|
||||
|
||||
|
||||
// EGL
|
||||
//EGLenum(*getEGLPlatform)(EGLint**);
|
||||
//EGLNativeDisplayType(*getEGLNativeDisplay)(void);
|
||||
//EGLNativeWindowType(*getEGLNativeWindow)(_GLFWwindow*);
|
||||
internal IntPtr getEGLPlatform;
|
||||
internal IntPtr getEGLNativeDisplay;
|
||||
internal IntPtr getEGLNativeWindow;
|
||||
|
||||
|
||||
|
||||
// vulkan
|
||||
//void (* getRequiredInstanceExtensions) (char**);
|
||||
//GLFWbool(*getPhysicalDevicePresentationSupport)(VkInstance, VkPhysicalDevice, uint32_t);
|
||||
//VkResult(*createWindowSurface)(VkInstance, _GLFWwindow*,const VkAllocationCallbacks*, VkSurfaceKHR*);
|
||||
internal IntPtr getRequiredInstanceExtensions;
|
||||
internal IntPtr VkPhysicalDevice;
|
||||
internal IntPtr _GLFWwindow;
|
||||
|
||||
}
|
||||
|
||||
public unsafe struct _GLFWmutex
|
||||
{
|
||||
// This is defined in platform.h
|
||||
//GLFW_PLATFORM_MUTEX_STATE
|
||||
}
|
||||
|
||||
//public unsafe struct VkAllocationCallbacks { }
|
||||
|
||||
internal unsafe struct VkExtensionProperties
|
||||
{
|
||||
char[] extensionName = new char[256];
|
||||
uint specVersion;
|
||||
|
||||
public VkExtensionProperties()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
internal unsafe struct _GLFWerror
|
||||
{
|
||||
IntPtr next;
|
||||
int code;
|
||||
char[] description = new char[1024];
|
||||
|
||||
public _GLFWerror()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Explicit,Size = 16)]
|
||||
public struct uintptr_t
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
long part1;
|
||||
[FieldOffset(8)]
|
||||
long part2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
public static class GLinit
|
||||
{
|
||||
[DllImport("opengl32.dll", ExactSpelling = false, EntryPoint = "wglGetProcAddress", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
|
||||
internal static extern IntPtr wglGetProcAddress(string funcName);
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
public struct GLclampd
|
||||
{
|
||||
private double value;
|
||||
|
||||
public void SetValue(double v)
|
||||
{
|
||||
if (v<0||v>1)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("Input is out of range");
|
||||
}
|
||||
else
|
||||
{
|
||||
value = v;
|
||||
}
|
||||
}
|
||||
|
||||
public double Value()
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public static implicit operator double(GLclampd gLclampd)
|
||||
{
|
||||
return gLclampd.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
public struct GLclampf
|
||||
{
|
||||
private float value;
|
||||
|
||||
public void Value(float v)
|
||||
{
|
||||
if (v<0||v>1)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("Input is out of range!");
|
||||
}
|
||||
else
|
||||
{
|
||||
value = v;
|
||||
}
|
||||
}
|
||||
|
||||
public float Value()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
public static implicit operator float(GLclampf gLclampf)
|
||||
{
|
||||
return gLclampf.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
public enum GLenum:uint
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Graphics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public static class Graphic
|
||||
{
|
||||
private const string glPackageName = "StgSharpGraphics.dll";
|
||||
private static GraphicIO glIO;
|
||||
|
||||
static Graphic()
|
||||
{
|
||||
glIO = InitPackage();
|
||||
initWindow = glIO.initWindowPtr;
|
||||
}
|
||||
|
||||
public static InitWindow initWindow ;
|
||||
|
||||
[DllImport(glPackageName, EntryPoint = "initPackage")]
|
||||
internal static extern GraphicIO InitPackage();
|
||||
|
||||
[DllImport(glPackageName, EntryPoint = "initWindow")]
|
||||
public static extern void Window(int width,int height);
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
internal class build_in
|
||||
{
|
||||
internal static Dictionary<int, GLexFunc_table> ExtensionFunctionsTableDictionary = new Dictionary<int, GLexFunc_table>();
|
||||
internal static Dictionary<int, List<string>> MissingExtensionFunctionsDictionary = new Dictionary<int, List<string>>();
|
||||
internal static GLexFunc_table ExtensionFunctionsForCurrent;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,607 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
/// <summary>
|
||||
/// OpenGL接口函数封装类
|
||||
/// </summary>
|
||||
public partial class gl
|
||||
{
|
||||
internal delegate void glDrawRangeElements(uint mode, uint start, uint end, int count, uint type, IntPtr indices);
|
||||
internal delegate void glTexImage3D(uint target, int level, int internalformat, int width, int height, int depth, int border, uint format, uint type, IntPtr pixels);
|
||||
internal delegate void glTexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, IntPtr pixels);
|
||||
internal delegate void glCopyTexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height);
|
||||
internal delegate void glActiveTexture(uint texture);
|
||||
internal delegate void glSampleCoverage(float value, bool invert);
|
||||
internal delegate void glCompressedTexImage3D(uint target, int level, uint internalformat, int width, int height, int depth, int border, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTexImage2D(uint target, int level, uint internalformat, int width, int height, int border, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTexImage1D(uint target, int level, uint internalformat, int width, int border, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTexSubImage3D(uint target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTexSubImage2D(uint target, int level, int xoffset, int yoffset, int width, int height, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTexSubImage1D(uint target, int level, int xoffset, int width, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glGetCompressedTexImage(uint target, int level, IntPtr img);
|
||||
internal delegate void glBlendFuncSeparate(uint sfactorRGB, uint dfactorRGB, uint sfactorAlpha, uint dfactorAlpha);
|
||||
internal delegate void glMultiDrawArrays(uint mode, int[] first, int[] count, int drawcount);
|
||||
internal delegate void glMultiDrawElements(uint mode, int[] count, uint type, IntPtr[] indices, int drawcount);
|
||||
internal delegate void glPointParameterf(uint pname, float Param);
|
||||
internal delegate void glPointParameterfv(uint pname, float[] Params);
|
||||
internal delegate void glPointParameteri(uint pname, int Param);
|
||||
internal delegate void glPointParameteriv(uint pname, int[] Params);
|
||||
internal delegate void glBlendColor(float red, float green, float blue, float alpha);
|
||||
internal delegate void glBlendEquation(uint mode);
|
||||
internal delegate void glGenQueries(int n, uint[] ids);
|
||||
internal delegate void glDeleteQueries(int n, uint[] ids);
|
||||
internal delegate bool glIsQuery(uint id);
|
||||
internal delegate void glBeginQuery(uint target, uint id);
|
||||
internal delegate void glEndQuery(uint target);
|
||||
internal delegate void glGetQueryiv(uint target, uint pname, int[] Params);
|
||||
internal delegate void glGetQueryObjectiv(uint id, uint pname, int[] Params);
|
||||
internal delegate void glGetQueryObjectuiv(uint id, uint pname, uint[] Params);
|
||||
internal delegate void glBindBuffer(uint target, uint buffer);
|
||||
internal delegate void glDeleteBuffers(int n, uint[] buffers);
|
||||
internal delegate void glGenBuffers(int n, uint[] buffers);
|
||||
internal delegate bool glIsBuffer(uint buffer);
|
||||
internal delegate void glBufferData(uint target, int size, IntPtr data, uint usage);
|
||||
internal delegate void glBufferSubData(uint target, int offset, int size, IntPtr data);
|
||||
internal delegate void glGetBufferSubData(uint target, int offset, int size, IntPtr data);
|
||||
internal delegate void glMapBuffer(uint target, uint access);
|
||||
internal delegate bool glUnmapBuffer(uint target);
|
||||
internal delegate void glGetBufferParameteriv(uint target, uint pname, int[] Params);
|
||||
internal delegate void glGetBufferPointerv(uint target, uint pname, IntPtr[] Params);
|
||||
internal delegate void glBlendEquationSeparate(uint modeRGB, uint modeAlpha);
|
||||
internal delegate void glDrawBuffers(int n, uint[] bufs);
|
||||
internal delegate void glStencilOpSeparate(uint face, uint sfail, uint dpfail, uint dppass);
|
||||
internal delegate void glStencilFuncSeparate(uint face, uint func, int Ref, uint mask);
|
||||
internal delegate void glStencilMaskSeparate(uint face, uint mask);
|
||||
internal delegate void glAttachShader(uint program, uint shader);
|
||||
internal delegate void glBindAttribLocation(uint program, uint index, byte[] name);
|
||||
internal delegate void glCompileShader(uint shader);
|
||||
internal delegate uint glCreateProgram();
|
||||
internal delegate uint glCreateShader(uint type);
|
||||
internal delegate void glDeleteProgram(uint program);
|
||||
internal delegate void glDeleteShader(uint shader);
|
||||
internal delegate void glDetachShader(uint program, uint shader);
|
||||
internal delegate void glDisableVertexAttribArray(uint index);
|
||||
internal delegate void glEnableVertexAttribArray(uint index);
|
||||
internal delegate void glGetActiveAttrib(uint program, uint index, int bufSize, out int length,out int size, out uint type, byte[] name);
|
||||
internal delegate void glGetActiveUniform(uint program, uint index, int bufSize, out int length, out int size, out uint type, byte[] name);
|
||||
internal delegate void glGetAttachedShaders(uint program, int maxCount,out int count, uint[] shaders);
|
||||
internal delegate int glGetAttribLocation(uint program, byte[] name);
|
||||
internal delegate void glGetProgramiv(uint program, uint pname, int[] Params);
|
||||
internal delegate void glGetProgramInfoLog(uint program, int bufSize, out int length, byte[] infoLog);
|
||||
internal delegate void glGetShaderiv(uint shader, uint pname, int[] Params);
|
||||
internal delegate void glGetShaderInfoLog(uint shader, int bufSize,out int length, byte[] infoLog);
|
||||
internal delegate void glGetShaderSource(uint shader, int bufSize, out int length, byte[] source);
|
||||
internal delegate int glGetUniformLocation(uint program, byte[] name);
|
||||
internal delegate void glGetUniformfv(uint program, int location, float[] Params);
|
||||
internal delegate void glGetUniformiv(uint program, int location, int[] Params);
|
||||
internal delegate void glGetVertexAttribdv(uint index, uint pname, double[] Params);
|
||||
internal delegate void glGetVertexAttribfv(uint index, uint pname, float[] Params);
|
||||
internal delegate void glGetVertexAttribiv(uint index, uint pname, int[] Params);
|
||||
internal delegate void glGetVertexAttribPointerv(uint index, uint pname, IntPtr[] pointer);
|
||||
internal delegate bool glIsProgram(uint program);
|
||||
internal delegate bool glIsShader(uint shader);
|
||||
internal delegate void glLinkProgram(uint program);
|
||||
internal delegate void glShaderSource(uint shader, int count, IntPtr[] str, IntPtr length);
|
||||
internal delegate void glUseProgram(uint program);
|
||||
internal delegate void glUniform1f(int location, float v0);
|
||||
internal delegate void glUniform2f(int location, float v0, float v1);
|
||||
internal delegate void glUniform3f(int location, float v0, float v1, float v2);
|
||||
internal delegate void glUniform4f(int location, float v0, float v1, float v2, float v3);
|
||||
internal delegate void glUniform1i(int location, int v0);
|
||||
internal delegate void glUniform2i(int location, int v0, int v1);
|
||||
internal delegate void glUniform3i(int location, int v0, int v1, int v2);
|
||||
internal delegate void glUniform4i(int location, int v0, int v1, int v2, int v3);
|
||||
internal delegate void glUniform1fv(int location, int count, float[] value);
|
||||
internal delegate void glUniform2fv(int location, int count, float[] value);
|
||||
internal delegate void glUniform3fv(int location, int count, float[] value);
|
||||
internal delegate void glUniform4fv(int location, int count, float[] value);
|
||||
internal delegate void glUniform1iv(int location, int count, int[] value);
|
||||
internal delegate void glUniform2iv(int location, int count, int[] value);
|
||||
internal delegate void glUniform3iv(int location, int count, int[] value);
|
||||
internal delegate void glUniform4iv(int location, int count, int[] value);
|
||||
internal delegate void glUniformMatrix2fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix3fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix4fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glValidateProgram(uint program);
|
||||
internal delegate void glVertexAttrib1d(uint index, double x);
|
||||
internal delegate void glVertexAttrib1dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttrib1f(uint index, float x);
|
||||
internal delegate void glVertexAttrib1fv(uint index, float[] v);
|
||||
internal delegate void glVertexAttrib1s(uint index, short x);
|
||||
internal delegate void glVertexAttrib1sv(uint index, short[] v);
|
||||
internal delegate void glVertexAttrib2d(uint index, double x, double y);
|
||||
internal delegate void glVertexAttrib2dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttrib2f(uint index, float x, float y);
|
||||
internal delegate void glVertexAttrib2fv(uint index, float[] v);
|
||||
internal delegate void glVertexAttrib2s(uint index, short x, short y);
|
||||
internal delegate void glVertexAttrib2sv(uint index, short[] v);
|
||||
internal delegate void glVertexAttrib3d(uint index, double x, double y, double z);
|
||||
internal delegate void glVertexAttrib3dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttrib3f(uint index, float x, float y, float z);
|
||||
internal delegate void glVertexAttrib3fv(uint index, float[] v);
|
||||
internal delegate void glVertexAttrib3s(uint index, short x, short y, short z);
|
||||
internal delegate void glVertexAttrib3sv(uint index, short[] v);
|
||||
internal delegate void glVertexAttrib4Nbv(uint index, sbyte[] v);
|
||||
internal delegate void glVertexAttrib4Niv(uint index, int[] v);
|
||||
internal delegate void glVertexAttrib4Nsv(uint index, short[] v);
|
||||
internal delegate void glVertexAttrib4Nub(uint index, byte x, byte y, byte z, byte w);
|
||||
internal delegate void glVertexAttrib4Nubv(uint index, byte[] v);
|
||||
internal delegate void glVertexAttrib4Nuiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttrib4Nusv(uint index, ushort[] v);
|
||||
internal delegate void glVertexAttrib4bv(uint index, sbyte[] v);
|
||||
internal delegate void glVertexAttrib4d(uint index, double x, double y, double z, double w);
|
||||
internal delegate void glVertexAttrib4dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttrib4f(uint index, float x, float y, float z, float w);
|
||||
internal delegate void glVertexAttrib4fv(uint index, float[] v);
|
||||
internal delegate void glVertexAttrib4iv(uint index, int[] v);
|
||||
internal delegate void glVertexAttrib4s(uint index, short x, short y, short z, short w);
|
||||
internal delegate void glVertexAttrib4sv(uint index, short[] v);
|
||||
internal delegate void glVertexAttrib4ubv(uint index, byte[] v);
|
||||
internal delegate void glVertexAttrib4uiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttrib4usv(uint index, ushort[] v);
|
||||
internal delegate void glVertexAttribPointer(uint index, int size, uint type, bool normalized, int stride, IntPtr pointer);
|
||||
internal delegate void glUniformMatrix2x3fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix3x2fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix2x4fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix4x2fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix3x4fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glUniformMatrix4x3fv(int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glColorMaski(uint index, bool r, bool g, bool b, bool a);
|
||||
internal delegate void glGetBooleani_v(uint target, uint index, bool[] data);
|
||||
internal delegate void glGetIntegeri_v(uint target, uint index, int[] data);
|
||||
internal delegate void glEnablei(uint target, uint index);
|
||||
internal delegate void glDisablei(uint target, uint index);
|
||||
internal delegate bool glIsEnabledi(uint target, uint index);
|
||||
internal delegate void glBeginTransformFeedback(uint primitiveMode);
|
||||
internal delegate void glEndTransformFeedback();
|
||||
internal delegate void glBindBufferRange(uint target, uint index, uint buffer, int offset, int size);
|
||||
internal delegate void glBindBufferBase(uint target, uint index, uint buffer);
|
||||
internal delegate void glTransformFeedbackVaryings(uint program, int count, IntPtr[] varyings, uint bufferMode);
|
||||
internal delegate void glGetTransformFeedbackVarying(uint program, uint index, int bufSize, out int length,out int size, out uint type, byte[] name);
|
||||
internal delegate void glClampColor(uint target, uint clamp);
|
||||
internal delegate void glBeginConditionalRender(uint id, uint mode);
|
||||
internal delegate void glEndConditionalRender();
|
||||
internal delegate void glVertexAttribIPointer(uint index, int size, uint type, int stride, IntPtr pointer);
|
||||
internal delegate void glGetVertexAttribIiv(uint index, uint pname, int[] Params);
|
||||
internal delegate void glGetVertexAttribIuiv(uint index, uint pname, uint[] Params);
|
||||
internal delegate void glVertexAttribI1i(uint index, int x);
|
||||
internal delegate void glVertexAttribI2i(uint index, int x, int y);
|
||||
internal delegate void glVertexAttribI3i(uint index, int x, int y, int z);
|
||||
internal delegate void glVertexAttribI4i(uint index, int x, int y, int z, int w);
|
||||
internal delegate void glVertexAttribI1ui(uint index, uint x);
|
||||
internal delegate void glVertexAttribI2ui(uint index, uint x, uint y);
|
||||
internal delegate void glVertexAttribI3ui(uint index, uint x, uint y, uint z);
|
||||
internal delegate void glVertexAttribI4ui(uint index, uint x, uint y, uint z, uint w);
|
||||
internal delegate void glVertexAttribI1iv(uint index, int[] v);
|
||||
internal delegate void glVertexAttribI2iv(uint index, int[] v);
|
||||
internal delegate void glVertexAttribI3iv(uint index, int[] v);
|
||||
internal delegate void glVertexAttribI4iv(uint index, int[] v);
|
||||
internal delegate void glVertexAttribI1uiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttribI2uiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttribI3uiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttribI4uiv(uint index, uint[] v);
|
||||
internal delegate void glVertexAttribI4bv(uint index, sbyte[] v);
|
||||
internal delegate void glVertexAttribI4sv(uint index, short[] v);
|
||||
internal delegate void glVertexAttribI4ubv(uint index, byte[] v);
|
||||
internal delegate void glVertexAttribI4usv(uint index, ushort[] v);
|
||||
internal delegate void glGetUniformuiv(uint program, int location, uint[] Params);
|
||||
internal delegate void glBindFragDataLocation(uint program, uint color, byte[] name);
|
||||
internal delegate int glGetFragDataLocation(uint program, byte[] name);
|
||||
internal delegate void glUniform1ui(int location, uint v0);
|
||||
internal delegate void glUniform2ui(int location, uint v0, uint v1);
|
||||
internal delegate void glUniform3ui(int location, uint v0, uint v1, uint v2);
|
||||
internal delegate void glUniform4ui(int location, uint v0, uint v1, uint v2, uint v3);
|
||||
internal delegate void glUniform1uiv(int location, int count, uint[] value);
|
||||
internal delegate void glUniform2uiv(int location, int count, uint[] value);
|
||||
internal delegate void glUniform3uiv(int location, int count, uint[] value);
|
||||
internal delegate void glUniform4uiv(int location, int count, uint[] value);
|
||||
internal delegate void glTexParameterIiv(uint target, uint pname, int[] Params);
|
||||
internal delegate void glTexParameterIuiv(uint target, uint pname, uint[] Params);
|
||||
internal delegate void glGetTexParameterIiv(uint target, uint pname, int[] Params);
|
||||
internal delegate void glGetTexParameterIuiv(uint target, uint pname, uint[] Params);
|
||||
internal delegate void glClearBufferiv(uint buffer, int drawbuffer, int[] value);
|
||||
internal delegate void glClearBufferuiv(uint buffer, int drawbuffer, uint[] value);
|
||||
internal delegate void glClearBufferfv(uint buffer, int drawbuffer, float[] value);
|
||||
internal delegate void glClearBufferfi(uint buffer, int drawbuffer, float depth, int stencil);
|
||||
internal delegate IntPtr glGetStringi(uint name, uint index);
|
||||
internal delegate bool glIsRenderbuffer(uint renderbuffer);
|
||||
internal delegate void glBindRenderbuffer(uint target, uint renderbuffer);
|
||||
internal delegate void glDeleteRenderbuffers(int n, uint[] renderbuffers);
|
||||
internal delegate void glGenRenderbuffers(int n, uint[] renderbuffers);
|
||||
internal delegate void glRenderbufferStorage(uint target, uint internalformat, int width, int height);
|
||||
internal delegate void glGetRenderbufferParameteriv(uint target, uint pname, int[] Params);
|
||||
internal delegate bool glIsFramebuffer(uint framebuffer);
|
||||
internal delegate void glBindFramebuffer(uint target, uint framebuffer);
|
||||
internal delegate void glDeleteFramebuffers(int n, uint[] framebuffers);
|
||||
internal delegate void glGenFramebuffers(int n, uint[] framebuffers);
|
||||
internal delegate uint glCheckFramebufferStatus(uint target);
|
||||
internal delegate void glFramebufferTexture1D(uint target, uint attachment, uint textarget, uint texture, int level);
|
||||
internal delegate void glFramebufferTexture2D(uint target, uint attachment, uint textarget, uint texture, int level);
|
||||
internal delegate void glFramebufferTexture3D(uint target, uint attachment, uint textarget, uint texture, int level, int zoffset);
|
||||
internal delegate void glFramebufferRenderbuffer(uint target, uint attachment, uint renderbuffertarget, uint renderbuffer);
|
||||
internal delegate void glGetFramebufferAttachmentParameteriv(uint target, uint attachment, uint pname, int[] Params);
|
||||
internal delegate void glGenerateMipmap(uint target);
|
||||
internal delegate void glBlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, uint mask, uint filter);
|
||||
internal delegate void glRenderbufferStorageMultisample(uint target, int samples, uint internalformat, int width, int height);
|
||||
internal delegate void glFramebufferTextureLayer(uint target, uint attachment, uint texture, int level, int layer);
|
||||
internal delegate void glMapBufferRange(uint target, int offset, int length, uint access);
|
||||
internal delegate void glFlushMappedBufferRange(uint target, int offset, int length);
|
||||
internal delegate void glBindVertexArray(uint array);
|
||||
internal delegate void glDeleteVertexArrays(int n, uint[] arrays);
|
||||
internal delegate void glGenVertexArrays(int n, uint[] arrays);
|
||||
internal delegate bool glIsVertexArray(uint array);
|
||||
internal delegate void glDrawArraysInstanced(uint mode, int first, int count, int instancecount);
|
||||
internal delegate void glDrawElementsInstanced(uint mode, int count, uint type, IntPtr indices, int instancecount);
|
||||
internal delegate void glTexBuffer(uint target, uint internalformat, uint buffer);
|
||||
internal delegate void glPrimitiveRestartIndex(uint index);
|
||||
internal delegate void glCopyBufferSubData(uint readTarget, uint writeTarget, int readOffset, int writeOffset, int size);
|
||||
internal delegate void glGetUniformIndices(uint program, int uniformCount, IntPtr[] uniformNames, uint[] uniformIndices);
|
||||
internal delegate void glGetActiveUniformsiv(uint program, int uniformCount, uint[] uniformIndices, uint pname, int[] Params);
|
||||
internal delegate void glGetActiveUniformName(uint program, uint uniformIndex, int bufSize, out int length, byte[] uniformName);
|
||||
internal delegate uint glGetUniformBlockIndex(uint program, byte[] uniformBlockName);
|
||||
internal delegate void glGetActiveUniformBlockiv(uint program, uint uniformBlockIndex, uint pname, int[] Params);
|
||||
internal delegate void glGetActiveUniformBlockName(uint program, uint uniformBlockIndex, int bufSize, out int length, byte[] uniformBlockName);
|
||||
internal delegate void glUniformBlockBinding(uint program, uint uniformBlockIndex, uint uniformBlockBinding);
|
||||
internal delegate void glDrawElementsBaseVertex(uint mode, int count, uint type, IntPtr indices, int basevertex);
|
||||
internal delegate void glDrawRangeElementsBaseVertex(uint mode, uint start, uint end, int count, uint type, IntPtr indices, int basevertex);
|
||||
internal delegate void glDrawElementsInstancedBaseVertex(uint mode, int count, uint type, IntPtr indices, int instancecount, int basevertex);
|
||||
internal delegate void glMultiDrawElementsBaseVertex(uint mode, int[] count, uint type, IntPtr[] indices, int drawcount, int[] basevertex);
|
||||
internal delegate void glProvokingVertex(uint mode);
|
||||
internal delegate IntPtr glFenceSync(uint condition, uint flags);
|
||||
internal delegate bool glIsSync(IntPtr sync);
|
||||
internal delegate void glDeleteSync(IntPtr sync);
|
||||
internal delegate uint glClientWaitSync(IntPtr sync, uint flags, UInt64 timeout);
|
||||
internal delegate void glWaitSync(IntPtr sync, uint flags, UInt64 timeout);
|
||||
internal delegate void glGetInteger64v(uint pname, Int64[] data);
|
||||
internal delegate void glGetSynciv(IntPtr sync, uint pname, int bufSize, out int length, int[] values);
|
||||
internal delegate void glGetInteger64i_v(uint target, uint index, Int64[] data);
|
||||
internal delegate void glGetBufferParameteri64v(uint target, uint pname, Int64[] Params);
|
||||
internal delegate void glFramebufferTexture(uint target, uint attachment, uint texture, int level);
|
||||
internal delegate void glTexImage2DMultisample(uint target, int samples, uint internalformat, int width, int height, bool fixedsamplelocations);
|
||||
internal delegate void glTexImage3DMultisample(uint target, int samples, uint internalformat, int width, int height, int depth, bool fixedsamplelocations);
|
||||
internal delegate void glGetMultisamplefv(uint pname, uint index, float[] val);
|
||||
internal delegate void glSampleMaski(uint maskNumber, uint mask);
|
||||
internal delegate void glBindFragDataLocationIndexed(uint program, uint colorNumber, uint index, byte[] name);
|
||||
internal delegate int glGetFragDataIndex(uint program, byte[] name);
|
||||
internal delegate void glGenSamplers(int count, uint[] samplers);
|
||||
internal delegate void glDeleteSamplers(int count, uint[] samplers);
|
||||
internal delegate bool glIsSampler(uint sampler);
|
||||
internal delegate void glBindSampler(uint unit, uint sampler);
|
||||
internal delegate void glSamplerParameteri(uint sampler, uint pname, int Param);
|
||||
internal delegate void glSamplerParameteriv(uint sampler, uint pname, int[] Param);
|
||||
internal delegate void glSamplerParameterf(uint sampler, uint pname, float Param);
|
||||
internal delegate void glSamplerParameterfv(uint sampler, uint pname, float[] Param);
|
||||
internal delegate void glSamplerParameterIiv(uint sampler, uint pname, int[] Param);
|
||||
internal delegate void glSamplerParameterIuiv(uint sampler, uint pname, uint[] Param);
|
||||
internal delegate void glGetSamplerParameteriv(uint sampler, uint pname, int[] Params);
|
||||
internal delegate void glGetSamplerParameterIiv(uint sampler, uint pname, int[] Params);
|
||||
internal delegate void glGetSamplerParameterfv(uint sampler, uint pname, float[] Params);
|
||||
internal delegate void glGetSamplerParameterIuiv(uint sampler, uint pname, uint[] Params);
|
||||
internal delegate void glQueryCounter(uint id, uint target);
|
||||
internal delegate void glGetQueryObjecti64v(uint id, uint pname, Int64[] Params);
|
||||
internal delegate void glGetQueryObjectui64v(uint id, uint pname, UInt64[] Params);
|
||||
internal delegate void glVertexAttribDivisor(uint index, uint divisor);
|
||||
internal delegate void glVertexAttribP1ui(uint index, uint type, bool normalized, uint value);
|
||||
internal delegate void glVertexAttribP1uiv(uint index, uint type, bool normalized, uint[] value);
|
||||
internal delegate void glVertexAttribP2ui(uint index, uint type, bool normalized, uint value);
|
||||
internal delegate void glVertexAttribP2uiv(uint index, uint type, bool normalized, uint[] value);
|
||||
internal delegate void glVertexAttribP3ui(uint index, uint type, bool normalized, uint value);
|
||||
internal delegate void glVertexAttribP3uiv(uint index, uint type, bool normalized, uint[] value);
|
||||
internal delegate void glVertexAttribP4ui(uint index, uint type, bool normalized, uint value);
|
||||
internal delegate void glVertexAttribP4uiv(uint index, uint type, bool normalized, uint[] value);
|
||||
internal delegate void glMinSampleShading(float value);
|
||||
internal delegate void glBlendEquationi(uint buf, uint mode);
|
||||
internal delegate void glBlendEquationSeparatei(uint buf, uint modeRGB, uint modeAlpha);
|
||||
internal delegate void glBlendFunci(uint buf, uint src, uint dst);
|
||||
internal delegate void glBlendFuncSeparatei(uint buf, uint srcRGB, uint dstRGB, uint srcAlpha, uint dstAlpha);
|
||||
internal delegate void glDrawArraysIndirect(uint mode, IntPtr indirect);
|
||||
internal delegate void glDrawElementsIndirect(uint mode, uint type, IntPtr indirect);
|
||||
internal delegate void glUniform1d(int location, double x);
|
||||
internal delegate void glUniform2d(int location, double x, double y);
|
||||
internal delegate void glUniform3d(int location, double x, double y, double z);
|
||||
internal delegate void glUniform4d(int location, double x, double y, double z, double w);
|
||||
internal delegate void glUniform1dv(int location, int count, double[] value);
|
||||
internal delegate void glUniform2dv(int location, int count, double[] value);
|
||||
internal delegate void glUniform3dv(int location, int count, double[] value);
|
||||
internal delegate void glUniform4dv(int location, int count, double[] value);
|
||||
internal delegate void glUniformMatrix2dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix3dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix4dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix2x3dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix2x4dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix3x2dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix3x4dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix4x2dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glUniformMatrix4x3dv(int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glGetUniformdv(uint program, int location, double[] Params);
|
||||
internal delegate int glGetSubroutineUniformLocation(uint program, uint shadertype, byte[] name);
|
||||
internal delegate int glGetSubroutineIndex(uint program, uint shadertype, byte[] name);
|
||||
internal delegate void glGetActiveSubroutineUniformiv(uint program, uint shadertype, uint index, uint pname, int[] values);
|
||||
internal delegate void glGetActiveSubroutineUniformName(uint program, uint shadertype, uint index, int bufsize, out int length, byte[] name);
|
||||
internal delegate void glGetActiveSubroutineName(uint program, uint shadertype, uint index, int bufsize, out int length, byte[] name);
|
||||
internal delegate void glUniformSubroutinesuiv(uint shadertype, int count, uint[] indices);
|
||||
internal delegate void glGetUniformSubroutineuiv(uint shadertype, int location, uint[] Params);
|
||||
internal delegate void glGetProgramStageiv(uint program, uint shadertype, uint pname, int[] values);
|
||||
internal delegate void glPatchParameteri(uint pname, int value);
|
||||
internal delegate void glPatchParameterfv(uint pname, float[] values);
|
||||
internal delegate void glBindTransformFeedback(uint target, uint id);
|
||||
internal delegate void glDeleteTransformFeedbacks(int n, uint[] ids);
|
||||
internal delegate void glGenTransformFeedbacks(int n, uint[] ids);
|
||||
internal delegate bool glIsTransformFeedback(uint id);
|
||||
internal delegate void glPauseTransformFeedback();
|
||||
internal delegate void glResumeTransformFeedback();
|
||||
internal delegate void glDrawTransformFeedback(uint mode, uint id);
|
||||
internal delegate void glDrawTransformFeedbackStream(uint mode, uint id, uint stream);
|
||||
internal delegate void glBeginQueryIndexed(uint target, uint index, uint id);
|
||||
internal delegate void glEndQueryIndexed(uint target, uint index);
|
||||
internal delegate void glGetQueryIndexediv(uint target, uint index, uint pname, int[] Params);
|
||||
internal delegate void glReleaseShaderCompiler();
|
||||
internal delegate void glShaderBinary(int count, uint[] shaders, uint binaryformat, IntPtr binary, int length);
|
||||
internal delegate void glGetShaderPrecisionFormat(uint shadertype, uint precisiontype, int[] range, out int precision);
|
||||
internal delegate void glDepthRangef(float n, float f);
|
||||
internal delegate void glClearDepthf(float d);
|
||||
internal delegate void glGetProgramBinary(uint program, int bufSize, out int length, out uint binaryFormat, IntPtr binary);
|
||||
internal delegate void glProgramBinary(uint program, uint binaryFormat, IntPtr binary, int length);
|
||||
internal delegate void glProgramParameteri(uint program, uint pname, int value);
|
||||
internal delegate void glUseProgramStages(uint pipeline, uint stages, uint program);
|
||||
internal delegate void glActiveShaderProgram(uint pipeline, uint program);
|
||||
internal delegate uint glCreateShaderProgramv(uint type, int count, IntPtr[] strings);
|
||||
internal delegate void glBindProgramPipeline(uint pipeline);
|
||||
internal delegate void glDeleteProgramPipelines(int n, uint[] pipelines);
|
||||
internal delegate void glGenProgramPipelines(int n, uint[] pipelines);
|
||||
internal delegate bool glIsProgramPipeline(uint pipeline);
|
||||
internal delegate void glGetProgramPipelineiv(uint pipeline, uint pname, int[] Params);
|
||||
internal delegate void glProgramUniform1i(uint program, int location, int v0);
|
||||
internal delegate void glProgramUniform1iv(uint program, int location, int count, int[] value);
|
||||
internal delegate void glProgramUniform1f(uint program, int location, float v0);
|
||||
internal delegate void glProgramUniform1fv(uint program, int location, int count, float[] value);
|
||||
internal delegate void glProgramUniform1d(uint program, int location, double v0);
|
||||
internal delegate void glProgramUniform1dv(uint program, int location, int count, double[] value);
|
||||
internal delegate void glProgramUniform1ui(uint program, int location, uint v0);
|
||||
internal delegate void glProgramUniform1uiv(uint program, int location, int count, uint[] value);
|
||||
internal delegate void glProgramUniform2i(uint program, int location, int v0, int v1);
|
||||
internal delegate void glProgramUniform2iv(uint program, int location, int count, int[] value);
|
||||
internal delegate void glProgramUniform2f(uint program, int location, float v0, float v1);
|
||||
internal delegate void glProgramUniform2fv(uint program, int location, int count, float[] value);
|
||||
internal delegate void glProgramUniform2d(uint program, int location, double v0, double v1);
|
||||
internal delegate void glProgramUniform2dv(uint program, int location, int count, double[] value);
|
||||
internal delegate void glProgramUniform2ui(uint program, int location, uint v0, uint v1);
|
||||
internal delegate void glProgramUniform2uiv(uint program, int location, int count, uint[] value);
|
||||
internal delegate void glProgramUniform3i(uint program, int location, int v0, int v1, int v2);
|
||||
internal delegate void glProgramUniform3iv(uint program, int location, int count, int[] value);
|
||||
internal delegate void glProgramUniform3f(uint program, int location, float v0, float v1, float v2);
|
||||
internal delegate void glProgramUniform3fv(uint program, int location, int count, float[] value);
|
||||
internal delegate void glProgramUniform3d(uint program, int location, double v0, double v1, double v2);
|
||||
internal delegate void glProgramUniform3dv(uint program, int location, int count, double[] value);
|
||||
internal delegate void glProgramUniform3ui(uint program, int location, uint v0, uint v1, uint v2);
|
||||
internal delegate void glProgramUniform3uiv(uint program, int location, int count, uint[] value);
|
||||
internal delegate void glProgramUniform4i(uint program, int location, int v0, int v1, int v2, int v3);
|
||||
internal delegate void glProgramUniform4iv(uint program, int location, int count, int[] value);
|
||||
internal delegate void glProgramUniform4f(uint program, int location, float v0, float v1, float v2, float v3);
|
||||
internal delegate void glProgramUniform4fv(uint program, int location, int count, float[] value);
|
||||
internal delegate void glProgramUniform4d(uint program, int location, double v0, double v1, double v2, double v3);
|
||||
internal delegate void glProgramUniform4dv(uint program, int location, int count, double[] value);
|
||||
internal delegate void glProgramUniform4ui(uint program, int location, uint v0, uint v1, uint v2, uint v3);
|
||||
internal delegate void glProgramUniform4uiv(uint program, int location, int count, uint[] value);
|
||||
internal delegate void glProgramUniformMatrix2fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix3fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix4fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix2dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix3dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix4dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix2x3fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix3x2fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix2x4fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix4x2fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix3x4fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix4x3fv(uint program, int location, int count, bool transpose, float[] value);
|
||||
internal delegate void glProgramUniformMatrix2x3dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix3x2dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix2x4dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix4x2dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix3x4dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glProgramUniformMatrix4x3dv(uint program, int location, int count, bool transpose, double[] value);
|
||||
internal delegate void glValidateProgramPipeline(uint pipeline);
|
||||
internal delegate void glGetProgramPipelineInfoLog(uint pipeline, int bufSize, out int length, byte[] infoLog);
|
||||
internal delegate void glVertexAttribL1d(uint index, double x);
|
||||
internal delegate void glVertexAttribL2d(uint index, double x, double y);
|
||||
internal delegate void glVertexAttribL3d(uint index, double x, double y, double z);
|
||||
internal delegate void glVertexAttribL4d(uint index, double x, double y, double z, double w);
|
||||
internal delegate void glVertexAttribL1dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttribL2dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttribL3dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttribL4dv(uint index, double[] v);
|
||||
internal delegate void glVertexAttribLPointer(uint index, int size, uint type, int stride, IntPtr pointer);
|
||||
internal delegate void glGetVertexAttribLdv(uint index, uint pname, double[] Params);
|
||||
internal delegate void glViewportArrayv(uint first, int count, float[] v);
|
||||
internal delegate void glViewportIndexedf(uint index, float x, float y, float w, float h);
|
||||
internal delegate void glViewportIndexedfv(uint index, float[] v);
|
||||
internal delegate void glScissorArrayv(uint first, int count, int[] v);
|
||||
internal delegate void glScissorIndexed(uint index, int left, int bottom, int width, int height);
|
||||
internal delegate void glScissorIndexedv(uint index, int[] v);
|
||||
internal delegate void glDepthRangeArrayv(uint first, int count, double[] v);
|
||||
internal delegate void glDepthRangeIndexed(uint index, double n, double f);
|
||||
internal delegate void glGetFloati_v(uint target, uint index, float[] data);
|
||||
internal delegate void glGetDoublei_v(uint target, uint index, double[] data);
|
||||
internal delegate void glDrawArraysInstancedBaseInstance(uint mode, int first, int count, int instancecount, uint baseinstance);
|
||||
internal delegate void glDrawElementsInstancedBaseInstance(uint mode, int count, uint type, IntPtr indices, int instancecount, uint baseinstance);
|
||||
internal delegate void glDrawElementsInstancedBaseVertexBaseInstance(uint mode, int count, uint type, IntPtr indices, int instancecount, int basevertex, uint baseinstance);
|
||||
internal delegate void glGetInternalformativ(uint target, uint internalformat, uint pname, int bufSize, int[] Params);
|
||||
internal delegate void glGetActiveAtomicCounterBufferiv(uint program, uint bufferIndex, uint pname, int[] Params);
|
||||
internal delegate void glBindImageTexture(uint unit, uint texture, int level, bool layered, int layer, uint access, uint format);
|
||||
internal delegate void glMemoryBarrier(uint barriers);
|
||||
internal delegate void glTexStorage1D(uint target, int levels, uint internalformat, int width);
|
||||
internal delegate void glTexStorage2D(uint target, int levels, uint internalformat, int width, int height);
|
||||
internal delegate void glTexStorage3D(uint target, int levels, uint internalformat, int width, int height, int depth);
|
||||
internal delegate void glDrawTransformFeedbackInstanced(uint mode, uint id, int instancecount);
|
||||
internal delegate void glDrawTransformFeedbackStreamInstanced(uint mode, uint id, uint stream, int instancecount);
|
||||
internal delegate void glClearBufferData(uint target, uint internalformat, uint format, uint type, IntPtr data);
|
||||
internal delegate void glClearBufferSubData(uint target, uint internalformat, int offset, int size, uint format, uint type, IntPtr data);
|
||||
internal delegate void glDispatchCompute(uint num_groups_x, uint num_groups_y, uint num_groups_z);
|
||||
internal delegate void glDispatchComputeIndirect(int indirect);
|
||||
internal delegate void glCopyImageSubData(uint srcName, uint srcTarget, int srcLevel, int srcX, int srcY, int srcZ, uint dstName, uint dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth);
|
||||
internal delegate void glFramebufferParameteri(uint target, uint pname, int Param);
|
||||
internal delegate void glGetFramebufferParameteriv(uint target, uint pname, int[] Params);
|
||||
internal delegate void glGetInternalformati64v(uint target, uint internalformat, uint pname, int bufSize, Int64[] Params);
|
||||
internal delegate void glInvalidateTexSubImage(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth);
|
||||
internal delegate void glInvalidateTexImage(uint texture, int level);
|
||||
internal delegate void glInvalidateBufferSubData(uint buffer, int offset, int length);
|
||||
internal delegate void glInvalidateBufferData(uint buffer);
|
||||
internal delegate void glInvalidateFramebuffer(uint target, int numAttachments, uint[] attachments);
|
||||
internal delegate void glInvalidateSubFramebuffer(uint target, int numAttachments, uint[] attachments, int x, int y, int width, int height);
|
||||
internal delegate void glMultiDrawArraysIndirect(uint mode, IntPtr indirect, int drawcount, int stride);
|
||||
internal delegate void glMultiDrawElementsIndirect(uint mode, uint type, IntPtr indirect, int drawcount, int stride);
|
||||
internal delegate void glGetProgramInterfaceiv(uint program, uint programInterface, uint pname, int[] Params);
|
||||
internal delegate uint glGetProgramResourceIndex(uint program, uint programInterface, byte[] name);
|
||||
internal delegate void glGetProgramResourceName(uint program, uint programInterface, uint index, int bufSize, out int length, byte[] name);
|
||||
internal delegate void glGetProgramResourceiv(uint program, uint programInterface, uint index, int propCount, uint[] props, int bufSize, out int length, int[] Params);
|
||||
internal delegate int glGetProgramResourceLocation(uint program, uint programInterface, byte[] name);
|
||||
internal delegate int glGetProgramResourceLocationIndex(uint program, uint programInterface, byte[] name);
|
||||
internal delegate void glShaderStorageBlockBinding(uint program, uint storageBlockIndex, uint storageBlockBinding);
|
||||
internal delegate void glTexBufferRange(uint target, uint internalformat, uint buffer, int offset, int size);
|
||||
internal delegate void glTexStorage2DMultisample(uint target, int samples, uint internalformat, int width, int height, bool fixedsamplelocations);
|
||||
internal delegate void glTexStorage3DMultisample(uint target, int samples, uint internalformat, int width, int height, int depth, bool fixedsamplelocations);
|
||||
internal delegate void glTextureView(uint texture, uint target, uint origtexture, uint internalformat, uint minlevel, uint numlevels, uint minlayer, uint numlayers);
|
||||
internal delegate void glBindVertexBuffer(uint bindingindex, uint buffer, int offset, int stride);
|
||||
internal delegate void glVertexAttribFormat(uint attribindex, int size, uint type, bool normalized, uint relativeoffset);
|
||||
internal delegate void glVertexAttribIFormat(uint attribindex, int size, uint type, uint relativeoffset);
|
||||
internal delegate void glVertexAttribLFormat(uint attribindex, int size, uint type, uint relativeoffset);
|
||||
internal delegate void glVertexAttribBinding(uint attribindex, uint bindingindex);
|
||||
internal delegate void glVertexBindingDivisor(uint bindingindex, uint divisor);
|
||||
internal delegate void glDebugMessageControl(uint source, uint type, uint severity, int count, uint[] ids, bool enabled);
|
||||
internal delegate void glDebugMessageInsert(uint source, uint type, uint id, uint severity, int length, byte[] buf);
|
||||
internal delegate void glDebugMessageCallback(IntPtr callback, IntPtr userParam);
|
||||
internal delegate uint glGetDebugMessageLog(uint count, int bufSize, uint[] sources, uint[] types, uint[] ids, uint[] severities, int[] lengths, byte[] messageLog);
|
||||
internal delegate void glPushDebugGroup(uint source, uint id, int length, byte[] message);
|
||||
internal delegate void glPopDebugGroup();
|
||||
internal delegate void glObjectLabel(uint identifier, uint name, int length, byte[] label);
|
||||
internal delegate void glGetObjectLabel(uint identifier, uint name, int bufSize, out int length, byte[] label);
|
||||
internal delegate void glObjectPtrLabel(IntPtr ptr, int length, byte[] label);
|
||||
internal delegate void glGetObjectPtrLabel(IntPtr ptr, int bufSize, int[] length, byte[] label);
|
||||
internal delegate void glBufferStorage(uint target, int size, IntPtr data, uint flags);
|
||||
internal delegate void glClearTexImage(uint texture, int level, uint format, uint type, IntPtr data);
|
||||
internal delegate void glClearTexSubImage(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, IntPtr data);
|
||||
internal delegate void glBindBuffersBase(uint target, uint first, int count, uint[] buffers);
|
||||
internal delegate void glBindBuffersRange(uint target, uint first, int count, uint[] buffers, int[] offsets, int[] sizes);
|
||||
internal delegate void glBindTextures(uint first, int count, uint[] textures);
|
||||
internal delegate void glBindSamplers(uint first, int count, uint[] samplers);
|
||||
internal delegate void glBindImageTextures(uint first, int count, uint[] textures);
|
||||
internal delegate void glBindVertexBuffers(uint first, int count, uint[] buffers, int offsets, int[] strides);
|
||||
internal delegate void glClipControl(uint origin, uint depth);
|
||||
internal delegate void glCreateTransformFeedbacks(int n, uint[] ids);
|
||||
internal delegate void glTransformFeedbackBufferBase(uint xfb, uint index, uint buffer);
|
||||
internal delegate void glTransformFeedbackBufferRange(uint xfb, uint index, uint buffer, int offset, int size);
|
||||
internal delegate void glGetTransformFeedbackiv(uint xfb, uint pname, int[] Param);
|
||||
internal delegate void glGetTransformFeedbacki_v(uint xfb, uint pname, uint index, int[] Param);
|
||||
internal delegate void glGetTransformFeedbacki64_v(uint xfb, uint pname, uint index, Int64[] Param);
|
||||
internal delegate void glCreateBuffers(int n, uint[] buffers);
|
||||
internal delegate void glNamedBufferStorage(uint buffer, int size, IntPtr data, uint flags);
|
||||
internal delegate void glNamedBufferData(uint buffer, int size, IntPtr data, uint usage);
|
||||
internal delegate void glNamedBufferSubData(uint buffer, int offset, int size, IntPtr data);
|
||||
internal delegate void glCopyNamedBufferSubData(uint readBuffer, uint writeBuffer, int readOffset, int writeOffset, int size);
|
||||
internal delegate void glClearNamedBufferData(uint buffer, uint internalformat, uint format, uint type, IntPtr data);
|
||||
internal delegate void glClearNamedBufferSubData(uint buffer, uint internalformat, int offset, int size, uint format, uint type, IntPtr data);
|
||||
internal delegate void glMapNamedBuffer(uint buffer, uint access);
|
||||
internal delegate void glMapNamedBufferRange(uint buffer, int offset, int length, uint access);
|
||||
internal delegate bool glUnmapNamedBuffer(uint buffer);
|
||||
internal delegate void glFlushMappedNamedBufferRange(uint buffer, int offset, int length);
|
||||
internal delegate void glGetNamedBufferParameteriv(uint buffer, uint pname, int[] Params);
|
||||
internal delegate void glGetNamedBufferParameteri64v(uint buffer, uint pname, Int64[] Params);
|
||||
internal delegate void glGetNamedBufferPointerv(uint buffer, uint pname, IntPtr[] Params);
|
||||
internal delegate void glGetNamedBufferSubData(uint buffer, int offset, int size, IntPtr data);
|
||||
internal delegate void glCreateFramebuffers(int n, uint[] framebuffers);
|
||||
internal delegate void glNamedFramebufferRenderbuffer(uint framebuffer, uint attachment, uint renderbuffertarget, uint renderbuffer);
|
||||
internal delegate void glNamedFramebufferParameteri(uint framebuffer, uint pname, int Param);
|
||||
internal delegate void glNamedFramebufferTexture(uint framebuffer, uint attachment, uint texture, int level);
|
||||
internal delegate void glNamedFramebufferTextureLayer(uint framebuffer, uint attachment, uint texture, int level, int layer);
|
||||
internal delegate void glNamedFramebufferDrawBuffer(uint framebuffer, uint buf);
|
||||
internal delegate void glNamedFramebufferDrawBuffers(uint framebuffer, int n, uint[] bufs);
|
||||
internal delegate void glNamedFramebufferReadBuffer(uint framebuffer, uint src);
|
||||
internal delegate void glInvalidateNamedFramebufferData(uint framebuffer, int numAttachments, uint[] attachments);
|
||||
internal delegate void glInvalidateNamedFramebufferSubData(uint framebuffer, int numAttachments, uint[] attachments, int x, int y, int width, int height);
|
||||
internal delegate void glClearNamedFramebufferiv(uint framebuffer, uint buffer, int drawbuffer, int[] value);
|
||||
internal delegate void glClearNamedFramebufferuiv(uint framebuffer, uint buffer, int drawbuffer, uint[] value);
|
||||
internal delegate void glClearNamedFramebufferfv(uint framebuffer, uint buffer, int drawbuffer, float[] value);
|
||||
internal delegate void glClearNamedFramebufferfi(uint framebuffer, uint buffer, int drawbuffer, float depth, int stencil);
|
||||
internal delegate void glBlitNamedFramebuffer(uint readFramebuffer, uint drawFramebuffer, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, uint mask, uint filter);
|
||||
internal delegate uint glCheckNamedFramebufferStatus(uint framebuffer, uint target);
|
||||
internal delegate void glGetNamedFramebufferParameteriv(uint framebuffer, uint pname, int[] Param);
|
||||
internal delegate void glGetNamedFramebufferAttachmentParameteriv(uint framebuffer, uint attachment, uint pname, int[] Params);
|
||||
internal delegate void glCreateRenderbuffers(int n, uint[] renderbuffers);
|
||||
internal delegate void glNamedRenderbufferStorage(uint renderbuffer, uint internalformat, int width, int height);
|
||||
internal delegate void glNamedRenderbufferStorageMultisample(uint renderbuffer, int samples, uint internalformat, int width, int height);
|
||||
internal delegate void glGetNamedRenderbufferParameteriv(uint renderbuffer, uint pname, int[] Params);
|
||||
internal delegate void glCreateTextures(uint target, int n, uint[] textures);
|
||||
internal delegate void glTextureBuffer(uint texture, uint internalformat, uint buffer);
|
||||
internal delegate void glTextureBufferRange(uint texture, uint internalformat, uint buffer, int offset, int size);
|
||||
internal delegate void glTextureStorage1D(uint texture, int levels, uint internalformat, int width);
|
||||
internal delegate void glTextureStorage2D(uint texture, int levels, uint internalformat, int width, int height);
|
||||
internal delegate void glTextureStorage3D(uint texture, int levels, uint internalformat, int width, int height, int depth);
|
||||
internal delegate void glTextureStorage2DMultisample(uint texture, int samples, uint internalformat, int width, int height, bool fixedsamplelocations);
|
||||
internal delegate void glTextureStorage3DMultisample(uint texture, int samples, uint internalformat, int width, int height, int depth, bool fixedsamplelocations);
|
||||
internal delegate void glTextureSubImage1D(uint texture, int level, int xoffset, int width, uint format, uint type, IntPtr pixels);
|
||||
internal delegate void glTextureSubImage2D(uint texture, int level, int xoffset, int yoffset, int width, int height, uint format, uint type, IntPtr pixels);
|
||||
internal delegate void glTextureSubImage3D(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, IntPtr pixels);
|
||||
internal delegate void glCompressedTextureSubImage1D(uint texture, int level, int xoffset, int width, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTextureSubImage2D(uint texture, int level, int xoffset, int yoffset, int width, int height, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glCompressedTextureSubImage3D(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, int imageSize, IntPtr data);
|
||||
internal delegate void glCopyTextureSubImage1D(uint texture, int level, int xoffset, int x, int y, int width);
|
||||
internal delegate void glCopyTextureSubImage2D(uint texture, int level, int xoffset, int yoffset, int x, int y, int width, int height);
|
||||
internal delegate void glCopyTextureSubImage3D(uint texture, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height);
|
||||
internal delegate void glTextureParameterf(uint texture, uint pname, float Param);
|
||||
internal delegate void glTextureParameterfv(uint texture, uint pname, float[] Param);
|
||||
internal delegate void glTextureParameteri(uint texture, uint pname, int Param);
|
||||
internal delegate void glTextureParameterIiv(uint texture, uint pname, int[] Params);
|
||||
internal delegate void glTextureParameterIuiv(uint texture, uint pname, uint[] Params);
|
||||
internal delegate void glTextureParameteriv(uint texture, uint pname, int[] Param);
|
||||
internal delegate void glGenerateTextureMipmap(uint texture);
|
||||
internal delegate void glBindTextureUnit(uint unit, uint texture);
|
||||
internal delegate void glGetTextureImage(uint texture, int level, uint format, uint type, int bufSize, IntPtr pixels);
|
||||
internal delegate void glGetCompressedTextureImage(uint texture, int level, int bufSize, IntPtr pixels);
|
||||
internal delegate void glGetTextureLevelParameterfv(uint texture, int level, uint pname, float[] Params);
|
||||
internal delegate void glGetTextureLevelParameteriv(uint texture, int level, uint pname, int[] Params);
|
||||
internal delegate void glGetTextureParameterfv(uint texture, uint pname, float[] Params);
|
||||
internal delegate void glGetTextureParameterIiv(uint texture, uint pname, int[] Params);
|
||||
internal delegate void glGetTextureParameterIuiv(uint texture, uint pname, uint[] Params);
|
||||
internal delegate void glGetTextureParameteriv(uint texture, uint pname, int[] Params);
|
||||
internal delegate void glCreateVertexArrays(int n, uint[] arrays);
|
||||
internal delegate void glDisableVertexArrayAttrib(uint vaobj, uint index);
|
||||
internal delegate void glEnableVertexArrayAttrib(uint vaobj, uint index);
|
||||
internal delegate void glVertexArrayElementBuffer(uint vaobj, uint buffer);
|
||||
internal delegate void glVertexArrayVertexBuffer(uint vaobj, uint bindingindex, uint buffer, int offset, int stride);
|
||||
internal delegate void glVertexArrayVertexBuffers(uint vaobj, uint first, int count, uint[] buffers, int[] offsets, int[] strides);
|
||||
internal delegate void glVertexArrayAttribBinding(uint vaobj, uint attribindex, uint bindingindex);
|
||||
internal delegate void glVertexArrayAttribFormat(uint vaobj, uint attribindex, int size, uint type, bool normalized, uint relativeoffset);
|
||||
internal delegate void glVertexArrayAttribIFormat(uint vaobj, uint attribindex, int size, uint type, uint relativeoffset);
|
||||
internal delegate void glVertexArrayAttribLFormat(uint vaobj, uint attribindex, int size, uint type, uint relativeoffset);
|
||||
internal delegate void glVertexArrayBindingDivisor(uint vaobj, uint bindingindex, uint divisor);
|
||||
internal delegate void glGetVertexArrayiv(uint vaobj, uint pname, int[] Param);
|
||||
internal delegate void glGetVertexArrayIndexediv(uint vaobj, uint index, uint pname, int[] Param);
|
||||
internal delegate void glGetVertexArrayIndexed64iv(uint vaobj, uint index, uint pname, Int64[] Param);
|
||||
internal delegate void glCreateSamplers(int n, uint[] samplers);
|
||||
internal delegate void glCreateProgramPipelines(int n, uint[] pipelines);
|
||||
internal delegate void glCreateQueries(uint target, int n, uint[] ids);
|
||||
internal delegate void glGetQueryBufferObjecti64v(uint id, uint buffer, uint pname, int offset);
|
||||
internal delegate void glGetQueryBufferObjectiv(uint id, uint buffer, uint pname, int offset);
|
||||
internal delegate void glGetQueryBufferObjectui64v(uint id, uint buffer, uint pname, int offset);
|
||||
internal delegate void glGetQueryBufferObjectuiv(uint id, uint buffer, uint pname, int offset);
|
||||
internal delegate void glMemoryBarrierByRegion(uint barriers);
|
||||
internal delegate void glGetTextureSubImage(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, uint format, uint type, int bufSize, IntPtr pixels);
|
||||
internal delegate void glGetCompressedTextureSubImage(uint texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, IntPtr pixels);
|
||||
internal delegate uint glGetGraphicsResetStatus();
|
||||
internal delegate void glGetnCompressedTexImage(uint target, int lod, int bufSize, IntPtr pixels);
|
||||
internal delegate void glGetnTexImage(uint target, int level, uint format, uint type, int bufSize, IntPtr pixels);
|
||||
internal delegate void glGetnUniformdv(uint program, int location, int bufSize, double[] Params);
|
||||
internal delegate void glGetnUniformfv(uint program, int location, int bufSize, float[] Params);
|
||||
internal delegate void glGetnUniformiv(uint program, int location, int bufSize, int[] Params);
|
||||
internal delegate void glGetnUniformuiv(uint program, int location, int bufSize, uint[] Params);
|
||||
internal delegate void glReadnPixels(int x, int y, int width, int height, uint format, uint type, int bufSize, IntPtr data);
|
||||
internal delegate void glTextureBarrier();
|
||||
internal delegate void glSpecializeShader(uint shader, byte[] pEntryPoint, uint numSpecializationConstants, uint[] pConstantIndex, uint[] pConstantValue);
|
||||
internal delegate void glMultiDrawArraysIndirectCount(uint mode, IntPtr indirect, int drawcount, int maxdrawcount, int stride);
|
||||
internal delegate void glMultiDrawElementsIndirectCount(uint mode, uint type, IntPtr indirect, int drawcount, int maxdrawcount, int stride);
|
||||
internal delegate void glPolygonOffsetClamp(float factor, float units, float clamp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,604 +0,0 @@
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
public partial class gl
|
||||
{
|
||||
internal static string[] extension_function_names = new string[]
|
||||
{
|
||||
"glDrawRangeElements",
|
||||
"glTexImage3D",
|
||||
"glTexSubImage3D",
|
||||
"glCopyTexSubImage3D",
|
||||
"glActiveTexture",
|
||||
"glSampleCoverage",
|
||||
"glCompressedTexImage3D",
|
||||
"glCompressedTexImage2D",
|
||||
"glCompressedTexImage1D",
|
||||
"glCompressedTexSubImage3D",
|
||||
"glCompressedTexSubImage2D",
|
||||
"glCompressedTexSubImage1D",
|
||||
"glGetCompressedTexImage",
|
||||
"glBlendFuncSeparate",
|
||||
"glMultiDrawArrays",
|
||||
"glMultiDrawElements",
|
||||
"glPointParameterf",
|
||||
"glPointParameterfv",
|
||||
"glPointParameteri",
|
||||
"glPointParameteriv",
|
||||
"glBlendColor",
|
||||
"glBlendEquation",
|
||||
"glGenQueries",
|
||||
"glDeleteQueries",
|
||||
"glIsQuery",
|
||||
"glBeginQuery",
|
||||
"glEndQuery",
|
||||
"glGetQueryiv",
|
||||
"glGetQueryObjectiv",
|
||||
"glGetQueryObjectuiv",
|
||||
"glBindBuffer",
|
||||
"glDeleteBuffers",
|
||||
"glGenBuffers",
|
||||
"glIsBuffer",
|
||||
"glBufferData",
|
||||
"glBufferSubData",
|
||||
"glGetBufferSubData",
|
||||
"glMapBuffer",
|
||||
"glUnmapBuffer",
|
||||
"glGetBufferParameteriv",
|
||||
"glGetBufferPointerv",
|
||||
"glBlendEquationSeparate",
|
||||
"glDrawBuffers",
|
||||
"glStencilOpSeparate",
|
||||
"glStencilFuncSeparate",
|
||||
"glStencilMaskSeparate",
|
||||
"glAttachShader",
|
||||
"glBindAttribLocation",
|
||||
"glCompileShader",
|
||||
"glCreateProgram",
|
||||
"glCreateShader",
|
||||
"glDeleteProgram",
|
||||
"glDeleteShader",
|
||||
"glDetachShader",
|
||||
"glDisableVertexAttribArray",
|
||||
"glEnableVertexAttribArray",
|
||||
"glGetActiveAttrib",
|
||||
"glGetActiveUniform",
|
||||
"glGetAttachedShaders",
|
||||
"glGetAttribLocation",
|
||||
"glGetProgramiv",
|
||||
"glGetProgramInfoLog",
|
||||
"glGetShaderiv",
|
||||
"glGetShaderInfoLog",
|
||||
"glGetShaderSource",
|
||||
"glGetUniformLocation",
|
||||
"glGetUniformfv",
|
||||
"glGetUniformiv",
|
||||
"glGetVertexAttribdv",
|
||||
"glGetVertexAttribfv",
|
||||
"glGetVertexAttribiv",
|
||||
"glGetVertexAttribPointerv",
|
||||
"glIsProgram",
|
||||
"glIsShader",
|
||||
"glLinkProgram",
|
||||
"glShaderSource",
|
||||
"glUseProgram",
|
||||
"glUniform1f",
|
||||
"glUniform2f",
|
||||
"glUniform3f",
|
||||
"glUniform4f",
|
||||
"glUniform1i",
|
||||
"glUniform2i",
|
||||
"glUniform3i",
|
||||
"glUniform4i",
|
||||
"glUniform1fv",
|
||||
"glUniform2fv",
|
||||
"glUniform3fv",
|
||||
"glUniform4fv",
|
||||
"glUniform1iv",
|
||||
"glUniform2iv",
|
||||
"glUniform3iv",
|
||||
"glUniform4iv",
|
||||
"glUniformMatrix2fv",
|
||||
"glUniformMatrix3fv",
|
||||
"glUniformMatrix4fv",
|
||||
"glValidateProgram",
|
||||
"glVertexAttrib1d",
|
||||
"glVertexAttrib1dv",
|
||||
"glVertexAttrib1f",
|
||||
"glVertexAttrib1fv",
|
||||
"glVertexAttrib1s",
|
||||
"glVertexAttrib1sv",
|
||||
"glVertexAttrib2d",
|
||||
"glVertexAttrib2dv",
|
||||
"glVertexAttrib2f",
|
||||
"glVertexAttrib2fv",
|
||||
"glVertexAttrib2s",
|
||||
"glVertexAttrib2sv",
|
||||
"glVertexAttrib3d",
|
||||
"glVertexAttrib3dv",
|
||||
"glVertexAttrib3f",
|
||||
"glVertexAttrib3fv",
|
||||
"glVertexAttrib3s",
|
||||
"glVertexAttrib3sv",
|
||||
"glVertexAttrib4Nbv",
|
||||
"glVertexAttrib4Niv",
|
||||
"glVertexAttrib4Nsv",
|
||||
"glVertexAttrib4Nub",
|
||||
"glVertexAttrib4Nubv",
|
||||
"glVertexAttrib4Nuiv",
|
||||
"glVertexAttrib4Nusv",
|
||||
"glVertexAttrib4bv",
|
||||
"glVertexAttrib4d",
|
||||
"glVertexAttrib4dv",
|
||||
"glVertexAttrib4f",
|
||||
"glVertexAttrib4fv",
|
||||
"glVertexAttrib4iv",
|
||||
"glVertexAttrib4s",
|
||||
"glVertexAttrib4sv",
|
||||
"glVertexAttrib4ubv",
|
||||
"glVertexAttrib4uiv",
|
||||
"glVertexAttrib4usv",
|
||||
"glVertexAttribPointer",
|
||||
"glUniformMatrix2x3fv",
|
||||
"glUniformMatrix3x2fv",
|
||||
"glUniformMatrix2x4fv",
|
||||
"glUniformMatrix4x2fv",
|
||||
"glUniformMatrix3x4fv",
|
||||
"glUniformMatrix4x3fv",
|
||||
"glColorMaski",
|
||||
"glGetBooleani_v",
|
||||
"glGetIntegeri_v",
|
||||
"glEnablei",
|
||||
"glDisablei",
|
||||
"glIsEnabledi",
|
||||
"glBeginTransformFeedback",
|
||||
"glEndTransformFeedback",
|
||||
"glBindBufferRange",
|
||||
"glBindBufferBase",
|
||||
"glTransformFeedbackVaryings",
|
||||
"glGetTransformFeedbackVarying",
|
||||
"glClampColor",
|
||||
"glBeginConditionalRender",
|
||||
"glEndConditionalRender",
|
||||
"glVertexAttribIPointer",
|
||||
"glGetVertexAttribIiv",
|
||||
"glGetVertexAttribIuiv",
|
||||
"glVertexAttribI1i",
|
||||
"glVertexAttribI2i",
|
||||
"glVertexAttribI3i",
|
||||
"glVertexAttribI4i",
|
||||
"glVertexAttribI1ui",
|
||||
"glVertexAttribI2ui",
|
||||
"glVertexAttribI3ui",
|
||||
"glVertexAttribI4ui",
|
||||
"glVertexAttribI1iv",
|
||||
"glVertexAttribI2iv",
|
||||
"glVertexAttribI3iv",
|
||||
"glVertexAttribI4iv",
|
||||
"glVertexAttribI1uiv",
|
||||
"glVertexAttribI2uiv",
|
||||
"glVertexAttribI3uiv",
|
||||
"glVertexAttribI4uiv",
|
||||
"glVertexAttribI4bv",
|
||||
"glVertexAttribI4sv",
|
||||
"glVertexAttribI4ubv",
|
||||
"glVertexAttribI4usv",
|
||||
"glGetUniformuiv",
|
||||
"glBindFragDataLocation",
|
||||
"glGetFragDataLocation",
|
||||
"glUniform1ui",
|
||||
"glUniform2ui",
|
||||
"glUniform3ui",
|
||||
"glUniform4ui",
|
||||
"glUniform1uiv",
|
||||
"glUniform2uiv",
|
||||
"glUniform3uiv",
|
||||
"glUniform4uiv",
|
||||
"glTexParameterIiv",
|
||||
"glTexParameterIuiv",
|
||||
"glGetTexParameterIiv",
|
||||
"glGetTexParameterIuiv",
|
||||
"glClearBufferiv",
|
||||
"glClearBufferuiv",
|
||||
"glClearBufferfv",
|
||||
"glClearBufferfi",
|
||||
"glGetStringi",
|
||||
"glIsRenderbuffer",
|
||||
"glBindRenderbuffer",
|
||||
"glDeleteRenderbuffers",
|
||||
"glGenRenderbuffers",
|
||||
"glRenderbufferStorage",
|
||||
"glGetRenderbufferParameteriv",
|
||||
"glIsFramebuffer",
|
||||
"glBindFramebuffer",
|
||||
"glDeleteFramebuffers",
|
||||
"glGenFramebuffers",
|
||||
"glCheckFramebufferStatus",
|
||||
"glFramebufferTexture1D",
|
||||
"glFramebufferTexture2D",
|
||||
"glFramebufferTexture3D",
|
||||
"glFramebufferRenderbuffer",
|
||||
"glGetFramebufferAttachmentParameteriv",
|
||||
"glGenerateMipmap",
|
||||
"glBlitFramebuffer",
|
||||
"glRenderbufferStorageMultisample",
|
||||
"glFramebufferTextureLayer",
|
||||
"glMapBufferRange",
|
||||
"glFlushMappedBufferRange",
|
||||
"glBindVertexArray",
|
||||
"glDeleteVertexArrays",
|
||||
"glGenVertexArrays",
|
||||
"glIsVertexArray",
|
||||
"glDrawArraysInstanced",
|
||||
"glDrawElementsInstanced",
|
||||
"glTexBuffer",
|
||||
"glPrimitiveRestartIndex",
|
||||
"glCopyBufferSubData",
|
||||
"glGetUniformIndices",
|
||||
"glGetActiveUniformsiv",
|
||||
"glGetActiveUniformName",
|
||||
"glGetUniformBlockIndex",
|
||||
"glGetActiveUniformBlockiv",
|
||||
"glGetActiveUniformBlockName",
|
||||
"glUniformBlockBinding",
|
||||
"glDrawElementsBaseVertex",
|
||||
"glDrawRangeElementsBaseVertex",
|
||||
"glDrawElementsInstancedBaseVertex",
|
||||
"glMultiDrawElementsBaseVertex",
|
||||
"glProvokingVertex",
|
||||
"glFenceSync",
|
||||
"glIsSync",
|
||||
"glDeleteSync",
|
||||
"glClientWaitSync",
|
||||
"glWaitSync",
|
||||
"glGetInteger64v",
|
||||
"glGetSynciv",
|
||||
"glGetInteger64i_v",
|
||||
"glGetBufferParameteri64v",
|
||||
"glFramebufferTexture",
|
||||
"glTexImage2DMultisample",
|
||||
"glTexImage3DMultisample",
|
||||
"glGetMultisamplefv",
|
||||
"glSampleMaski",
|
||||
"glBindFragDataLocationIndexed",
|
||||
"glGetFragDataIndex",
|
||||
"glGenSamplers",
|
||||
"glDeleteSamplers",
|
||||
"glIsSampler",
|
||||
"glBindSampler",
|
||||
"glSamplerParameteri",
|
||||
"glSamplerParameteriv",
|
||||
"glSamplerParameterf",
|
||||
"glSamplerParameterfv",
|
||||
"glSamplerParameterIiv",
|
||||
"glSamplerParameterIuiv",
|
||||
"glGetSamplerParameteriv",
|
||||
"glGetSamplerParameterIiv",
|
||||
"glGetSamplerParameterfv",
|
||||
"glGetSamplerParameterIuiv",
|
||||
"glQueryCounter",
|
||||
"glGetQueryObjecti64v",
|
||||
"glGetQueryObjectui64v",
|
||||
"glVertexAttribDivisor",
|
||||
"glVertexAttribP1ui",
|
||||
"glVertexAttribP1uiv",
|
||||
"glVertexAttribP2ui",
|
||||
"glVertexAttribP2uiv",
|
||||
"glVertexAttribP3ui",
|
||||
"glVertexAttribP3uiv",
|
||||
"glVertexAttribP4ui",
|
||||
"glVertexAttribP4uiv",
|
||||
"glMinSampleShading",
|
||||
"glBlendEquationi",
|
||||
"glBlendEquationSeparatei",
|
||||
"glBlendFunci",
|
||||
"glBlendFuncSeparatei",
|
||||
"glDrawArraysIndirect",
|
||||
"glDrawElementsIndirect",
|
||||
"glUniform1d",
|
||||
"glUniform2d",
|
||||
"glUniform3d",
|
||||
"glUniform4d",
|
||||
"glUniform1dv",
|
||||
"glUniform2dv",
|
||||
"glUniform3dv",
|
||||
"glUniform4dv",
|
||||
"glUniformMatrix2dv",
|
||||
"glUniformMatrix3dv",
|
||||
"glUniformMatrix4dv",
|
||||
"glUniformMatrix2x3dv",
|
||||
"glUniformMatrix2x4dv",
|
||||
"glUniformMatrix3x2dv",
|
||||
"glUniformMatrix3x4dv",
|
||||
"glUniformMatrix4x2dv",
|
||||
"glUniformMatrix4x3dv",
|
||||
"glGetUniformdv",
|
||||
"glGetSubroutineUniformLocation",
|
||||
"glGetSubroutineIndex",
|
||||
"glGetActiveSubroutineUniformiv",
|
||||
"glGetActiveSubroutineUniformName",
|
||||
"glGetActiveSubroutineName",
|
||||
"glUniformSubroutinesuiv",
|
||||
"glGetUniformSubroutineuiv",
|
||||
"glGetProgramStageiv",
|
||||
"glPatchParameteri",
|
||||
"glPatchParameterfv",
|
||||
"glBindTransformFeedback",
|
||||
"glDeleteTransformFeedbacks",
|
||||
"glGenTransformFeedbacks",
|
||||
"glIsTransformFeedback",
|
||||
"glPauseTransformFeedback",
|
||||
"glResumeTransformFeedback",
|
||||
"glDrawTransformFeedback",
|
||||
"glDrawTransformFeedbackStream",
|
||||
"glBeginQueryIndexed",
|
||||
"glEndQueryIndexed",
|
||||
"glGetQueryIndexediv",
|
||||
"glReleaseShaderCompiler",
|
||||
"glShaderBinary",
|
||||
"glGetShaderPrecisionFormat",
|
||||
"glDepthRangef",
|
||||
"glClearDepthf",
|
||||
"glGetProgramBinary",
|
||||
"glProgramBinary",
|
||||
"glProgramParameteri",
|
||||
"glUseProgramStages",
|
||||
"glActiveShaderProgram",
|
||||
"glCreateShaderProgramv",
|
||||
"glBindProgramPipeline",
|
||||
"glDeleteProgramPipelines",
|
||||
"glGenProgramPipelines",
|
||||
"glIsProgramPipeline",
|
||||
"glGetProgramPipelineiv",
|
||||
"glProgramUniform1i",
|
||||
"glProgramUniform1iv",
|
||||
"glProgramUniform1f",
|
||||
"glProgramUniform1fv",
|
||||
"glProgramUniform1d",
|
||||
"glProgramUniform1dv",
|
||||
"glProgramUniform1ui",
|
||||
"glProgramUniform1uiv",
|
||||
"glProgramUniform2i",
|
||||
"glProgramUniform2iv",
|
||||
"glProgramUniform2f",
|
||||
"glProgramUniform2fv",
|
||||
"glProgramUniform2d",
|
||||
"glProgramUniform2dv",
|
||||
"glProgramUniform2ui",
|
||||
"glProgramUniform2uiv",
|
||||
"glProgramUniform3i",
|
||||
"glProgramUniform3iv",
|
||||
"glProgramUniform3f",
|
||||
"glProgramUniform3fv",
|
||||
"glProgramUniform3d",
|
||||
"glProgramUniform3dv",
|
||||
"glProgramUniform3ui",
|
||||
"glProgramUniform3uiv",
|
||||
"glProgramUniform4i",
|
||||
"glProgramUniform4iv",
|
||||
"glProgramUniform4f",
|
||||
"glProgramUniform4fv",
|
||||
"glProgramUniform4d",
|
||||
"glProgramUniform4dv",
|
||||
"glProgramUniform4ui",
|
||||
"glProgramUniform4uiv",
|
||||
"glProgramUniformMatrix2fv",
|
||||
"glProgramUniformMatrix3fv",
|
||||
"glProgramUniformMatrix4fv",
|
||||
"glProgramUniformMatrix2dv",
|
||||
"glProgramUniformMatrix3dv",
|
||||
"glProgramUniformMatrix4dv",
|
||||
"glProgramUniformMatrix2x3fv",
|
||||
"glProgramUniformMatrix3x2fv",
|
||||
"glProgramUniformMatrix2x4fv",
|
||||
"glProgramUniformMatrix4x2fv",
|
||||
"glProgramUniformMatrix3x4fv",
|
||||
"glProgramUniformMatrix4x3fv",
|
||||
"glProgramUniformMatrix2x3dv",
|
||||
"glProgramUniformMatrix3x2dv",
|
||||
"glProgramUniformMatrix2x4dv",
|
||||
"glProgramUniformMatrix4x2dv",
|
||||
"glProgramUniformMatrix3x4dv",
|
||||
"glProgramUniformMatrix4x3dv",
|
||||
"glValidateProgramPipeline",
|
||||
"glGetProgramPipelineInfoLog",
|
||||
"glVertexAttribL1d",
|
||||
"glVertexAttribL2d",
|
||||
"glVertexAttribL3d",
|
||||
"glVertexAttribL4d",
|
||||
"glVertexAttribL1dv",
|
||||
"glVertexAttribL2dv",
|
||||
"glVertexAttribL3dv",
|
||||
"glVertexAttribL4dv",
|
||||
"glVertexAttribLPointer",
|
||||
"glGetVertexAttribLdv",
|
||||
"glViewportArrayv",
|
||||
"glViewportIndexedf",
|
||||
"glViewportIndexedfv",
|
||||
"glScissorArrayv",
|
||||
"glScissorIndexed",
|
||||
"glScissorIndexedv",
|
||||
"glDepthRangeArrayv",
|
||||
"glDepthRangeIndexed",
|
||||
"glGetFloati_v",
|
||||
"glGetDoublei_v",
|
||||
"glDrawArraysInstancedBaseInstance",
|
||||
"glDrawElementsInstancedBaseInstance",
|
||||
"glDrawElementsInstancedBaseVertexBaseInstance",
|
||||
"glGetInternalformativ",
|
||||
"glGetActiveAtomicCounterBufferiv",
|
||||
"glBindImageTexture",
|
||||
"glMemoryBarrier",
|
||||
"glTexStorage1D",
|
||||
"glTexStorage2D",
|
||||
"glTexStorage3D",
|
||||
"glDrawTransformFeedbackInstanced",
|
||||
"glDrawTransformFeedbackStreamInstanced",
|
||||
"glClearBufferData",
|
||||
"glClearBufferSubData",
|
||||
"glDispatchCompute",
|
||||
"glDispatchComputeIndirect",
|
||||
"glCopyImageSubData",
|
||||
"glFramebufferParameteri",
|
||||
"glGetFramebufferParameteriv",
|
||||
"glGetInternalformati64v",
|
||||
"glInvalidateTexSubImage",
|
||||
"glInvalidateTexImage",
|
||||
"glInvalidateBufferSubData",
|
||||
"glInvalidateBufferData",
|
||||
"glInvalidateFramebuffer",
|
||||
"glInvalidateSubFramebuffer",
|
||||
"glMultiDrawArraysIndirect",
|
||||
"glMultiDrawElementsIndirect",
|
||||
"glGetProgramInterfaceiv",
|
||||
"glGetProgramResourceIndex",
|
||||
"glGetProgramResourceName",
|
||||
"glGetProgramResourceiv",
|
||||
"glGetProgramResourceLocation",
|
||||
"glGetProgramResourceLocationIndex",
|
||||
"glShaderStorageBlockBinding",
|
||||
"glTexBufferRange",
|
||||
"glTexStorage2DMultisample",
|
||||
"glTexStorage3DMultisample",
|
||||
"glTextureView",
|
||||
"glBindVertexBuffer",
|
||||
"glVertexAttribFormat",
|
||||
"glVertexAttribIFormat",
|
||||
"glVertexAttribLFormat",
|
||||
"glVertexAttribBinding",
|
||||
"glVertexBindingDivisor",
|
||||
"glDebugMessageControl",
|
||||
"glDebugMessageInsert",
|
||||
"glDebugMessageCallback",
|
||||
"glGetDebugMessageLog",
|
||||
"glPushDebugGroup",
|
||||
"glPopDebugGroup",
|
||||
"glObjectLabel",
|
||||
"glGetObjectLabel",
|
||||
"glObjectPtrLabel",
|
||||
"glGetObjectPtrLabel",
|
||||
"glBufferStorage",
|
||||
"glClearTexImage",
|
||||
"glClearTexSubImage",
|
||||
"glBindBuffersBase",
|
||||
"glBindBuffersRange",
|
||||
"glBindTextures",
|
||||
"glBindSamplers",
|
||||
"glBindImageTextures",
|
||||
"glBindVertexBuffers",
|
||||
"glClipControl",
|
||||
"glCreateTransformFeedbacks",
|
||||
"glTransformFeedbackBufferBase",
|
||||
"glTransformFeedbackBufferRange",
|
||||
"glGetTransformFeedbackiv",
|
||||
"glGetTransformFeedbacki_v",
|
||||
"glGetTransformFeedbacki64_v",
|
||||
"glCreateBuffers",
|
||||
"glNamedBufferStorage",
|
||||
"glNamedBufferData",
|
||||
"glNamedBufferSubData",
|
||||
"glCopyNamedBufferSubData",
|
||||
"glClearNamedBufferData",
|
||||
"glClearNamedBufferSubData",
|
||||
"glMapNamedBuffer",
|
||||
"glMapNamedBufferRange",
|
||||
"glUnmapNamedBuffer",
|
||||
"glFlushMappedNamedBufferRange",
|
||||
"glGetNamedBufferParameteriv",
|
||||
"glGetNamedBufferParameteri64v",
|
||||
"glGetNamedBufferPointerv",
|
||||
"glGetNamedBufferSubData",
|
||||
"glCreateFramebuffers",
|
||||
"glNamedFramebufferRenderbuffer",
|
||||
"glNamedFramebufferParameteri",
|
||||
"glNamedFramebufferTexture",
|
||||
"glNamedFramebufferTextureLayer",
|
||||
"glNamedFramebufferDrawBuffer",
|
||||
"glNamedFramebufferDrawBuffers",
|
||||
"glNamedFramebufferReadBuffer",
|
||||
"glInvalidateNamedFramebufferData",
|
||||
"glInvalidateNamedFramebufferSubData",
|
||||
"glClearNamedFramebufferiv",
|
||||
"glClearNamedFramebufferuiv",
|
||||
"glClearNamedFramebufferfv",
|
||||
"glClearNamedFramebufferfi",
|
||||
"glBlitNamedFramebuffer",
|
||||
"glCheckNamedFramebufferStatus",
|
||||
"glGetNamedFramebufferParameteriv",
|
||||
"glGetNamedFramebufferAttachmentParameteriv",
|
||||
"glCreateRenderbuffers",
|
||||
"glNamedRenderbufferStorage",
|
||||
"glNamedRenderbufferStorageMultisample",
|
||||
"glGetNamedRenderbufferParameteriv",
|
||||
"glCreateTextures",
|
||||
"glTextureBuffer",
|
||||
"glTextureBufferRange",
|
||||
"glTextureStorage1D",
|
||||
"glTextureStorage2D",
|
||||
"glTextureStorage3D",
|
||||
"glTextureStorage2DMultisample",
|
||||
"glTextureStorage3DMultisample",
|
||||
"glTextureSubImage1D",
|
||||
"glTextureSubImage2D",
|
||||
"glTextureSubImage3D",
|
||||
"glCompressedTextureSubImage1D",
|
||||
"glCompressedTextureSubImage2D",
|
||||
"glCompressedTextureSubImage3D",
|
||||
"glCopyTextureSubImage1D",
|
||||
"glCopyTextureSubImage2D",
|
||||
"glCopyTextureSubImage3D",
|
||||
"glTextureParameterf",
|
||||
"glTextureParameterfv",
|
||||
"glTextureParameteri",
|
||||
"glTextureParameterIiv",
|
||||
"glTextureParameterIuiv",
|
||||
"glTextureParameteriv",
|
||||
"glGenerateTextureMipmap",
|
||||
"glBindTextureUnit",
|
||||
"glGetTextureImage",
|
||||
"glGetCompressedTextureImage",
|
||||
"glGetTextureLevelParameterfv",
|
||||
"glGetTextureLevelParameteriv",
|
||||
"glGetTextureParameterfv",
|
||||
"glGetTextureParameterIiv",
|
||||
"glGetTextureParameterIuiv",
|
||||
"glGetTextureParameteriv",
|
||||
"glCreateVertexArrays",
|
||||
"glDisableVertexArrayAttrib",
|
||||
"glEnableVertexArrayAttrib",
|
||||
"glVertexArrayElementBuffer",
|
||||
"glVertexArrayVertexBuffer",
|
||||
"glVertexArrayVertexBuffers",
|
||||
"glVertexArrayAttribBinding",
|
||||
"glVertexArrayAttribFormat",
|
||||
"glVertexArrayAttribIFormat",
|
||||
"glVertexArrayAttribLFormat",
|
||||
"glVertexArrayBindingDivisor",
|
||||
"glGetVertexArrayiv",
|
||||
"glGetVertexArrayIndexediv",
|
||||
"glGetVertexArrayIndexed64iv",
|
||||
"glCreateSamplers",
|
||||
"glCreateProgramPipelines",
|
||||
"glCreateQueries",
|
||||
"glGetQueryBufferObjecti64v",
|
||||
"glGetQueryBufferObjectiv",
|
||||
"glGetQueryBufferObjectui64v",
|
||||
"glGetQueryBufferObjectuiv",
|
||||
"glMemoryBarrierByRegion",
|
||||
"glGetTextureSubImage",
|
||||
"glGetCompressedTextureSubImage",
|
||||
"glGetGraphicsResetStatus",
|
||||
"glGetnCompressedTexImage",
|
||||
"glGetnTexImage",
|
||||
"glGetnUniformdv",
|
||||
"glGetnUniformfv",
|
||||
"glGetnUniformiv",
|
||||
"glGetnUniformuiv",
|
||||
"glReadnPixels",
|
||||
"glTextureBarrier",
|
||||
"glSpecializeShader",
|
||||
"glMultiDrawArraysIndirectCount",
|
||||
"glMultiDrawElementsIndirectCount",
|
||||
"glPolygonOffsetClamp"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,608 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
internal class GLexFunc_table
|
||||
{
|
||||
internal readonly gl.glDrawRangeElements glDrawRangeElements;
|
||||
internal readonly gl.glTexImage3D glTexImage3D;
|
||||
internal readonly gl.glTexSubImage3D glTexSubImage3D;
|
||||
internal readonly gl.glCopyTexSubImage3D glCopyTexSubImage3D;
|
||||
internal readonly gl.glActiveTexture glActiveTexture;
|
||||
internal readonly gl.glSampleCoverage glSampleCoverage;
|
||||
internal readonly gl.glCompressedTexImage3D glCompressedTexImage3D;
|
||||
internal readonly gl.glCompressedTexImage2D glCompressedTexImage2D;
|
||||
internal readonly gl.glCompressedTexImage1D glCompressedTexImage1D;
|
||||
internal readonly gl.glCompressedTexSubImage3D glCompressedTexSubImage3D;
|
||||
internal readonly gl.glCompressedTexSubImage2D glCompressedTexSubImage2D;
|
||||
internal readonly gl.glCompressedTexSubImage1D glCompressedTexSubImage1D;
|
||||
internal readonly gl.glGetCompressedTexImage glGetCompressedTexImage;
|
||||
internal readonly gl.glBlendFuncSeparate glBlendFuncSeparate;
|
||||
internal readonly gl.glMultiDrawArrays glMultiDrawArrays;
|
||||
internal readonly gl.glMultiDrawElements glMultiDrawElements;
|
||||
internal readonly gl.glPointParameterf glPointParameterf;
|
||||
internal readonly gl.glPointParameterfv glPointParameterfv;
|
||||
internal readonly gl.glPointParameteri glPointParameteri;
|
||||
internal readonly gl.glPointParameteriv glPointParameteriv;
|
||||
internal readonly gl.glBlendColor glBlendColor;
|
||||
internal readonly gl.glBlendEquation glBlendEquation;
|
||||
internal readonly gl.glGenQueries glGenQueries;
|
||||
internal readonly gl.glDeleteQueries glDeleteQueries;
|
||||
internal readonly gl.glIsQuery glIsQuery;
|
||||
internal readonly gl.glBeginQuery glBeginQuery;
|
||||
internal readonly gl.glEndQuery glEndQuery;
|
||||
internal readonly gl.glGetQueryiv glGetQueryiv;
|
||||
internal readonly gl.glGetQueryObjectiv glGetQueryObjectiv;
|
||||
internal readonly gl.glGetQueryObjectuiv glGetQueryObjectuiv;
|
||||
internal readonly gl.glBindBuffer glBindBuffer;
|
||||
internal readonly gl.glDeleteBuffers glDeleteBuffers;
|
||||
internal readonly gl.glGenBuffers glGenBuffers;
|
||||
internal readonly gl.glIsBuffer glIsBuffer;
|
||||
internal readonly gl.glBufferData glBufferData;
|
||||
internal readonly gl.glBufferSubData glBufferSubData;
|
||||
internal readonly gl.glGetBufferSubData glGetBufferSubData;
|
||||
internal readonly gl.glMapBuffer glMapBuffer;
|
||||
internal readonly gl.glUnmapBuffer glUnmapBuffer;
|
||||
internal readonly gl.glGetBufferParameteriv glGetBufferParameteriv;
|
||||
internal readonly gl.glGetBufferPointerv glGetBufferPointerv;
|
||||
internal readonly gl.glBlendEquationSeparate glBlendEquationSeparate;
|
||||
internal readonly gl.glDrawBuffers glDrawBuffers;
|
||||
internal readonly gl.glStencilOpSeparate glStencilOpSeparate;
|
||||
internal readonly gl.glStencilFuncSeparate glStencilFuncSeparate;
|
||||
internal readonly gl.glStencilMaskSeparate glStencilMaskSeparate;
|
||||
internal readonly gl.glAttachShader glAttachShader;
|
||||
internal readonly gl.glBindAttribLocation glBindAttribLocation;
|
||||
internal readonly gl.glCompileShader glCompileShader;
|
||||
internal readonly gl.glCreateProgram glCreateProgram;
|
||||
internal readonly gl.glCreateShader glCreateShader;
|
||||
internal readonly gl.glDeleteProgram glDeleteProgram;
|
||||
internal readonly gl.glDeleteShader glDeleteShader;
|
||||
internal readonly gl.glDetachShader glDetachShader;
|
||||
internal readonly gl.glDisableVertexAttribArray glDisableVertexAttribArray;
|
||||
internal readonly gl.glEnableVertexAttribArray glEnableVertexAttribArray;
|
||||
internal readonly gl.glGetActiveAttrib glGetActiveAttrib;
|
||||
internal readonly gl.glGetActiveUniform glGetActiveUniform;
|
||||
internal readonly gl.glGetAttachedShaders glGetAttachedShaders;
|
||||
internal readonly gl.glGetAttribLocation glGetAttribLocation;
|
||||
internal readonly gl.glGetProgramiv glGetProgramiv;
|
||||
internal readonly gl.glGetProgramInfoLog glGetProgramInfoLog;
|
||||
internal readonly gl.glGetShaderiv glGetShaderiv;
|
||||
internal readonly gl.glGetShaderInfoLog glGetShaderInfoLog;
|
||||
internal readonly gl.glGetShaderSource glGetShaderSource;
|
||||
internal readonly gl.glGetUniformLocation glGetUniformLocation;
|
||||
internal readonly gl.glGetUniformfv glGetUniformfv;
|
||||
internal readonly gl.glGetUniformiv glGetUniformiv;
|
||||
internal readonly gl.glGetVertexAttribdv glGetVertexAttribdv;
|
||||
internal readonly gl.glGetVertexAttribfv glGetVertexAttribfv;
|
||||
internal readonly gl.glGetVertexAttribiv glGetVertexAttribiv;
|
||||
internal readonly gl.glGetVertexAttribPointerv glGetVertexAttribPointerv;
|
||||
internal readonly gl.glIsProgram glIsProgram;
|
||||
internal readonly gl.glIsShader glIsShader;
|
||||
internal readonly gl.glLinkProgram glLinkProgram;
|
||||
internal readonly gl.glShaderSource glShaderSource;
|
||||
internal readonly gl.glUseProgram glUseProgram;
|
||||
internal readonly gl.glUniform1f glUniform1f;
|
||||
internal readonly gl.glUniform2f glUniform2f;
|
||||
internal readonly gl.glUniform3f glUniform3f;
|
||||
internal readonly gl.glUniform4f glUniform4f;
|
||||
internal readonly gl.glUniform1i glUniform1i;
|
||||
internal readonly gl.glUniform2i glUniform2i;
|
||||
internal readonly gl.glUniform3i glUniform3i;
|
||||
internal readonly gl.glUniform4i glUniform4i;
|
||||
internal readonly gl.glUniform1fv glUniform1fv;
|
||||
internal readonly gl.glUniform2fv glUniform2fv;
|
||||
internal readonly gl.glUniform3fv glUniform3fv;
|
||||
internal readonly gl.glUniform4fv glUniform4fv;
|
||||
internal readonly gl.glUniform1iv glUniform1iv;
|
||||
internal readonly gl.glUniform2iv glUniform2iv;
|
||||
internal readonly gl.glUniform3iv glUniform3iv;
|
||||
internal readonly gl.glUniform4iv glUniform4iv;
|
||||
internal readonly gl.glUniformMatrix2fv glUniformMatrix2fv;
|
||||
internal readonly gl.glUniformMatrix3fv glUniformMatrix3fv;
|
||||
internal readonly gl.glUniformMatrix4fv glUniformMatrix4fv;
|
||||
internal readonly gl.glValidateProgram glValidateProgram;
|
||||
internal readonly gl.glVertexAttrib1d glVertexAttrib1d;
|
||||
internal readonly gl.glVertexAttrib1dv glVertexAttrib1dv;
|
||||
internal readonly gl.glVertexAttrib1f glVertexAttrib1f;
|
||||
internal readonly gl.glVertexAttrib1fv glVertexAttrib1fv;
|
||||
internal readonly gl.glVertexAttrib1s glVertexAttrib1s;
|
||||
internal readonly gl.glVertexAttrib1sv glVertexAttrib1sv;
|
||||
internal readonly gl.glVertexAttrib2d glVertexAttrib2d;
|
||||
internal readonly gl.glVertexAttrib2dv glVertexAttrib2dv;
|
||||
internal readonly gl.glVertexAttrib2f glVertexAttrib2f;
|
||||
internal readonly gl.glVertexAttrib2fv glVertexAttrib2fv;
|
||||
internal readonly gl.glVertexAttrib2s glVertexAttrib2s;
|
||||
internal readonly gl.glVertexAttrib2sv glVertexAttrib2sv;
|
||||
internal readonly gl.glVertexAttrib3d glVertexAttrib3d;
|
||||
internal readonly gl.glVertexAttrib3dv glVertexAttrib3dv;
|
||||
internal readonly gl.glVertexAttrib3f glVertexAttrib3f;
|
||||
internal readonly gl.glVertexAttrib3fv glVertexAttrib3fv;
|
||||
internal readonly gl.glVertexAttrib3s glVertexAttrib3s;
|
||||
internal readonly gl.glVertexAttrib3sv glVertexAttrib3sv;
|
||||
internal readonly gl.glVertexAttrib4Nbv glVertexAttrib4Nbv;
|
||||
internal readonly gl.glVertexAttrib4Niv glVertexAttrib4Niv;
|
||||
internal readonly gl.glVertexAttrib4Nsv glVertexAttrib4Nsv;
|
||||
internal readonly gl.glVertexAttrib4Nub glVertexAttrib4Nub;
|
||||
internal readonly gl.glVertexAttrib4Nubv glVertexAttrib4Nubv;
|
||||
internal readonly gl.glVertexAttrib4Nuiv glVertexAttrib4Nuiv;
|
||||
internal readonly gl.glVertexAttrib4Nusv glVertexAttrib4Nusv;
|
||||
internal readonly gl.glVertexAttrib4bv glVertexAttrib4bv;
|
||||
internal readonly gl.glVertexAttrib4d glVertexAttrib4d;
|
||||
internal readonly gl.glVertexAttrib4dv glVertexAttrib4dv;
|
||||
internal readonly gl.glVertexAttrib4f glVertexAttrib4f;
|
||||
internal readonly gl.glVertexAttrib4fv glVertexAttrib4fv;
|
||||
internal readonly gl.glVertexAttrib4iv glVertexAttrib4iv;
|
||||
internal readonly gl.glVertexAttrib4s glVertexAttrib4s;
|
||||
internal readonly gl.glVertexAttrib4sv glVertexAttrib4sv;
|
||||
internal readonly gl.glVertexAttrib4ubv glVertexAttrib4ubv;
|
||||
internal readonly gl.glVertexAttrib4uiv glVertexAttrib4uiv;
|
||||
internal readonly gl.glVertexAttrib4usv glVertexAttrib4usv;
|
||||
internal readonly gl.glVertexAttribPointer glVertexAttribPointer;
|
||||
internal readonly gl.glUniformMatrix2x3fv glUniformMatrix2x3fv;
|
||||
internal readonly gl.glUniformMatrix3x2fv glUniformMatrix3x2fv;
|
||||
internal readonly gl.glUniformMatrix2x4fv glUniformMatrix2x4fv;
|
||||
internal readonly gl.glUniformMatrix4x2fv glUniformMatrix4x2fv;
|
||||
internal readonly gl.glUniformMatrix3x4fv glUniformMatrix3x4fv;
|
||||
internal readonly gl.glUniformMatrix4x3fv glUniformMatrix4x3fv;
|
||||
internal readonly gl.glColorMaski glColorMaski;
|
||||
internal readonly gl.glGetBooleani_v glGetBooleani_v;
|
||||
internal readonly gl.glGetIntegeri_v glGetIntegeri_v;
|
||||
internal readonly gl.glEnablei glEnablei;
|
||||
internal readonly gl.glDisablei glDisablei;
|
||||
internal readonly gl.glIsEnabledi glIsEnabledi;
|
||||
internal readonly gl.glBeginTransformFeedback glBeginTransformFeedback;
|
||||
internal readonly gl.glEndTransformFeedback glEndTransformFeedback;
|
||||
internal readonly gl.glBindBufferRange glBindBufferRange;
|
||||
internal readonly gl.glBindBufferBase glBindBufferBase;
|
||||
internal readonly gl.glTransformFeedbackVaryings glTransformFeedbackVaryings;
|
||||
internal readonly gl.glGetTransformFeedbackVarying glGetTransformFeedbackVarying;
|
||||
internal readonly gl.glClampColor glClampColor;
|
||||
internal readonly gl.glBeginConditionalRender glBeginConditionalRender;
|
||||
internal readonly gl.glEndConditionalRender glEndConditionalRender;
|
||||
internal readonly gl.glVertexAttribIPointer glVertexAttribIPointer;
|
||||
internal readonly gl.glGetVertexAttribIiv glGetVertexAttribIiv;
|
||||
internal readonly gl.glGetVertexAttribIuiv glGetVertexAttribIuiv;
|
||||
internal readonly gl.glVertexAttribI1i glVertexAttribI1i;
|
||||
internal readonly gl.glVertexAttribI2i glVertexAttribI2i;
|
||||
internal readonly gl.glVertexAttribI3i glVertexAttribI3i;
|
||||
internal readonly gl.glVertexAttribI4i glVertexAttribI4i;
|
||||
internal readonly gl.glVertexAttribI1ui glVertexAttribI1ui;
|
||||
internal readonly gl.glVertexAttribI2ui glVertexAttribI2ui;
|
||||
internal readonly gl.glVertexAttribI3ui glVertexAttribI3ui;
|
||||
internal readonly gl.glVertexAttribI4ui glVertexAttribI4ui;
|
||||
internal readonly gl.glVertexAttribI1iv glVertexAttribI1iv;
|
||||
internal readonly gl.glVertexAttribI2iv glVertexAttribI2iv;
|
||||
internal readonly gl.glVertexAttribI3iv glVertexAttribI3iv;
|
||||
internal readonly gl.glVertexAttribI4iv glVertexAttribI4iv;
|
||||
internal readonly gl.glVertexAttribI1uiv glVertexAttribI1uiv;
|
||||
internal readonly gl.glVertexAttribI2uiv glVertexAttribI2uiv;
|
||||
internal readonly gl.glVertexAttribI3uiv glVertexAttribI3uiv;
|
||||
internal readonly gl.glVertexAttribI4uiv glVertexAttribI4uiv;
|
||||
internal readonly gl.glVertexAttribI4bv glVertexAttribI4bv;
|
||||
internal readonly gl.glVertexAttribI4sv glVertexAttribI4sv;
|
||||
internal readonly gl.glVertexAttribI4ubv glVertexAttribI4ubv;
|
||||
internal readonly gl.glVertexAttribI4usv glVertexAttribI4usv;
|
||||
internal readonly gl.glGetUniformuiv glGetUniformuiv;
|
||||
internal readonly gl.glBindFragDataLocation glBindFragDataLocation;
|
||||
internal readonly gl.glGetFragDataLocation glGetFragDataLocation;
|
||||
internal readonly gl.glUniform1ui glUniform1ui;
|
||||
internal readonly gl.glUniform2ui glUniform2ui;
|
||||
internal readonly gl.glUniform3ui glUniform3ui;
|
||||
internal readonly gl.glUniform4ui glUniform4ui;
|
||||
internal readonly gl.glUniform1uiv glUniform1uiv;
|
||||
internal readonly gl.glUniform2uiv glUniform2uiv;
|
||||
internal readonly gl.glUniform3uiv glUniform3uiv;
|
||||
internal readonly gl.glUniform4uiv glUniform4uiv;
|
||||
internal readonly gl.glTexParameterIiv glTexParameterIiv;
|
||||
internal readonly gl.glTexParameterIuiv glTexParameterIuiv;
|
||||
internal readonly gl.glGetTexParameterIiv glGetTexParameterIiv;
|
||||
internal readonly gl.glGetTexParameterIuiv glGetTexParameterIuiv;
|
||||
internal readonly gl.glClearBufferiv glClearBufferiv;
|
||||
internal readonly gl.glClearBufferuiv glClearBufferuiv;
|
||||
internal readonly gl.glClearBufferfv glClearBufferfv;
|
||||
internal readonly gl.glClearBufferfi glClearBufferfi;
|
||||
internal readonly gl.glGetStringi glGetStringi;
|
||||
internal readonly gl.glIsRenderbuffer glIsRenderbuffer;
|
||||
internal readonly gl.glBindRenderbuffer glBindRenderbuffer;
|
||||
internal readonly gl.glDeleteRenderbuffers glDeleteRenderbuffers;
|
||||
internal readonly gl.glGenRenderbuffers glGenRenderbuffers;
|
||||
internal readonly gl.glRenderbufferStorage glRenderbufferStorage;
|
||||
internal readonly gl.glGetRenderbufferParameteriv glGetRenderbufferParameteriv;
|
||||
internal readonly gl.glIsFramebuffer glIsFramebuffer;
|
||||
internal readonly gl.glBindFramebuffer glBindFramebuffer;
|
||||
internal readonly gl.glDeleteFramebuffers glDeleteFramebuffers;
|
||||
internal readonly gl.glGenFramebuffers glGenFramebuffers;
|
||||
internal readonly gl.glCheckFramebufferStatus glCheckFramebufferStatus;
|
||||
internal readonly gl.glFramebufferTexture1D glFramebufferTexture1D;
|
||||
internal readonly gl.glFramebufferTexture2D glFramebufferTexture2D;
|
||||
internal readonly gl.glFramebufferTexture3D glFramebufferTexture3D;
|
||||
internal readonly gl.glFramebufferRenderbuffer glFramebufferRenderbuffer;
|
||||
internal readonly gl.glGetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv;
|
||||
internal readonly gl.glGenerateMipmap glGenerateMipmap;
|
||||
internal readonly gl.glBlitFramebuffer glBlitFramebuffer;
|
||||
internal readonly gl.glRenderbufferStorageMultisample glRenderbufferStorageMultisample;
|
||||
internal readonly gl.glFramebufferTextureLayer glFramebufferTextureLayer;
|
||||
internal readonly gl.glMapBufferRange glMapBufferRange;
|
||||
internal readonly gl.glFlushMappedBufferRange glFlushMappedBufferRange;
|
||||
internal readonly gl.glBindVertexArray glBindVertexArray;
|
||||
internal readonly gl.glDeleteVertexArrays glDeleteVertexArrays;
|
||||
internal readonly gl.glGenVertexArrays glGenVertexArrays;
|
||||
internal readonly gl.glIsVertexArray glIsVertexArray;
|
||||
internal readonly gl.glDrawArraysInstanced glDrawArraysInstanced;
|
||||
internal readonly gl.glDrawElementsInstanced glDrawElementsInstanced;
|
||||
internal readonly gl.glTexBuffer glTexBuffer;
|
||||
internal readonly gl.glPrimitiveRestartIndex glPrimitiveRestartIndex;
|
||||
internal readonly gl.glCopyBufferSubData glCopyBufferSubData;
|
||||
internal readonly gl.glGetUniformIndices glGetUniformIndices;
|
||||
internal readonly gl.glGetActiveUniformsiv glGetActiveUniformsiv;
|
||||
internal readonly gl.glGetActiveUniformName glGetActiveUniformName;
|
||||
internal readonly gl.glGetUniformBlockIndex glGetUniformBlockIndex;
|
||||
internal readonly gl.glGetActiveUniformBlockiv glGetActiveUniformBlockiv;
|
||||
internal readonly gl.glGetActiveUniformBlockName glGetActiveUniformBlockName;
|
||||
internal readonly gl.glUniformBlockBinding glUniformBlockBinding;
|
||||
internal readonly gl.glDrawElementsBaseVertex glDrawElementsBaseVertex;
|
||||
internal readonly gl.glDrawRangeElementsBaseVertex glDrawRangeElementsBaseVertex;
|
||||
internal readonly gl.glDrawElementsInstancedBaseVertex glDrawElementsInstancedBaseVertex;
|
||||
internal readonly gl.glMultiDrawElementsBaseVertex glMultiDrawElementsBaseVertex;
|
||||
internal readonly gl.glProvokingVertex glProvokingVertex;
|
||||
internal readonly gl.glFenceSync glFenceSync;
|
||||
internal readonly gl.glIsSync glIsSync;
|
||||
internal readonly gl.glDeleteSync glDeleteSync;
|
||||
internal readonly gl.glClientWaitSync glClientWaitSync;
|
||||
internal readonly gl.glWaitSync glWaitSync;
|
||||
internal readonly gl.glGetInteger64v glGetInteger64v;
|
||||
internal readonly gl.glGetSynciv glGetSynciv;
|
||||
internal readonly gl.glGetInteger64i_v glGetInteger64i_v;
|
||||
internal readonly gl.glGetBufferParameteri64v glGetBufferParameteri64v;
|
||||
internal readonly gl.glFramebufferTexture glFramebufferTexture;
|
||||
internal readonly gl.glTexImage2DMultisample glTexImage2DMultisample;
|
||||
internal readonly gl.glTexImage3DMultisample glTexImage3DMultisample;
|
||||
internal readonly gl.glGetMultisamplefv glGetMultisamplefv;
|
||||
internal readonly gl.glSampleMaski glSampleMaski;
|
||||
internal readonly gl.glBindFragDataLocationIndexed glBindFragDataLocationIndexed;
|
||||
internal readonly gl.glGetFragDataIndex glGetFragDataIndex;
|
||||
internal readonly gl.glGenSamplers glGenSamplers;
|
||||
internal readonly gl.glDeleteSamplers glDeleteSamplers;
|
||||
internal readonly gl.glIsSampler glIsSampler;
|
||||
internal readonly gl.glBindSampler glBindSampler;
|
||||
internal readonly gl.glSamplerParameteri glSamplerParameteri;
|
||||
internal readonly gl.glSamplerParameteriv glSamplerParameteriv;
|
||||
internal readonly gl.glSamplerParameterf glSamplerParameterf;
|
||||
internal readonly gl.glSamplerParameterfv glSamplerParameterfv;
|
||||
internal readonly gl.glSamplerParameterIiv glSamplerParameterIiv;
|
||||
internal readonly gl.glSamplerParameterIuiv glSamplerParameterIuiv;
|
||||
internal readonly gl.glGetSamplerParameteriv glGetSamplerParameteriv;
|
||||
internal readonly gl.glGetSamplerParameterIiv glGetSamplerParameterIiv;
|
||||
internal readonly gl.glGetSamplerParameterfv glGetSamplerParameterfv;
|
||||
internal readonly gl.glGetSamplerParameterIuiv glGetSamplerParameterIuiv;
|
||||
internal readonly gl.glQueryCounter glQueryCounter;
|
||||
internal readonly gl.glGetQueryObjecti64v glGetQueryObjecti64v;
|
||||
internal readonly gl.glGetQueryObjectui64v glGetQueryObjectui64v;
|
||||
internal readonly gl.glVertexAttribDivisor glVertexAttribDivisor;
|
||||
internal readonly gl.glVertexAttribP1ui glVertexAttribP1ui;
|
||||
internal readonly gl.glVertexAttribP1uiv glVertexAttribP1uiv;
|
||||
internal readonly gl.glVertexAttribP2ui glVertexAttribP2ui;
|
||||
internal readonly gl.glVertexAttribP2uiv glVertexAttribP2uiv;
|
||||
internal readonly gl.glVertexAttribP3ui glVertexAttribP3ui;
|
||||
internal readonly gl.glVertexAttribP3uiv glVertexAttribP3uiv;
|
||||
internal readonly gl.glVertexAttribP4ui glVertexAttribP4ui;
|
||||
internal readonly gl.glVertexAttribP4uiv glVertexAttribP4uiv;
|
||||
internal readonly gl.glMinSampleShading glMinSampleShading;
|
||||
internal readonly gl.glBlendEquationi glBlendEquationi;
|
||||
internal readonly gl.glBlendEquationSeparatei glBlendEquationSeparatei;
|
||||
internal readonly gl.glBlendFunci glBlendFunci;
|
||||
internal readonly gl.glBlendFuncSeparatei glBlendFuncSeparatei;
|
||||
internal readonly gl.glDrawArraysIndirect glDrawArraysIndirect;
|
||||
internal readonly gl.glDrawElementsIndirect glDrawElementsIndirect;
|
||||
internal readonly gl.glUniform1d glUniform1d;
|
||||
internal readonly gl.glUniform2d glUniform2d;
|
||||
internal readonly gl.glUniform3d glUniform3d;
|
||||
internal readonly gl.glUniform4d glUniform4d;
|
||||
internal readonly gl.glUniform1dv glUniform1dv;
|
||||
internal readonly gl.glUniform2dv glUniform2dv;
|
||||
internal readonly gl.glUniform3dv glUniform3dv;
|
||||
internal readonly gl.glUniform4dv glUniform4dv;
|
||||
internal readonly gl.glUniformMatrix2dv glUniformMatrix2dv;
|
||||
internal readonly gl.glUniformMatrix3dv glUniformMatrix3dv;
|
||||
internal readonly gl.glUniformMatrix4dv glUniformMatrix4dv;
|
||||
internal readonly gl.glUniformMatrix2x3dv glUniformMatrix2x3dv;
|
||||
internal readonly gl.glUniformMatrix2x4dv glUniformMatrix2x4dv;
|
||||
internal readonly gl.glUniformMatrix3x2dv glUniformMatrix3x2dv;
|
||||
internal readonly gl.glUniformMatrix3x4dv glUniformMatrix3x4dv;
|
||||
internal readonly gl.glUniformMatrix4x2dv glUniformMatrix4x2dv;
|
||||
internal readonly gl.glUniformMatrix4x3dv glUniformMatrix4x3dv;
|
||||
internal readonly gl.glGetUniformdv glGetUniformdv;
|
||||
internal readonly gl.glGetSubroutineUniformLocation glGetSubroutineUniformLocation;
|
||||
internal readonly gl.glGetSubroutineIndex glGetSubroutineIndex;
|
||||
internal readonly gl.glGetActiveSubroutineUniformiv glGetActiveSubroutineUniformiv;
|
||||
internal readonly gl.glGetActiveSubroutineUniformName glGetActiveSubroutineUniformName;
|
||||
internal readonly gl.glGetActiveSubroutineName glGetActiveSubroutineName;
|
||||
internal readonly gl.glUniformSubroutinesuiv glUniformSubroutinesuiv;
|
||||
internal readonly gl.glGetUniformSubroutineuiv glGetUniformSubroutineuiv;
|
||||
internal readonly gl.glGetProgramStageiv glGetProgramStageiv;
|
||||
internal readonly gl.glPatchParameteri glPatchParameteri;
|
||||
internal readonly gl.glPatchParameterfv glPatchParameterfv;
|
||||
internal readonly gl.glBindTransformFeedback glBindTransformFeedback;
|
||||
internal readonly gl.glDeleteTransformFeedbacks glDeleteTransformFeedbacks;
|
||||
internal readonly gl.glGenTransformFeedbacks glGenTransformFeedbacks;
|
||||
internal readonly gl.glIsTransformFeedback glIsTransformFeedback;
|
||||
internal readonly gl.glPauseTransformFeedback glPauseTransformFeedback;
|
||||
internal readonly gl.glResumeTransformFeedback glResumeTransformFeedback;
|
||||
internal readonly gl.glDrawTransformFeedback glDrawTransformFeedback;
|
||||
internal readonly gl.glDrawTransformFeedbackStream glDrawTransformFeedbackStream;
|
||||
internal readonly gl.glBeginQueryIndexed glBeginQueryIndexed;
|
||||
internal readonly gl.glEndQueryIndexed glEndQueryIndexed;
|
||||
internal readonly gl.glGetQueryIndexediv glGetQueryIndexediv;
|
||||
internal readonly gl.glReleaseShaderCompiler glReleaseShaderCompiler;
|
||||
internal readonly gl.glShaderBinary glShaderBinary;
|
||||
internal readonly gl.glGetShaderPrecisionFormat glGetShaderPrecisionFormat;
|
||||
internal readonly gl.glDepthRangef glDepthRangef;
|
||||
internal readonly gl.glClearDepthf glClearDepthf;
|
||||
internal readonly gl.glGetProgramBinary glGetProgramBinary;
|
||||
internal readonly gl.glProgramBinary glProgramBinary;
|
||||
internal readonly gl.glProgramParameteri glProgramParameteri;
|
||||
internal readonly gl.glUseProgramStages glUseProgramStages;
|
||||
internal readonly gl.glActiveShaderProgram glActiveShaderProgram;
|
||||
internal readonly gl.glCreateShaderProgramv glCreateShaderProgramv;
|
||||
internal readonly gl.glBindProgramPipeline glBindProgramPipeline;
|
||||
internal readonly gl.glDeleteProgramPipelines glDeleteProgramPipelines;
|
||||
internal readonly gl.glGenProgramPipelines glGenProgramPipelines;
|
||||
internal readonly gl.glIsProgramPipeline glIsProgramPipeline;
|
||||
internal readonly gl.glGetProgramPipelineiv glGetProgramPipelineiv;
|
||||
internal readonly gl.glProgramUniform1i glProgramUniform1i;
|
||||
internal readonly gl.glProgramUniform1iv glProgramUniform1iv;
|
||||
internal readonly gl.glProgramUniform1f glProgramUniform1f;
|
||||
internal readonly gl.glProgramUniform1fv glProgramUniform1fv;
|
||||
internal readonly gl.glProgramUniform1d glProgramUniform1d;
|
||||
internal readonly gl.glProgramUniform1dv glProgramUniform1dv;
|
||||
internal readonly gl.glProgramUniform1ui glProgramUniform1ui;
|
||||
internal readonly gl.glProgramUniform1uiv glProgramUniform1uiv;
|
||||
internal readonly gl.glProgramUniform2i glProgramUniform2i;
|
||||
internal readonly gl.glProgramUniform2iv glProgramUniform2iv;
|
||||
internal readonly gl.glProgramUniform2f glProgramUniform2f;
|
||||
internal readonly gl.glProgramUniform2fv glProgramUniform2fv;
|
||||
internal readonly gl.glProgramUniform2d glProgramUniform2d;
|
||||
internal readonly gl.glProgramUniform2dv glProgramUniform2dv;
|
||||
internal readonly gl.glProgramUniform2ui glProgramUniform2ui;
|
||||
internal readonly gl.glProgramUniform2uiv glProgramUniform2uiv;
|
||||
internal readonly gl.glProgramUniform3i glProgramUniform3i;
|
||||
internal readonly gl.glProgramUniform3iv glProgramUniform3iv;
|
||||
internal readonly gl.glProgramUniform3f glProgramUniform3f;
|
||||
internal readonly gl.glProgramUniform3fv glProgramUniform3fv;
|
||||
internal readonly gl.glProgramUniform3d glProgramUniform3d;
|
||||
internal readonly gl.glProgramUniform3dv glProgramUniform3dv;
|
||||
internal readonly gl.glProgramUniform3ui glProgramUniform3ui;
|
||||
internal readonly gl.glProgramUniform3uiv glProgramUniform3uiv;
|
||||
internal readonly gl.glProgramUniform4i glProgramUniform4i;
|
||||
internal readonly gl.glProgramUniform4iv glProgramUniform4iv;
|
||||
internal readonly gl.glProgramUniform4f glProgramUniform4f;
|
||||
internal readonly gl.glProgramUniform4fv glProgramUniform4fv;
|
||||
internal readonly gl.glProgramUniform4d glProgramUniform4d;
|
||||
internal readonly gl.glProgramUniform4dv glProgramUniform4dv;
|
||||
internal readonly gl.glProgramUniform4ui glProgramUniform4ui;
|
||||
internal readonly gl.glProgramUniform4uiv glProgramUniform4uiv;
|
||||
internal readonly gl.glProgramUniformMatrix2fv glProgramUniformMatrix2fv;
|
||||
internal readonly gl.glProgramUniformMatrix3fv glProgramUniformMatrix3fv;
|
||||
internal readonly gl.glProgramUniformMatrix4fv glProgramUniformMatrix4fv;
|
||||
internal readonly gl.glProgramUniformMatrix2dv glProgramUniformMatrix2dv;
|
||||
internal readonly gl.glProgramUniformMatrix3dv glProgramUniformMatrix3dv;
|
||||
internal readonly gl.glProgramUniformMatrix4dv glProgramUniformMatrix4dv;
|
||||
internal readonly gl.glProgramUniformMatrix2x3fv glProgramUniformMatrix2x3fv;
|
||||
internal readonly gl.glProgramUniformMatrix3x2fv glProgramUniformMatrix3x2fv;
|
||||
internal readonly gl.glProgramUniformMatrix2x4fv glProgramUniformMatrix2x4fv;
|
||||
internal readonly gl.glProgramUniformMatrix4x2fv glProgramUniformMatrix4x2fv;
|
||||
internal readonly gl.glProgramUniformMatrix3x4fv glProgramUniformMatrix3x4fv;
|
||||
internal readonly gl.glProgramUniformMatrix4x3fv glProgramUniformMatrix4x3fv;
|
||||
internal readonly gl.glProgramUniformMatrix2x3dv glProgramUniformMatrix2x3dv;
|
||||
internal readonly gl.glProgramUniformMatrix3x2dv glProgramUniformMatrix3x2dv;
|
||||
internal readonly gl.glProgramUniformMatrix2x4dv glProgramUniformMatrix2x4dv;
|
||||
internal readonly gl.glProgramUniformMatrix4x2dv glProgramUniformMatrix4x2dv;
|
||||
internal readonly gl.glProgramUniformMatrix3x4dv glProgramUniformMatrix3x4dv;
|
||||
internal readonly gl.glProgramUniformMatrix4x3dv glProgramUniformMatrix4x3dv;
|
||||
internal readonly gl.glValidateProgramPipeline glValidateProgramPipeline;
|
||||
internal readonly gl.glGetProgramPipelineInfoLog glGetProgramPipelineInfoLog;
|
||||
internal readonly gl.glVertexAttribL1d glVertexAttribL1d;
|
||||
internal readonly gl.glVertexAttribL2d glVertexAttribL2d;
|
||||
internal readonly gl.glVertexAttribL3d glVertexAttribL3d;
|
||||
internal readonly gl.glVertexAttribL4d glVertexAttribL4d;
|
||||
internal readonly gl.glVertexAttribL1dv glVertexAttribL1dv;
|
||||
internal readonly gl.glVertexAttribL2dv glVertexAttribL2dv;
|
||||
internal readonly gl.glVertexAttribL3dv glVertexAttribL3dv;
|
||||
internal readonly gl.glVertexAttribL4dv glVertexAttribL4dv;
|
||||
internal readonly gl.glVertexAttribLPointer glVertexAttribLPointer;
|
||||
internal readonly gl.glGetVertexAttribLdv glGetVertexAttribLdv;
|
||||
internal readonly gl.glViewportArrayv glViewportArrayv;
|
||||
internal readonly gl.glViewportIndexedf glViewportIndexedf;
|
||||
internal readonly gl.glViewportIndexedfv glViewportIndexedfv;
|
||||
internal readonly gl.glScissorArrayv glScissorArrayv;
|
||||
internal readonly gl.glScissorIndexed glScissorIndexed;
|
||||
internal readonly gl.glScissorIndexedv glScissorIndexedv;
|
||||
internal readonly gl.glDepthRangeArrayv glDepthRangeArrayv;
|
||||
internal readonly gl.glDepthRangeIndexed glDepthRangeIndexed;
|
||||
internal readonly gl.glGetFloati_v glGetFloati_v;
|
||||
internal readonly gl.glGetDoublei_v glGetDoublei_v;
|
||||
internal readonly gl.glDrawArraysInstancedBaseInstance glDrawArraysInstancedBaseInstance;
|
||||
internal readonly gl.glDrawElementsInstancedBaseInstance glDrawElementsInstancedBaseInstance;
|
||||
internal readonly gl.glDrawElementsInstancedBaseVertexBaseInstance glDrawElementsInstancedBaseVertexBaseInstance;
|
||||
internal readonly gl.glGetInternalformativ glGetInternalformativ;
|
||||
internal readonly gl.glGetActiveAtomicCounterBufferiv glGetActiveAtomicCounterBufferiv;
|
||||
internal readonly gl.glBindImageTexture glBindImageTexture;
|
||||
internal readonly gl.glMemoryBarrier glMemoryBarrier;
|
||||
internal readonly gl.glTexStorage1D glTexStorage1D;
|
||||
internal readonly gl.glTexStorage2D glTexStorage2D;
|
||||
internal readonly gl.glTexStorage3D glTexStorage3D;
|
||||
internal readonly gl.glDrawTransformFeedbackInstanced glDrawTransformFeedbackInstanced;
|
||||
internal readonly gl.glDrawTransformFeedbackStreamInstanced glDrawTransformFeedbackStreamInstanced;
|
||||
internal readonly gl.glClearBufferData glClearBufferData;
|
||||
internal readonly gl.glClearBufferSubData glClearBufferSubData;
|
||||
internal readonly gl.glDispatchCompute glDispatchCompute;
|
||||
internal readonly gl.glDispatchComputeIndirect glDispatchComputeIndirect;
|
||||
internal readonly gl.glCopyImageSubData glCopyImageSubData;
|
||||
internal readonly gl.glFramebufferParameteri glFramebufferParameteri;
|
||||
internal readonly gl.glGetFramebufferParameteriv glGetFramebufferParameteriv;
|
||||
internal readonly gl.glGetInternalformati64v glGetInternalformati64v;
|
||||
internal readonly gl.glInvalidateTexSubImage glInvalidateTexSubImage;
|
||||
internal readonly gl.glInvalidateTexImage glInvalidateTexImage;
|
||||
internal readonly gl.glInvalidateBufferSubData glInvalidateBufferSubData;
|
||||
internal readonly gl.glInvalidateBufferData glInvalidateBufferData;
|
||||
internal readonly gl.glInvalidateFramebuffer glInvalidateFramebuffer;
|
||||
internal readonly gl.glInvalidateSubFramebuffer glInvalidateSubFramebuffer;
|
||||
internal readonly gl.glMultiDrawArraysIndirect glMultiDrawArraysIndirect;
|
||||
internal readonly gl.glMultiDrawElementsIndirect glMultiDrawElementsIndirect;
|
||||
internal readonly gl.glGetProgramInterfaceiv glGetProgramInterfaceiv;
|
||||
internal readonly gl.glGetProgramResourceIndex glGetProgramResourceIndex;
|
||||
internal readonly gl.glGetProgramResourceName glGetProgramResourceName;
|
||||
internal readonly gl.glGetProgramResourceiv glGetProgramResourceiv;
|
||||
internal readonly gl.glGetProgramResourceLocation glGetProgramResourceLocation;
|
||||
internal readonly gl.glGetProgramResourceLocationIndex glGetProgramResourceLocationIndex;
|
||||
internal readonly gl.glShaderStorageBlockBinding glShaderStorageBlockBinding;
|
||||
internal readonly gl.glTexBufferRange glTexBufferRange;
|
||||
internal readonly gl.glTexStorage2DMultisample glTexStorage2DMultisample;
|
||||
internal readonly gl.glTexStorage3DMultisample glTexStorage3DMultisample;
|
||||
internal readonly gl.glTextureView glTextureView;
|
||||
internal readonly gl.glBindVertexBuffer glBindVertexBuffer;
|
||||
internal readonly gl.glVertexAttribFormat glVertexAttribFormat;
|
||||
internal readonly gl.glVertexAttribIFormat glVertexAttribIFormat;
|
||||
internal readonly gl.glVertexAttribLFormat glVertexAttribLFormat;
|
||||
internal readonly gl.glVertexAttribBinding glVertexAttribBinding;
|
||||
internal readonly gl.glVertexBindingDivisor glVertexBindingDivisor;
|
||||
internal readonly gl.glDebugMessageControl glDebugMessageControl;
|
||||
internal readonly gl.glDebugMessageInsert glDebugMessageInsert;
|
||||
internal readonly gl.glDebugMessageCallback glDebugMessageCallback;
|
||||
internal readonly gl.glGetDebugMessageLog glGetDebugMessageLog;
|
||||
internal readonly gl.glPushDebugGroup glPushDebugGroup;
|
||||
internal readonly gl.glPopDebugGroup glPopDebugGroup;
|
||||
internal readonly gl.glObjectLabel glObjectLabel;
|
||||
internal readonly gl.glGetObjectLabel glGetObjectLabel;
|
||||
internal readonly gl.glObjectPtrLabel glObjectPtrLabel;
|
||||
internal readonly gl.glGetObjectPtrLabel glGetObjectPtrLabel;
|
||||
internal readonly gl.glBufferStorage glBufferStorage;
|
||||
internal readonly gl.glClearTexImage glClearTexImage;
|
||||
internal readonly gl.glClearTexSubImage glClearTexSubImage;
|
||||
internal readonly gl.glBindBuffersBase glBindBuffersBase;
|
||||
internal readonly gl.glBindBuffersRange glBindBuffersRange;
|
||||
internal readonly gl.glBindTextures glBindTextures;
|
||||
internal readonly gl.glBindSamplers glBindSamplers;
|
||||
internal readonly gl.glBindImageTextures glBindImageTextures;
|
||||
internal readonly gl.glBindVertexBuffers glBindVertexBuffers;
|
||||
internal readonly gl.glClipControl glClipControl;
|
||||
internal readonly gl.glCreateTransformFeedbacks glCreateTransformFeedbacks;
|
||||
internal readonly gl.glTransformFeedbackBufferBase glTransformFeedbackBufferBase;
|
||||
internal readonly gl.glTransformFeedbackBufferRange glTransformFeedbackBufferRange;
|
||||
internal readonly gl.glGetTransformFeedbackiv glGetTransformFeedbackiv;
|
||||
internal readonly gl.glGetTransformFeedbacki_v glGetTransformFeedbacki_v;
|
||||
internal readonly gl.glGetTransformFeedbacki64_v glGetTransformFeedbacki64_v;
|
||||
internal readonly gl.glCreateBuffers glCreateBuffers;
|
||||
internal readonly gl.glNamedBufferStorage glNamedBufferStorage;
|
||||
internal readonly gl.glNamedBufferData glNamedBufferData;
|
||||
internal readonly gl.glNamedBufferSubData glNamedBufferSubData;
|
||||
internal readonly gl.glCopyNamedBufferSubData glCopyNamedBufferSubData;
|
||||
internal readonly gl.glClearNamedBufferData glClearNamedBufferData;
|
||||
internal readonly gl.glClearNamedBufferSubData glClearNamedBufferSubData;
|
||||
internal readonly gl.glMapNamedBuffer glMapNamedBuffer;
|
||||
internal readonly gl.glMapNamedBufferRange glMapNamedBufferRange;
|
||||
internal readonly gl.glUnmapNamedBuffer glUnmapNamedBuffer;
|
||||
internal readonly gl.glFlushMappedNamedBufferRange glFlushMappedNamedBufferRange;
|
||||
internal readonly gl.glGetNamedBufferParameteriv glGetNamedBufferParameteriv;
|
||||
internal readonly gl.glGetNamedBufferParameteri64v glGetNamedBufferParameteri64v;
|
||||
internal readonly gl.glGetNamedBufferPointerv glGetNamedBufferPointerv;
|
||||
internal readonly gl.glGetNamedBufferSubData glGetNamedBufferSubData;
|
||||
internal readonly gl.glCreateFramebuffers glCreateFramebuffers;
|
||||
internal readonly gl.glNamedFramebufferRenderbuffer glNamedFramebufferRenderbuffer;
|
||||
internal readonly gl.glNamedFramebufferParameteri glNamedFramebufferParameteri;
|
||||
internal readonly gl.glNamedFramebufferTexture glNamedFramebufferTexture;
|
||||
internal readonly gl.glNamedFramebufferTextureLayer glNamedFramebufferTextureLayer;
|
||||
internal readonly gl.glNamedFramebufferDrawBuffer glNamedFramebufferDrawBuffer;
|
||||
internal readonly gl.glNamedFramebufferDrawBuffers glNamedFramebufferDrawBuffers;
|
||||
internal readonly gl.glNamedFramebufferReadBuffer glNamedFramebufferReadBuffer;
|
||||
internal readonly gl.glInvalidateNamedFramebufferData glInvalidateNamedFramebufferData;
|
||||
internal readonly gl.glInvalidateNamedFramebufferSubData glInvalidateNamedFramebufferSubData;
|
||||
internal readonly gl.glClearNamedFramebufferiv glClearNamedFramebufferiv;
|
||||
internal readonly gl.glClearNamedFramebufferuiv glClearNamedFramebufferuiv;
|
||||
internal readonly gl.glClearNamedFramebufferfv glClearNamedFramebufferfv;
|
||||
internal readonly gl.glClearNamedFramebufferfi glClearNamedFramebufferfi;
|
||||
internal readonly gl.glBlitNamedFramebuffer glBlitNamedFramebuffer;
|
||||
internal readonly gl.glCheckNamedFramebufferStatus glCheckNamedFramebufferStatus;
|
||||
internal readonly gl.glGetNamedFramebufferParameteriv glGetNamedFramebufferParameteriv;
|
||||
internal readonly gl.glGetNamedFramebufferAttachmentParameteriv glGetNamedFramebufferAttachmentParameteriv;
|
||||
internal readonly gl.glCreateRenderbuffers glCreateRenderbuffers;
|
||||
internal readonly gl.glNamedRenderbufferStorage glNamedRenderbufferStorage;
|
||||
internal readonly gl.glNamedRenderbufferStorageMultisample glNamedRenderbufferStorageMultisample;
|
||||
internal readonly gl.glGetNamedRenderbufferParameteriv glGetNamedRenderbufferParameteriv;
|
||||
internal readonly gl.glCreateTextures glCreateTextures;
|
||||
internal readonly gl.glTextureBuffer glTextureBuffer;
|
||||
internal readonly gl.glTextureBufferRange glTextureBufferRange;
|
||||
internal readonly gl.glTextureStorage1D glTextureStorage1D;
|
||||
internal readonly gl.glTextureStorage2D glTextureStorage2D;
|
||||
internal readonly gl.glTextureStorage3D glTextureStorage3D;
|
||||
internal readonly gl.glTextureStorage2DMultisample glTextureStorage2DMultisample;
|
||||
internal readonly gl.glTextureStorage3DMultisample glTextureStorage3DMultisample;
|
||||
internal readonly gl.glTextureSubImage1D glTextureSubImage1D;
|
||||
internal readonly gl.glTextureSubImage2D glTextureSubImage2D;
|
||||
internal readonly gl.glTextureSubImage3D glTextureSubImage3D;
|
||||
internal readonly gl.glCompressedTextureSubImage1D glCompressedTextureSubImage1D;
|
||||
internal readonly gl.glCompressedTextureSubImage2D glCompressedTextureSubImage2D;
|
||||
internal readonly gl.glCompressedTextureSubImage3D glCompressedTextureSubImage3D;
|
||||
internal readonly gl.glCopyTextureSubImage1D glCopyTextureSubImage1D;
|
||||
internal readonly gl.glCopyTextureSubImage2D glCopyTextureSubImage2D;
|
||||
internal readonly gl.glCopyTextureSubImage3D glCopyTextureSubImage3D;
|
||||
internal readonly gl.glTextureParameterf glTextureParameterf;
|
||||
internal readonly gl.glTextureParameterfv glTextureParameterfv;
|
||||
internal readonly gl.glTextureParameteri glTextureParameteri;
|
||||
internal readonly gl.glTextureParameterIiv glTextureParameterIiv;
|
||||
internal readonly gl.glTextureParameterIuiv glTextureParameterIuiv;
|
||||
internal readonly gl.glTextureParameteriv glTextureParameteriv;
|
||||
internal readonly gl.glGenerateTextureMipmap glGenerateTextureMipmap;
|
||||
internal readonly gl.glBindTextureUnit glBindTextureUnit;
|
||||
internal readonly gl.glGetTextureImage glGetTextureImage;
|
||||
internal readonly gl.glGetCompressedTextureImage glGetCompressedTextureImage;
|
||||
internal readonly gl.glGetTextureLevelParameterfv glGetTextureLevelParameterfv;
|
||||
internal readonly gl.glGetTextureLevelParameteriv glGetTextureLevelParameteriv;
|
||||
internal readonly gl.glGetTextureParameterfv glGetTextureParameterfv;
|
||||
internal readonly gl.glGetTextureParameterIiv glGetTextureParameterIiv;
|
||||
internal readonly gl.glGetTextureParameterIuiv glGetTextureParameterIuiv;
|
||||
internal readonly gl.glGetTextureParameteriv glGetTextureParameteriv;
|
||||
internal readonly gl.glCreateVertexArrays glCreateVertexArrays;
|
||||
internal readonly gl.glDisableVertexArrayAttrib glDisableVertexArrayAttrib;
|
||||
internal readonly gl.glEnableVertexArrayAttrib glEnableVertexArrayAttrib;
|
||||
internal readonly gl.glVertexArrayElementBuffer glVertexArrayElementBuffer;
|
||||
internal readonly gl.glVertexArrayVertexBuffer glVertexArrayVertexBuffer;
|
||||
internal readonly gl.glVertexArrayVertexBuffers glVertexArrayVertexBuffers;
|
||||
internal readonly gl.glVertexArrayAttribBinding glVertexArrayAttribBinding;
|
||||
internal readonly gl.glVertexArrayAttribFormat glVertexArrayAttribFormat;
|
||||
internal readonly gl.glVertexArrayAttribIFormat glVertexArrayAttribIFormat;
|
||||
internal readonly gl.glVertexArrayAttribLFormat glVertexArrayAttribLFormat;
|
||||
internal readonly gl.glVertexArrayBindingDivisor glVertexArrayBindingDivisor;
|
||||
internal readonly gl.glGetVertexArrayiv glGetVertexArrayiv;
|
||||
internal readonly gl.glGetVertexArrayIndexediv glGetVertexArrayIndexediv;
|
||||
internal readonly gl.glGetVertexArrayIndexed64iv glGetVertexArrayIndexed64iv;
|
||||
internal readonly gl.glCreateSamplers glCreateSamplers;
|
||||
internal readonly gl.glCreateProgramPipelines glCreateProgramPipelines;
|
||||
internal readonly gl.glCreateQueries glCreateQueries;
|
||||
internal readonly gl.glGetQueryBufferObjecti64v glGetQueryBufferObjecti64v;
|
||||
internal readonly gl.glGetQueryBufferObjectiv glGetQueryBufferObjectiv;
|
||||
internal readonly gl.glGetQueryBufferObjectui64v glGetQueryBufferObjectui64v;
|
||||
internal readonly gl.glGetQueryBufferObjectuiv glGetQueryBufferObjectuiv;
|
||||
internal readonly gl.glMemoryBarrierByRegion glMemoryBarrierByRegion;
|
||||
internal readonly gl.glGetTextureSubImage glGetTextureSubImage;
|
||||
internal readonly gl.glGetCompressedTextureSubImage glGetCompressedTextureSubImage;
|
||||
internal readonly gl.glGetGraphicsResetStatus glGetGraphicsResetStatus;
|
||||
internal readonly gl.glGetnCompressedTexImage glGetnCompressedTexImage;
|
||||
internal readonly gl.glGetnTexImage glGetnTexImage;
|
||||
internal readonly gl.glGetnUniformdv glGetnUniformdv;
|
||||
internal readonly gl.glGetnUniformfv glGetnUniformfv;
|
||||
internal readonly gl.glGetnUniformiv glGetnUniformiv;
|
||||
internal readonly gl.glGetnUniformuiv glGetnUniformuiv;
|
||||
internal readonly gl.glReadnPixels glReadnPixels;
|
||||
internal readonly gl.glTextureBarrier glTextureBarrier;
|
||||
internal readonly gl.glSpecializeShader glSpecializeShader;
|
||||
internal readonly gl.glMultiDrawArraysIndirectCount glMultiDrawArraysIndirectCount;
|
||||
internal readonly gl.glMultiDrawElementsIndirectCount glMultiDrawElementsIndirectCount;
|
||||
internal readonly gl.glPolygonOffsetClamp glPolygonOffsetClamp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp.Graphics
|
||||
{
|
||||
/// <summary>
|
||||
/// windows系统API类
|
||||
/// </summary>
|
||||
public partial class winapi
|
||||
{
|
||||
/// <summary>
|
||||
/// The ChoosePixelFormat function attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.
|
||||
/// </summary>
|
||||
/// <param name="hdc">
|
||||
/// Specifies the device context that the function examines to determine the best match for the pixel format descriptor pointed to by ppfd.
|
||||
/// </param>
|
||||
/// <param name="ppfd">
|
||||
/// Pointer to a PIXELFORMATDESCRIPTOR structure that specifies the requested pixel format.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// <para>If the function succeeds, the return value is a pixel format index (one-based) that is the closest match to the given pixel format descriptor.</para>
|
||||
/// <para>If the function fails, the return value is zero.</para>
|
||||
/// </returns>
|
||||
[DllImport("gdi32.dll", ExactSpelling = false, EntryPoint = "ChoosePixelFormat", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern int ChoosePixelFormat(IntPtr hdc, IntPtr ppfd);
|
||||
|
||||
/// <summary>
|
||||
/// The SetPixelFormat function sets the pixel format of the specified device context to the format specified by the iPixelFormat index.
|
||||
/// </summary>
|
||||
/// <param name="hdc">
|
||||
/// Specifies the device context whose pixel format the function attempts to set.</param>
|
||||
/// <param name="format">
|
||||
/// <para>Index that identifies the pixel format to set. </para>
|
||||
/// <para>The various pixel formats supported by a device context are identified by one-based indexes.</para>
|
||||
/// </param>
|
||||
/// <param name="ppfd">
|
||||
/// <para>Pointer to a PIXELFORMATDESCRIPTOR structure that contains the logical pixel format specification.</para>
|
||||
/// <para>The system's metafile component uses this structure to record the logical pixel format specification.</para>
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// If the function succeeds, the return value is TRUE.If the function fails, the return value is FALSE.
|
||||
/// </returns>
|
||||
[DllImport("gdi32.dll", ExactSpelling = false, EntryPoint = "SetPixelFormat", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern bool SetPixelFormat(IntPtr hdc, int format, IntPtr ppfd);
|
||||
|
||||
/// <summary>
|
||||
/// <para>The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.</para>
|
||||
/// <para>You can use the returned handle in subsequent GDI functions to draw in the DC.</para>
|
||||
/// </summary>
|
||||
/// <param name="hwnd">
|
||||
/// A handle to the window whose DC is to be retrieved. If this value is NULL, GetDC retrieves the DC for the entire screen.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// <para>If the function succeeds, the return value is a handle to the DC for the specified window's client area.</para>
|
||||
/// <para>If the function fails, the return value is NULL.</para>
|
||||
/// </returns>
|
||||
[DllImport("user32.dll", ExactSpelling = false, EntryPoint = "GetDC", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern IntPtr GetDC(IntPtr hwnd);
|
||||
|
||||
/// <summary>
|
||||
/// The SwapBuffers function exchanges the front and back buffers if the current pixel format for the window referenced by the specified device context includes a back buffer.
|
||||
/// </summary>
|
||||
/// <param name="hdc">
|
||||
/// <para>Specifies a device context.</para>
|
||||
/// <para> If the current pixel format for the window referenced by this device context includes a back buffer,</para>
|
||||
/// <para>the function exchanges the front and back buffers.</para>
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// If the function succeeds, the return value is TRUE.If the function fails, the return value is FALSE.
|
||||
/// </returns>
|
||||
[DllImport("gdi32.dll", ExactSpelling = false, EntryPoint = "SwapBuffers", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern bool SwapBuffers(IntPtr hdc);
|
||||
/// <summary>
|
||||
/// 获取当前线程的控制台窗口句柄
|
||||
/// </summary>
|
||||
/// <returns>当前线程控制台句柄</returns>
|
||||
[DllImport("kernel32.dll", ExactSpelling = false, EntryPoint = "GetConsoleWindow", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern IntPtr GetConsoleWindow();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using StgSharp.Optimization;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Common;
|
||||
using System.Runtime.InteropServices;
|
||||
@@ -135,15 +134,5 @@ namespace StgSharp.Math
|
||||
{
|
||||
return new float[3] { vec.X, vec.Y, vec.Y };
|
||||
}
|
||||
|
||||
public static implicit operator m128(vec3d vec)
|
||||
{
|
||||
return new m128()
|
||||
{
|
||||
float0 = vec.X,
|
||||
float1 = vec.Y,
|
||||
float2 = vec.Z,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using StgSharp.Optimization;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using StgSharp.Optimization;
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp.Math
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp.Optimization
|
||||
{
|
||||
public class CpuInfo : IDisposable
|
||||
{
|
||||
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
|
||||
public delegate void CpuIDDelegate(int level, byte[] buffer);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
private static extern IntPtr VirtualAlloc(
|
||||
IntPtr lpAddress,
|
||||
UIntPtr dwSize,
|
||||
AllocationType flAllocationType,
|
||||
MemoryProtection flProtect
|
||||
);
|
||||
|
||||
[DllImport("kernel32")]
|
||||
private static extern bool VirtualFree(
|
||||
IntPtr lpAddress,
|
||||
UInt32 dwSize,
|
||||
UInt32 dwFreeType
|
||||
);
|
||||
|
||||
[Flags()]
|
||||
public enum AllocationType : uint
|
||||
{
|
||||
COMMIT = 0x1000,
|
||||
RESERVE = 0x2000,
|
||||
RESET = 0x80000,
|
||||
LARGE_PAGES = 0x20000000,
|
||||
PHYSICAL = 0x400000,
|
||||
TOP_DOWN = 0x100000,
|
||||
WRITE_WATCH = 0x200000
|
||||
}
|
||||
|
||||
[Flags()]
|
||||
public enum MemoryProtection : uint
|
||||
{
|
||||
EXECUTE = 0x10,
|
||||
EXECUTE_READ = 0x20,
|
||||
EXECUTE_READWRITE = 0x40,
|
||||
EXECUTE_WRITECOPY = 0x80,
|
||||
NOACCESS = 0x01,
|
||||
READONLY = 0x02,
|
||||
READWRITE = 0x04,
|
||||
WRITECOPY = 0x08,
|
||||
GUARD_Modifierflag = 0x100,
|
||||
NOCACHE_Modifierflag = 0x200,
|
||||
WRITECOMBINE_Modifierflag = 0x400
|
||||
}
|
||||
|
||||
private CpuIDDelegate cpuIdDelg;
|
||||
|
||||
private IntPtr codePointer;
|
||||
|
||||
// void x86CpuId(int level, byte* buffer)
|
||||
// {
|
||||
// eax = level
|
||||
// cpuid
|
||||
// buffer[0] = eax
|
||||
// buffer[4] = ebx
|
||||
// buffer[8] = ecx
|
||||
// buffer[12] = edx
|
||||
// }
|
||||
/*
|
||||
private byte[] x86CodeBytes =
|
||||
{
|
||||
0x55, // push ebp
|
||||
0x8B, 0xEC, // mov ebp,esp
|
||||
0x53, // push ebx
|
||||
0x57, // push edi
|
||||
|
||||
0x8B, 0x45, 0x08, // mov eax, dword ptr [ebp+8] (move level into eax)
|
||||
0x0F, 0xA2, // cpuid
|
||||
|
||||
0x8B, 0x7D, 0x0C, // mov edi, dword ptr [ebp+12] (move address of buffer into edi)
|
||||
0x89, 0x07, // mov dword ptr [edi+0], eax (write eax, ... to buffer)
|
||||
0x89, 0x5F, 0x04, // mov dword ptr [edi+4], ebx
|
||||
0x89, 0x4F, 0x08, // mov dword ptr [edi+8], ecx
|
||||
0x89, 0x57, 0x0C, // mov dword ptr [edi+12],edx
|
||||
|
||||
0x5F, // pop edi
|
||||
0x5B, // pop ebx
|
||||
0x8B, 0xE5, // mov esp,ebp
|
||||
0x5D, // pop ebp
|
||||
0xc3 // ret
|
||||
};
|
||||
*/
|
||||
|
||||
//x64
|
||||
private byte[] CodeBytes =
|
||||
{
|
||||
0x53, // push rbx this gets clobbered by cpuid
|
||||
|
||||
// rcx is level
|
||||
// rdx is buffer.
|
||||
// Need to save buffer elsewhere, cpuid overwrites rdx
|
||||
// Put buffer in r8, use r8 to reference buffer later.
|
||||
|
||||
// Save rdx (buffer addy) to r8
|
||||
0x49, 0x89, 0xd0, // mov r8, rdx
|
||||
|
||||
// Move ecx (level) to eax to call cpuid, call cpuid
|
||||
0x89, 0xc8, // mov eax, ecx
|
||||
0x0F, 0xA2, // cpuid
|
||||
|
||||
// Write eax et al to buffer
|
||||
0x41, 0x89, 0x40, 0x00, // mov dword ptr [r8+0], eax
|
||||
0x41, 0x89, 0x58, 0x04, // mov dword ptr [r8+4], ebx
|
||||
0x41, 0x89, 0x48, 0x08, // mov dword ptr [r8+8], ecx
|
||||
0x41, 0x89, 0x50, 0x0c, // mov dword ptr [r8+12], edx
|
||||
|
||||
0x5b, // pop rbx
|
||||
0xc3 // ret
|
||||
};
|
||||
|
||||
public CpuInfo()
|
||||
{
|
||||
Compile();
|
||||
}
|
||||
|
||||
~CpuInfo()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void Compile()
|
||||
{
|
||||
byte[] codeBytes = CodeBytes;
|
||||
|
||||
if (IntPtr.Size != 8)
|
||||
{
|
||||
throw new Exception("This class supports 64bits OS only presently");
|
||||
}
|
||||
|
||||
this.codePointer = VirtualAlloc(
|
||||
IntPtr.Zero,
|
||||
new UIntPtr((uint)codeBytes.Length),
|
||||
AllocationType.COMMIT | AllocationType.RESERVE,
|
||||
MemoryProtection.EXECUTE_READWRITE
|
||||
);
|
||||
|
||||
Marshal.Copy(codeBytes, 0, this.codePointer, codeBytes.Length);
|
||||
|
||||
this.cpuIdDelg = (CpuIDDelegate)Marshal.GetDelegateForFunctionPointer(this.codePointer, typeof(CpuIDDelegate));
|
||||
}
|
||||
|
||||
public void Invoke(int level, byte[] buffer)
|
||||
{
|
||||
GCHandle handle = default(GCHandle);
|
||||
if (buffer.Length < 16)
|
||||
{
|
||||
throw new ArgumentException("buffer must be at least 16 bytes long");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
|
||||
|
||||
this.cpuIdDelg(level, buffer);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (handle != default(GCHandle))
|
||||
{
|
||||
handle.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
public void Dispose(bool disposing)
|
||||
{
|
||||
if (this.codePointer != IntPtr.Zero)
|
||||
{
|
||||
VirtualFree(this.codePointer, 0, 0x8000);
|
||||
this.codePointer = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Optimization
|
||||
{
|
||||
public static unsafe partial class SSE
|
||||
{
|
||||
|
||||
public static m128 ToM128(this vec2d vec)
|
||||
{
|
||||
return *(m128*)&vec;
|
||||
}
|
||||
|
||||
public static m128 ToVec4D(this m128 m)
|
||||
{
|
||||
return *(m128*)&m;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Pipes;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Optimization
|
||||
{
|
||||
public static unsafe partial class SSE
|
||||
{
|
||||
internal static readonly byte[] SqrtssCodeBytes = new byte[] {
|
||||
0x48, 0x89, 0xc8, //mov rax,rcx
|
||||
0xf3, 0x0f, 0x6f, 0x00, //movdqu xmm0,xmmword ptr [rax]
|
||||
//0x66, 0x0f, 0x6f, 0x00, //movdqa xmm0,xmmword ptr [rax]
|
||||
0xf3,0x0f, 0x51, 0xc0, //sqrtss xmm0,xmm0
|
||||
0xf3, 0x0f, 0x7f, 0x00, //movdqu xmmqord ptr [rax],xmm0
|
||||
//0x66, 0x0f, 0x7f, 0x00, //movdqa xmmword ptr [rax],xmm0
|
||||
0xc3, //ret
|
||||
};
|
||||
|
||||
|
||||
|
||||
static asmfuncDelegate sqrtssDelegate;
|
||||
|
||||
private static IntPtr sqrtssHandle = VirtualAlloc(
|
||||
IntPtr.Zero,
|
||||
SqrtssCodeBytes.Length,
|
||||
MEM_COMMIT | MEM_RESERVE,
|
||||
PAGE_EXECUTE_READWRITE);
|
||||
|
||||
private static void InitSqrtss()
|
||||
{
|
||||
Marshal.Copy(SqrtssCodeBytes,0,sqrtssHandle,SqrtssCodeBytes.Length);
|
||||
sqrtssDelegate = Marshal.GetDelegateForFunctionPointer(sqrtssHandle,typeof(asmfuncDelegate)) as asmfuncDelegate;
|
||||
}
|
||||
|
||||
public unsafe static m128 Sqrtss(m128* m)
|
||||
{
|
||||
sqrtssDelegate((ulong)m);
|
||||
return *m;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A delegate for asm sse functions
|
||||
/// </summary>
|
||||
/// <param name="m128Pointrter">The m128* pointer to the target m128 transformed in ulong form</param>
|
||||
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
|
||||
internal delegate void asmfuncDelegate(ulong m128Pointrter);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Optimization
|
||||
{
|
||||
public static unsafe partial class SSE
|
||||
{
|
||||
[DllImport("Kernel32.dll", EntryPoint = "VirtualAlloc")]
|
||||
private static extern IntPtr VirtualAlloc(IntPtr address, int size, uint allocType, uint protect);
|
||||
[DllImport("Kernel32.dll", EntryPoint = "VirtualFree")]
|
||||
private static extern bool VirtualFree(IntPtr address, int size, uint freeType);
|
||||
|
||||
const uint MEM_COMMIT = 0x1000;
|
||||
const uint MEM_RESERVE = 0x2000;
|
||||
const uint PAGE_EXECUTE_READWRITE = 0x40;
|
||||
const uint MEM_RELEASE = 0x8000;
|
||||
|
||||
static SSE()
|
||||
{
|
||||
//编译模拟Sqrtss指令
|
||||
InitSqrtss();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Optimization
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit,Size =16,Pack =16)]
|
||||
public struct m128
|
||||
{
|
||||
[FieldOffset(0)] public float float0;
|
||||
[FieldOffset(4)] public float float1;
|
||||
[FieldOffset(8)] public float float2;
|
||||
[FieldOffset(12)] public float float3;
|
||||
|
||||
[FieldOffset(0)] public double double0;
|
||||
[FieldOffset(8)] public double double1;
|
||||
|
||||
[FieldOffset(0)] public int int0;
|
||||
[FieldOffset(1)] public int int1;
|
||||
[FieldOffset(2)] public int int2;
|
||||
[FieldOffset(3)] public int int3;
|
||||
|
||||
[FieldOffset(0)] public byte byte0;
|
||||
[FieldOffset(1)] public byte byte1;
|
||||
[FieldOffset(2)] public byte byte2;
|
||||
[FieldOffset(3)] public byte byte3;
|
||||
[FieldOffset(4)] public byte byte4;
|
||||
[FieldOffset(5)] public byte byte5;
|
||||
[FieldOffset(6)] public byte byte6;
|
||||
[FieldOffset(7)] public byte byte7;
|
||||
[FieldOffset(8)] public byte byte8;
|
||||
[FieldOffset(9)] public byte byte9;
|
||||
[FieldOffset(10)] public byte byte10;
|
||||
[FieldOffset(11)] public byte byte11;
|
||||
[FieldOffset(12)] public byte byte12;
|
||||
[FieldOffset(13)] public byte byte13;
|
||||
[FieldOffset(14)] public byte byte14;
|
||||
[FieldOffset(15)] public byte byte15;
|
||||
[FieldOffset(16)] public byte byte16;
|
||||
|
||||
|
||||
public int[] ToIntArray()
|
||||
{
|
||||
return new int[4] { int0, int1, int2, int3 };
|
||||
}
|
||||
|
||||
public float[] ToFloatArray()
|
||||
{
|
||||
return new float[4] { float0, float1, float2, float3 };
|
||||
}
|
||||
|
||||
public byte[] ToByteArray()
|
||||
{
|
||||
return new byte[16]
|
||||
{
|
||||
byte0, byte1, byte2, byte3,
|
||||
byte4, byte5, byte6, byte7,
|
||||
byte8, byte9, byte10, byte11,
|
||||
byte12, byte13, byte14, byte15,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit,Size = 32)]
|
||||
internal struct m128cache
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>True</Optimize>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
@@ -36,14 +37,12 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Graphic\**" />
|
||||
<Compile Remove="Math\Graphic\**" />
|
||||
<EmbeddedResource Remove="Graphic\**" />
|
||||
<EmbeddedResource Remove="Math\Graphic\**" />
|
||||
<None Remove="Graphic\**" />
|
||||
<None Remove="Math\Graphic\**" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Facepunch.Steamworks" Version="2.3.3" />
|
||||
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
|
||||
@@ -54,6 +53,12 @@
|
||||
<Folder Include="Geometries\SpaceGeometry\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Dependency\StgSharpGraphics.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Resources.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
@@ -69,4 +74,10 @@
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="StgSharpGraphics.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,58 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETStandard,Version=v2.1/",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETStandard,Version=v2.1": {},
|
||||
".NETStandard,Version=v2.1/": {
|
||||
"StgSharp/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"Steamworks.NET": "20.1.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Microsoft.CSharp.dll": {
|
||||
"assemblyVersion": "4.0.5.0",
|
||||
"fileVersion": "4.700.19.56404"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Steamworks.NET/20.1.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.1/Steamworks.NET.dll": {
|
||||
"assemblyVersion": "20.1.0.0",
|
||||
"fileVersion": "20.1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
|
||||
"path": "microsoft.csharp/4.7.0",
|
||||
"hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
|
||||
},
|
||||
"Steamworks.NET/20.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==",
|
||||
"path": "steamworks.net/20.1.0",
|
||||
"hashPath": "steamworks.net.20.1.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,316 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>StgSharp</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="P:StgSharp.IEntity.CollisionSensor">
|
||||
<summary>
|
||||
A sensor used for cheking out if a bullet hit a player or something else
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Location">
|
||||
<summary>
|
||||
A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.X">
|
||||
<summary>
|
||||
X position of an enenmy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Y">
|
||||
<summary>
|
||||
Y position of an enemy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.UnusedVertexException">
|
||||
<summary>
|
||||
当几何体调用了过多的CalcVec方法时,产生UnusedVertexException异常
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.GetLocationHandler">
|
||||
<summary>
|
||||
计算位移失量,需要手动输入游戏刻以提供时间数据
|
||||
</summary>
|
||||
<param name="tickCounter"></param>
|
||||
<returns>表示位移量的三维矢量</returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.IPlainGeometry">
|
||||
<summary>
|
||||
平面几何体。包含三角形,对称四边形,自由多边形等。最多可由16个点参数定义。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Parallelogram.MovVertex03(System.UInt32)">
|
||||
<summary>
|
||||
移动平行四边形的第三个顶点,是一个多余的方法,调用会引发多余变量异常
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
<returns></returns>
|
||||
<exception cref="T:StgSharp.Geometries.UnusedVertexException">几何体过定义</exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Point.Update(System.UInt32)">
|
||||
<summary>
|
||||
刷新点的位置,即移动点。当该点是某个几何体的从动点时
|
||||
(即点坐标由几何体其他点约束或点参数已经在创建几何体时定义)
|
||||
请不要再次进行定义,程序将自行忽略此处的代码。
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Rectangle.MovCenter(System.UInt32)">
|
||||
<summary>
|
||||
计算中心点相对于参考原点的位移
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.colum2,StgSharp.Math.vec2d)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="colum"></param>
|
||||
<param name="vec"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.vec2d)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec1"></param>
|
||||
<param name="vec2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.colum2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="colum"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.colum2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix"></param>
|
||||
<param name="colum"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.colum3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix"></param>
|
||||
<param name="vec"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x3,StgSharp.Math.matrix3x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x3,StgSharp.Math.matrix3x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix4x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix4x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.ASin(System.Single)">
|
||||
<summary>
|
||||
Reurns the value of ArcSin(x)
|
||||
</summary>
|
||||
<param name="x">The sine value of the angle</param>
|
||||
<returns></returns>
|
||||
<exception cref="T:System.ArgumentException"></exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Exp(System.Single)">
|
||||
<summary>
|
||||
Get the value of E ^ x;
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Log(System.Single)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<returns>
|
||||
Returns the value of ln(x).
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Pow(System.Single,System.Single)">
|
||||
<summary>
|
||||
calculate the value of x^y
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<param name="y"></param>
|
||||
<returns>Returns the value of x^y</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
@@ -1,111 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETStandard,Version=v2.0/",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETStandard,Version=v2.0": {},
|
||||
".NETStandard,Version=v2.0/": {
|
||||
"StgSharp/1.0.0": {
|
||||
"dependencies": {
|
||||
"Facepunch.Steamworks": "2.3.3",
|
||||
"Microsoft.Bcl.HashCode": "1.1.1",
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"NETStandard.Library": "2.0.3",
|
||||
"OpenTK": "3.3.3"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.dll": {}
|
||||
}
|
||||
},
|
||||
"Facepunch.Steamworks/2.3.3": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Facepunch.Steamworks.Win64.dll": {
|
||||
"assemblyVersion": "1.0.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Bcl.HashCode/1.1.1": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Microsoft.Bcl.HashCode.dll": {
|
||||
"assemblyVersion": "1.0.0.0",
|
||||
"fileVersion": "4.700.20.56604"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Microsoft.CSharp.dll": {
|
||||
"assemblyVersion": "4.0.5.0",
|
||||
"fileVersion": "4.700.19.56404"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {},
|
||||
"NETStandard.Library/2.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0"
|
||||
}
|
||||
},
|
||||
"OpenTK/3.3.3": {
|
||||
"runtime": {
|
||||
"lib/net20/OpenTK.dll": {
|
||||
"assemblyVersion": "3.3.3.0",
|
||||
"fileVersion": "3.3.3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Facepunch.Steamworks/2.3.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-7nUjWX/uy6JbDX7Q3n8ij7vrpWjTM0S8hXO24R3ZwQ0QgY0sXVlxzh3unmYoLvKGi31rzDHqGX68I169hnHNxQ==",
|
||||
"path": "facepunch.steamworks/2.3.3",
|
||||
"hashPath": "facepunch.steamworks.2.3.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Bcl.HashCode/1.1.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==",
|
||||
"path": "microsoft.bcl.hashcode/1.1.1",
|
||||
"hashPath": "microsoft.bcl.hashcode.1.1.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
|
||||
"path": "microsoft.csharp/4.7.0",
|
||||
"hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
|
||||
"path": "microsoft.netcore.platforms/1.1.0",
|
||||
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
|
||||
},
|
||||
"NETStandard.Library/2.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
|
||||
"path": "netstandard.library/2.0.3",
|
||||
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
|
||||
},
|
||||
"OpenTK/3.3.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-KtnygHEuYj4+agNsZRtzh5iSiKlelDZvDB/OhfebEvIDX/97Pzygv8n5llZHgrI7Xa29vvkucVBeN55R6/k+4w==",
|
||||
"path": "opentk/3.3.3",
|
||||
"hashPath": "opentk.3.3.3.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,322 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>StgSharp</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="P:StgSharp.IEntity.CollisionSensor">
|
||||
<summary>
|
||||
A sensor used for cheking out if a bullet hit a player or something else
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Location">
|
||||
<summary>
|
||||
A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.X">
|
||||
<summary>
|
||||
X position of an enenmy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Y">
|
||||
<summary>
|
||||
Y position of an enemy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.UnusedVertexException">
|
||||
<summary>
|
||||
当几何体调用了过多的CalcVec方法时,产生UnusedVertexException异常
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.GetLocationHandler">
|
||||
<summary>
|
||||
计算位移失量,需要手动输入游戏刻以提供时间数据
|
||||
</summary>
|
||||
<param name="tickCounter"></param>
|
||||
<returns>表示位移量的三维矢量</returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.IPlainGeometry">
|
||||
<summary>
|
||||
平面几何体。包含三角形,对称四边形,自由多边形等。最多可由16个点参数定义。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Parallelogram.MovVertex03(System.UInt32)">
|
||||
<summary>
|
||||
移动平行四边形的第三个顶点,是一个多余的方法,调用会引发多余变量异常
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
<returns></returns>
|
||||
<exception cref="T:StgSharp.Geometries.UnusedVertexException">几何体过定义</exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Point.Update(System.UInt32)">
|
||||
<summary>
|
||||
刷新点的位置,即移动点。当该点是某个几何体的从动点时
|
||||
(即点坐标由几何体其他点约束或点参数已经在创建几何体时定义)
|
||||
请不要再次进行定义,程序将自行忽略此处的代码。
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Rectangle.MovCenter(System.UInt32)">
|
||||
<summary>
|
||||
计算中心点相对于参考原点的位移
|
||||
</summary>
|
||||
<param name="tick">当前游戏刻</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.colum2,StgSharp.Math.vec2d)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="colum"></param>
|
||||
<param name="vec"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.vec2d)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec1"></param>
|
||||
<param name="vec2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.colum2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="colum"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.vec2d,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="vec"></param>
|
||||
<param name="matrix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.colum2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix"></param>
|
||||
<param name="colum"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.colum3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix"></param>
|
||||
<param name="vec"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x3,StgSharp.Math.matrix3x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix2x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x3,StgSharp.Math.matrix3x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x3,StgSharp.Math.matrix3x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x3)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix3x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix4x2,StgSharp.Math.matrix2x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.matrix4x4,StgSharp.Math.matrix4x4)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.ASin(System.Single)">
|
||||
<summary>
|
||||
Reurns the value of ArcSin(x)
|
||||
</summary>
|
||||
<param name="x">The sine value of the angle</param>
|
||||
<returns></returns>
|
||||
<exception cref="T:System.ArgumentException"></exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Exp(System.Single)">
|
||||
<summary>
|
||||
Get the value of E ^ x;
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Log(System.Single)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<returns>
|
||||
Returns the value of ln(x).
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Pow(System.Single,System.Single)">
|
||||
<summary>
|
||||
calculate the value of x^y
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<param name="y"></param>
|
||||
<returns>Returns the value of x^y</returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Optimization.asmfuncDelegate">
|
||||
<summary>
|
||||
A delegate for asm sse functions
|
||||
</summary>
|
||||
<param name="m128Pointrter">The m128* pointer to the target m128 transformed in ulong form</param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1 +1 @@
|
||||
012b41110739971f732c5a1d8cfcd68b277b1396
|
||||
599c74c5e84e14226e429f58dbf2e985f60f29fc
|
||||
|
||||
@@ -12,3 +12,4 @@ D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharp
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharp\obj\x64\Debug\netstandard2.1\ref\StgSharp.dll
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharp\obj\x64\Debug\netstandard2.1\StgSharp.Properties.Resources.resources
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharp\obj\x64\Debug\netstandard2.1\StgSharp.csproj.GenerateResource.cache
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharp\bin\x64\Debug\netstandard2.1\StgSharpGraphics.dll
|
||||
|
||||
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.
Reference in New Issue
Block a user