github.com/Seikaijyu/gio@v0.0.1/internal/gl/gl.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 package gl 4 5 type ( 6 Attrib uint 7 Enum uint 8 ) 9 10 const ( 11 ACTIVE_TEXTURE = 0x84E0 12 ALL_BARRIER_BITS = 0xffffffff 13 ARRAY_BUFFER = 0x8892 14 ARRAY_BUFFER_BINDING = 0x8894 15 BACK = 0x0405 16 BLEND = 0xbe2 17 BLEND_DST_RGB = 0x80C8 18 BLEND_SRC_RGB = 0x80C9 19 BLEND_DST_ALPHA = 0x80CA 20 BLEND_SRC_ALPHA = 0x80CB 21 CLAMP_TO_EDGE = 0x812f 22 COLOR_ATTACHMENT0 = 0x8ce0 23 COLOR_BUFFER_BIT = 0x4000 24 COLOR_CLEAR_VALUE = 0x0C22 25 COMPILE_STATUS = 0x8b81 26 COMPUTE_SHADER = 0x91B9 27 CURRENT_PROGRAM = 0x8B8D 28 DEPTH_ATTACHMENT = 0x8d00 29 DEPTH_BUFFER_BIT = 0x100 30 DEPTH_CLEAR_VALUE = 0x0B73 31 DEPTH_COMPONENT16 = 0x81a5 32 DEPTH_COMPONENT24 = 0x81A6 33 DEPTH_COMPONENT32F = 0x8CAC 34 DEPTH_FUNC = 0x0B74 35 DEPTH_TEST = 0xb71 36 DEPTH_WRITEMASK = 0x0B72 37 DRAW_FRAMEBUFFER = 0x8CA9 38 DST_COLOR = 0x306 39 DYNAMIC_DRAW = 0x88E8 40 DYNAMIC_READ = 0x88E9 41 ELEMENT_ARRAY_BUFFER = 0x8893 42 ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 43 EXTENSIONS = 0x1f03 44 FALSE = 0 45 FLOAT = 0x1406 46 FRAGMENT_SHADER = 0x8b30 47 FRAMEBUFFER = 0x8d40 48 FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210 49 FRAMEBUFFER_BINDING = 0x8ca6 50 FRAMEBUFFER_COMPLETE = 0x8cd5 51 FRAMEBUFFER_SRGB = 0x8db9 52 HALF_FLOAT = 0x140b 53 HALF_FLOAT_OES = 0x8d61 54 INFO_LOG_LENGTH = 0x8B84 55 INVALID_INDEX = ^uint(0) 56 GREATER = 0x204 57 GEQUAL = 0x206 58 LINEAR = 0x2601 59 LINEAR_MIPMAP_LINEAR = 0x2703 60 LINK_STATUS = 0x8b82 61 LUMINANCE = 0x1909 62 MAP_READ_BIT = 0x0001 63 MAX_TEXTURE_SIZE = 0xd33 64 NEAREST = 0x2600 65 NO_ERROR = 0x0 66 NUM_EXTENSIONS = 0x821D 67 ONE = 0x1 68 ONE_MINUS_SRC_ALPHA = 0x303 69 PACK_ROW_LENGTH = 0x0D02 70 PROGRAM_BINARY_LENGTH = 0x8741 71 QUERY_RESULT = 0x8866 72 QUERY_RESULT_AVAILABLE = 0x8867 73 R16F = 0x822d 74 R8 = 0x8229 75 READ_FRAMEBUFFER = 0x8ca8 76 READ_FRAMEBUFFER_BINDING = 0x8CAA 77 READ_ONLY = 0x88B8 78 READ_WRITE = 0x88BA 79 RED = 0x1903 80 RENDERER = 0x1F01 81 RENDERBUFFER = 0x8d41 82 RENDERBUFFER_BINDING = 0x8ca7 83 RENDERBUFFER_HEIGHT = 0x8d43 84 RENDERBUFFER_WIDTH = 0x8d42 85 RGB = 0x1907 86 RGBA = 0x1908 87 RGBA8 = 0x8058 88 SHADER_STORAGE_BUFFER = 0x90D2 89 SHADER_STORAGE_BUFFER_BINDING = 0x90D3 90 SHORT = 0x1402 91 SRGB = 0x8c40 92 SRGB_ALPHA_EXT = 0x8c42 93 SRGB8 = 0x8c41 94 SRGB8_ALPHA8 = 0x8c43 95 STATIC_DRAW = 0x88e4 96 STENCIL_BUFFER_BIT = 0x00000400 97 TEXTURE_2D = 0xde1 98 TEXTURE_BINDING_2D = 0x8069 99 TEXTURE_MAG_FILTER = 0x2800 100 TEXTURE_MIN_FILTER = 0x2801 101 TEXTURE_WRAP_S = 0x2802 102 TEXTURE_WRAP_T = 0x2803 103 TEXTURE0 = 0x84c0 104 TEXTURE1 = 0x84c1 105 TRIANGLE_STRIP = 0x5 106 TRIANGLES = 0x4 107 TRUE = 1 108 UNIFORM_BUFFER = 0x8A11 109 UNIFORM_BUFFER_BINDING = 0x8A28 110 UNPACK_ALIGNMENT = 0xcf5 111 UNPACK_ROW_LENGTH = 0x0CF2 112 UNSIGNED_BYTE = 0x1401 113 UNSIGNED_SHORT = 0x1403 114 VIEWPORT = 0x0BA2 115 VERSION = 0x1f02 116 VERTEX_ARRAY_BINDING = 0x85B5 117 VERTEX_SHADER = 0x8b31 118 VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F 119 VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 120 VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 121 VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A 122 VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 123 VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 124 VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 125 WRITE_ONLY = 0x88B9 126 ZERO = 0x0 127 128 // EXT_disjoint_timer_query 129 TIME_ELAPSED_EXT = 0x88BF 130 GPU_DISJOINT_EXT = 0x8FBB 131 )