qml.v1: gopkg.in/qml.v1/gl/2.0 Index | Files

package GL

import "gopkg.in/qml.v1/gl/2.0"

Index

Package Files

gl.go

Constants

const (
    FALSE = 0
    TRUE  = 1
    NONE  = 0

    BYTE           = 0x1400
    UNSIGNED_BYTE  = 0x1401
    SHORT          = 0x1402
    UNSIGNED_SHORT = 0x1403
    INT            = 0x1404
    UNSIGNED_INT   = 0x1405
    FLOAT          = 0x1406
    N2_BYTES       = 0x1407
    N3_BYTES       = 0x1408
    N4_BYTES       = 0x1409
    DOUBLE         = 0x140A

    ACCUM  = 0x0100
    LOAD   = 0x0101
    RETURN = 0x0102
    MULT   = 0x0103
    ADD    = 0x0104

    ACCUM_BUFFER_BIT    = 0x00000200
    ALL_ATTRIB_BITS     = 0xFFFFFFFF
    COLOR_BUFFER_BIT    = 0x00004000
    CURRENT_BIT         = 0x00000001
    DEPTH_BUFFER_BIT    = 0x00000100
    ENABLE_BIT          = 0x00002000
    EVAL_BIT            = 0x00010000
    FOG_BIT             = 0x00000080
    HINT_BIT            = 0x00008000
    LIGHTING_BIT        = 0x00000040
    LINE_BIT            = 0x00000004
    LIST_BIT            = 0x00020000
    MULTISAMPLE_BIT     = 0x20000000
    PIXEL_MODE_BIT      = 0x00000020
    POINT_BIT           = 0x00000002
    POLYGON_BIT         = 0x00000008
    POLYGON_STIPPLE_BIT = 0x00000010
    SCISSOR_BIT         = 0x00080000
    STENCIL_BUFFER_BIT  = 0x00000400
    TEXTURE_BIT         = 0x00040000
    TRANSFORM_BIT       = 0x00001000
    VIEWPORT_BIT        = 0x00000800

    ALWAYS   = 0x0207
    EQUAL    = 0x0202
    GEQUAL   = 0x0206
    GREATER  = 0x0204
    LEQUAL   = 0x0203
    LESS     = 0x0201
    NEVER    = 0x0200
    NOTEQUAL = 0x0205

    LOGIC_OP = 0x0BF1

    DST_ALPHA           = 0x0304
    ONE                 = 1
    ONE_MINUS_DST_ALPHA = 0x0305
    ONE_MINUS_SRC_ALPHA = 0x0303
    ONE_MINUS_SRC_COLOR = 0x0301
    SRC_ALPHA           = 0x0302
    SRC_COLOR           = 0x0300
    ZERO                = 0

    DST_COLOR           = 0x0306
    ONE_MINUS_DST_COLOR = 0x0307
    SRC_ALPHA_SATURATE  = 0x0308

    CLIENT_ALL_ATTRIB_BITS  = 0xFFFFFFFF
    CLIENT_PIXEL_STORE_BIT  = 0x00000001
    CLIENT_VERTEX_ARRAY_BIT = 0x00000002

    CLIP_PLANE0 = 0x3000
    CLIP_PLANE1 = 0x3001
    CLIP_PLANE2 = 0x3002
    CLIP_PLANE3 = 0x3003
    CLIP_PLANE4 = 0x3004
    CLIP_PLANE5 = 0x3005

    BACK           = 0x0405
    FRONT          = 0x0404
    FRONT_AND_BACK = 0x0408

    AMBIENT             = 0x1200
    AMBIENT_AND_DIFFUSE = 0x1602
    DIFFUSE             = 0x1201
    EMISSION            = 0x1600
    SPECULAR            = 0x1202

    AUX0        = 0x0409
    AUX1        = 0x040A
    AUX2        = 0x040B
    AUX3        = 0x040C
    BACK_LEFT   = 0x0402
    BACK_RIGHT  = 0x0403
    FRONT_LEFT  = 0x0400
    FRONT_RIGHT = 0x0401
    LEFT        = 0x0406
    RIGHT       = 0x0407

    ALPHA_TEST           = 0x0BC0
    AUTO_NORMAL          = 0x0D80
    BLEND                = 0x0BE2
    COLOR_ARRAY          = 0x8076
    COLOR_LOGIC_OP       = 0x0BF2
    COLOR_MATERIAL       = 0x0B57
    CULL_FACE            = 0x0B44
    DEPTH_TEST           = 0x0B71
    DITHER               = 0x0BD0
    EDGE_FLAG_ARRAY      = 0x8079
    FOG                  = 0x0B60
    INDEX_ARRAY          = 0x8077
    INDEX_LOGIC_OP       = 0x0BF1
    LIGHT0               = 0x4000
    LIGHT1               = 0x4001
    LIGHT2               = 0x4002
    LIGHT3               = 0x4003
    LIGHT4               = 0x4004
    LIGHT5               = 0x4005
    LIGHT6               = 0x4006
    LIGHT7               = 0x4007
    LIGHTING             = 0x0B50
    LINE_SMOOTH          = 0x0B20
    LINE_STIPPLE         = 0x0B24
    MAP1_COLOR_4         = 0x0D90
    MAP1_INDEX           = 0x0D91
    MAP1_NORMAL          = 0x0D92
    MAP1_TEXTURE_COORD_1 = 0x0D93
    MAP1_TEXTURE_COORD_2 = 0x0D94
    MAP1_TEXTURE_COORD_3 = 0x0D95
    MAP1_TEXTURE_COORD_4 = 0x0D96
    MAP1_VERTEX_3        = 0x0D97
    MAP1_VERTEX_4        = 0x0D98
    MAP2_COLOR_4         = 0x0DB0
    MAP2_INDEX           = 0x0DB1
    MAP2_NORMAL          = 0x0DB2
    MAP2_TEXTURE_COORD_1 = 0x0DB3
    MAP2_TEXTURE_COORD_2 = 0x0DB4
    MAP2_TEXTURE_COORD_3 = 0x0DB5
    MAP2_TEXTURE_COORD_4 = 0x0DB6
    MAP2_VERTEX_3        = 0x0DB7
    MAP2_VERTEX_4        = 0x0DB8
    NORMALIZE            = 0x0BA1
    NORMAL_ARRAY         = 0x8075
    POINT_SMOOTH         = 0x0B10
    POLYGON_OFFSET_FILL  = 0x8037
    POLYGON_OFFSET_LINE  = 0x2A02
    POLYGON_OFFSET_POINT = 0x2A01
    POLYGON_SMOOTH       = 0x0B41
    POLYGON_STIPPLE      = 0x0B42
    SCISSOR_TEST         = 0x0C11
    STENCIL_TEST         = 0x0B90
    TEXTURE_1D           = 0x0DE0
    TEXTURE_2D           = 0x0DE1
    TEXTURE_COORD_ARRAY  = 0x8078
    TEXTURE_GEN_Q        = 0x0C63
    TEXTURE_GEN_R        = 0x0C62
    TEXTURE_GEN_S        = 0x0C60
    TEXTURE_GEN_T        = 0x0C61
    VERTEX_ARRAY         = 0x8074

    INVALID_ENUM      = 0x0500
    INVALID_OPERATION = 0x0502
    INVALID_VALUE     = 0x0501
    NO_ERROR          = 0
    OUT_OF_MEMORY     = 0x0505
    STACK_OVERFLOW    = 0x0503
    STACK_UNDERFLOW   = 0x0504

    N2D               = 0x0600
    N3D               = 0x0601
    N3D_COLOR         = 0x0602
    N3D_COLOR_TEXTURE = 0x0603
    N4D_COLOR_TEXTURE = 0x0604

    BITMAP_TOKEN       = 0x0704
    COPY_PIXEL_TOKEN   = 0x0706
    DRAW_PIXEL_TOKEN   = 0x0705
    LINE_RESET_TOKEN   = 0x0707
    LINE_TOKEN         = 0x0702
    PASS_THROUGH_TOKEN = 0x0700
    POINT_TOKEN        = 0x0701
    POLYGON_TOKEN      = 0x0703

    EXP    = 0x0800
    EXP2   = 0x0801
    LINEAR = 0x2601

    FOG_COLOR   = 0x0B66
    FOG_DENSITY = 0x0B62
    FOG_END     = 0x0B64
    FOG_INDEX   = 0x0B61
    FOG_MODE    = 0x0B65
    FOG_START   = 0x0B63

    CCW = 0x0901
    CW  = 0x0900

    COEFF  = 0x0A00
    DOMAIN = 0x0A02
    ORDER  = 0x0A01

    PIXEL_MAP_A_TO_A = 0x0C79
    PIXEL_MAP_B_TO_B = 0x0C78
    PIXEL_MAP_G_TO_G = 0x0C77
    PIXEL_MAP_I_TO_A = 0x0C75
    PIXEL_MAP_I_TO_B = 0x0C74
    PIXEL_MAP_I_TO_G = 0x0C73
    PIXEL_MAP_I_TO_I = 0x0C70
    PIXEL_MAP_I_TO_R = 0x0C72
    PIXEL_MAP_R_TO_R = 0x0C76
    PIXEL_MAP_S_TO_S = 0x0C71

    ACCUM_ALPHA_BITS              = 0x0D5B
    ACCUM_BLUE_BITS               = 0x0D5A
    ACCUM_CLEAR_VALUE             = 0x0B80
    ACCUM_GREEN_BITS              = 0x0D59
    ACCUM_RED_BITS                = 0x0D58
    ALIASED_LINE_WIDTH_RANGE      = 0x846E
    ALIASED_POINT_SIZE_RANGE      = 0x846D
    ALPHA_BIAS                    = 0x0D1D
    ALPHA_BITS                    = 0x0D55
    ALPHA_SCALE                   = 0x0D1C
    ALPHA_TEST_FUNC               = 0x0BC1
    ALPHA_TEST_REF                = 0x0BC2
    ATTRIB_STACK_DEPTH            = 0x0BB0
    AUX_BUFFERS                   = 0x0C00
    BLEND_DST                     = 0x0BE0
    BLEND_SRC                     = 0x0BE1
    BLUE_BIAS                     = 0x0D1B
    BLUE_BITS                     = 0x0D54
    BLUE_SCALE                    = 0x0D1A
    CLIENT_ATTRIB_STACK_DEPTH     = 0x0BB1
    COLOR_ARRAY_SIZE              = 0x8081
    COLOR_ARRAY_STRIDE            = 0x8083
    COLOR_ARRAY_TYPE              = 0x8082
    COLOR_CLEAR_VALUE             = 0x0C22
    COLOR_MATERIAL_FACE           = 0x0B55
    COLOR_MATERIAL_PARAMETER      = 0x0B56
    COLOR_WRITEMASK               = 0x0C23
    CULL_FACE_MODE                = 0x0B45
    CURRENT_COLOR                 = 0x0B00
    CURRENT_INDEX                 = 0x0B01
    CURRENT_NORMAL                = 0x0B02
    CURRENT_RASTER_COLOR          = 0x0B04
    CURRENT_RASTER_DISTANCE       = 0x0B09
    CURRENT_RASTER_INDEX          = 0x0B05
    CURRENT_RASTER_POSITION       = 0x0B07
    CURRENT_RASTER_POSITION_VALID = 0x0B08
    CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
    CURRENT_TEXTURE_COORDS        = 0x0B03
    DEPTH_BIAS                    = 0x0D1F
    DEPTH_BITS                    = 0x0D56
    DEPTH_CLEAR_VALUE             = 0x0B73
    DEPTH_FUNC                    = 0x0B74
    DEPTH_RANGE                   = 0x0B70
    DEPTH_SCALE                   = 0x0D1E
    DEPTH_WRITEMASK               = 0x0B72
    DOUBLEBUFFER                  = 0x0C32
    DRAW_BUFFER                   = 0x0C01
    EDGE_FLAG                     = 0x0B43
    EDGE_FLAG_ARRAY_STRIDE        = 0x808C
    FEEDBACK_BUFFER_SIZE          = 0x0DF1
    FEEDBACK_BUFFER_TYPE          = 0x0DF2
    FOG_HINT                      = 0x0C54
    FRONT_FACE                    = 0x0B46
    GREEN_BIAS                    = 0x0D19
    GREEN_BITS                    = 0x0D53
    GREEN_SCALE                   = 0x0D18
    INDEX_ARRAY_STRIDE            = 0x8086
    INDEX_ARRAY_TYPE              = 0x8085
    INDEX_BITS                    = 0x0D51
    INDEX_CLEAR_VALUE             = 0x0C20
    INDEX_MODE                    = 0x0C30
    INDEX_OFFSET                  = 0x0D13
    INDEX_SHIFT                   = 0x0D12
    INDEX_WRITEMASK               = 0x0C21
    LIGHT_MODEL_AMBIENT           = 0x0B53
    LIGHT_MODEL_COLOR_CONTROL     = 0x81F8
    LIGHT_MODEL_LOCAL_VIEWER      = 0x0B51
    LIGHT_MODEL_TWO_SIDE          = 0x0B52
    LINE_SMOOTH_HINT              = 0x0C52
    LINE_STIPPLE_PATTERN          = 0x0B25
    LINE_STIPPLE_REPEAT           = 0x0B26
    LINE_WIDTH                    = 0x0B21
    LINE_WIDTH_GRANULARITY        = 0x0B23
    LINE_WIDTH_RANGE              = 0x0B22
    LIST_BASE                     = 0x0B32
    LIST_INDEX                    = 0x0B33
    LIST_MODE                     = 0x0B30
    LOGIC_OP_MODE                 = 0x0BF0
    MAP1_GRID_DOMAIN              = 0x0DD0
    MAP1_GRID_SEGMENTS            = 0x0DD1
    MAP2_GRID_DOMAIN              = 0x0DD2
    MAP2_GRID_SEGMENTS            = 0x0DD3
    MAP_COLOR                     = 0x0D10
    MAP_STENCIL                   = 0x0D11
    MATRIX_MODE                   = 0x0BA0
    MAX_ATTRIB_STACK_DEPTH        = 0x0D35
    MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
    MAX_CLIP_PLANES               = 0x0D32
    MAX_EVAL_ORDER                = 0x0D30
    MAX_LIGHTS                    = 0x0D31
    MAX_LIST_NESTING              = 0x0B31
    MAX_MODELVIEW_STACK_DEPTH     = 0x0D36
    MAX_NAME_STACK_DEPTH          = 0x0D37
    MAX_PIXEL_MAP_TABLE           = 0x0D34
    MAX_PROJECTION_STACK_DEPTH    = 0x0D38
    MAX_TEXTURE_SIZE              = 0x0D33
    MAX_TEXTURE_STACK_DEPTH       = 0x0D39
    MAX_VIEWPORT_DIMS             = 0x0D3A
    MODELVIEW_MATRIX              = 0x0BA6
    MODELVIEW_STACK_DEPTH         = 0x0BA3
    NAME_STACK_DEPTH              = 0x0D70
    NORMAL_ARRAY_STRIDE           = 0x807F
    NORMAL_ARRAY_TYPE             = 0x807E
    PACK_ALIGNMENT                = 0x0D05
    PACK_LSB_FIRST                = 0x0D01
    PACK_ROW_LENGTH               = 0x0D02
    PACK_SKIP_PIXELS              = 0x0D04
    PACK_SKIP_ROWS                = 0x0D03
    PACK_SWAP_BYTES               = 0x0D00
    PERSPECTIVE_CORRECTION_HINT   = 0x0C50
    PIXEL_MAP_A_TO_A_SIZE         = 0x0CB9
    PIXEL_MAP_B_TO_B_SIZE         = 0x0CB8
    PIXEL_MAP_G_TO_G_SIZE         = 0x0CB7
    PIXEL_MAP_I_TO_A_SIZE         = 0x0CB5
    PIXEL_MAP_I_TO_B_SIZE         = 0x0CB4
    PIXEL_MAP_I_TO_G_SIZE         = 0x0CB3
    PIXEL_MAP_I_TO_I_SIZE         = 0x0CB0
    PIXEL_MAP_I_TO_R_SIZE         = 0x0CB2
    PIXEL_MAP_R_TO_R_SIZE         = 0x0CB6
    PIXEL_MAP_S_TO_S_SIZE         = 0x0CB1
    POINT_SIZE                    = 0x0B11
    POINT_SIZE_GRANULARITY        = 0x0B13
    POINT_SIZE_RANGE              = 0x0B12
    POINT_SMOOTH_HINT             = 0x0C51
    POLYGON_MODE                  = 0x0B40
    POLYGON_OFFSET_FACTOR         = 0x8038
    POLYGON_OFFSET_UNITS          = 0x2A00
    POLYGON_SMOOTH_HINT           = 0x0C53
    PROJECTION_MATRIX             = 0x0BA7
    PROJECTION_STACK_DEPTH        = 0x0BA4
    READ_BUFFER                   = 0x0C02
    RED_BIAS                      = 0x0D15
    RED_BITS                      = 0x0D52
    RED_SCALE                     = 0x0D14
    RENDER_MODE                   = 0x0C40
    RGBA_MODE                     = 0x0C31
    SCISSOR_BOX                   = 0x0C10
    SELECTION_BUFFER_SIZE         = 0x0DF4
    SHADE_MODEL                   = 0x0B54
    SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
    SMOOTH_LINE_WIDTH_RANGE       = 0x0B22
    SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
    SMOOTH_POINT_SIZE_RANGE       = 0x0B12
    STENCIL_BITS                  = 0x0D57
    STENCIL_CLEAR_VALUE           = 0x0B91
    STENCIL_FAIL                  = 0x0B94
    STENCIL_FUNC                  = 0x0B92
    STENCIL_PASS_DEPTH_FAIL       = 0x0B95
    STENCIL_PASS_DEPTH_PASS       = 0x0B96
    STENCIL_REF                   = 0x0B97
    STENCIL_VALUE_MASK            = 0x0B93
    STENCIL_WRITEMASK             = 0x0B98
    STEREO                        = 0x0C33
    SUBPIXEL_BITS                 = 0x0D50
    TEXTURE_BINDING_1D            = 0x8068
    TEXTURE_BINDING_2D            = 0x8069
    TEXTURE_BINDING_3D            = 0x806A
    TEXTURE_COORD_ARRAY_SIZE      = 0x8088
    TEXTURE_COORD_ARRAY_STRIDE    = 0x808A
    TEXTURE_COORD_ARRAY_TYPE      = 0x8089
    TEXTURE_MATRIX                = 0x0BA8
    TEXTURE_STACK_DEPTH           = 0x0BA5
    UNPACK_ALIGNMENT              = 0x0CF5
    UNPACK_LSB_FIRST              = 0x0CF1
    UNPACK_ROW_LENGTH             = 0x0CF2
    UNPACK_SKIP_PIXELS            = 0x0CF4
    UNPACK_SKIP_ROWS              = 0x0CF3
    UNPACK_SWAP_BYTES             = 0x0CF0
    VERTEX_ARRAY_SIZE             = 0x807A
    VERTEX_ARRAY_STRIDE           = 0x807C
    VERTEX_ARRAY_TYPE             = 0x807B
    VIEWPORT                      = 0x0BA2
    ZOOM_X                        = 0x0D16
    ZOOM_Y                        = 0x0D17

    COLOR_ARRAY_POINTER         = 0x8090
    EDGE_FLAG_ARRAY_POINTER     = 0x8093
    FEEDBACK_BUFFER_POINTER     = 0x0DF0
    INDEX_ARRAY_POINTER         = 0x8091
    NORMAL_ARRAY_POINTER        = 0x808F
    SELECTION_BUFFER_POINTER    = 0x0DF3
    TEXTURE_COORD_ARRAY_POINTER = 0x8092
    VERTEX_ARRAY_POINTER        = 0x808E

    TEXTURE_ALPHA_SIZE      = 0x805F
    TEXTURE_BLUE_SIZE       = 0x805E
    TEXTURE_BORDER          = 0x1005
    TEXTURE_BORDER_COLOR    = 0x1004
    TEXTURE_COMPONENTS      = 0x1003
    TEXTURE_GREEN_SIZE      = 0x805D
    TEXTURE_HEIGHT          = 0x1001
    TEXTURE_INTENSITY_SIZE  = 0x8061
    TEXTURE_INTERNAL_FORMAT = 0x1003
    TEXTURE_LUMINANCE_SIZE  = 0x8060
    TEXTURE_MAG_FILTER      = 0x2800
    TEXTURE_MIN_FILTER      = 0x2801
    TEXTURE_PRIORITY        = 0x8066
    TEXTURE_RED_SIZE        = 0x805C
    TEXTURE_RESIDENT        = 0x8067
    TEXTURE_WIDTH           = 0x1000
    TEXTURE_WRAP_S          = 0x2802
    TEXTURE_WRAP_T          = 0x2803

    DONT_CARE = 0x1100
    FASTEST   = 0x1101
    NICEST    = 0x1102

    FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
    GENERATE_MIPMAP_HINT            = 0x8192
    TEXTURE_COMPRESSION_HINT        = 0x84EF

    C3F_V3F         = 0x2A24
    C4F_N3F_V3F     = 0x2A26
    C4UB_V2F        = 0x2A22
    C4UB_V3F        = 0x2A23
    N3F_V3F         = 0x2A25
    T2F_C3F_V3F     = 0x2A2A
    T2F_C4F_N3F_V3F = 0x2A2C
    T2F_C4UB_V3F    = 0x2A29
    T2F_N3F_V3F     = 0x2A2B
    T2F_V3F         = 0x2A27
    T4F_C4F_N3F_V4F = 0x2A2D
    T4F_V4F         = 0x2A28
    V2F             = 0x2A20
    V3F             = 0x2A21

    MODULATE = 0x2100
    REPLACE  = 0x1E01

    SEPARATE_SPECULAR_COLOR = 0x81FA
    SINGLE_COLOR            = 0x81F9

    CONSTANT_ATTENUATION  = 0x1207
    LINEAR_ATTENUATION    = 0x1208
    POSITION              = 0x1203
    QUADRATIC_ATTENUATION = 0x1209
    SPOT_CUTOFF           = 0x1206
    SPOT_DIRECTION        = 0x1204
    SPOT_EXPONENT         = 0x1205

    COMPILE             = 0x1300
    COMPILE_AND_EXECUTE = 0x1301

    AND           = 0x1501
    AND_INVERTED  = 0x1504
    AND_REVERSE   = 0x1502
    CLEAR         = 0x1500
    COPY          = 0x1503
    COPY_INVERTED = 0x150C
    EQUIV         = 0x1509
    INVERT        = 0x150A
    NAND          = 0x150E
    NOOP          = 0x1505
    NOR           = 0x1508
    OR            = 0x1507
    OR_INVERTED   = 0x150D
    OR_REVERSE    = 0x150B
    SET           = 0x150F
    XOR           = 0x1506

    COLOR_INDEXES = 0x1603
    SHININESS     = 0x1601

    MODELVIEW  = 0x1700
    PROJECTION = 0x1701
    TEXTURE    = 0x1702

    LINE  = 0x1B01
    POINT = 0x1B00

    FILL = 0x1B02

    COLOR   = 0x1800
    DEPTH   = 0x1801
    STENCIL = 0x1802

    ALPHA           = 0x1906
    BLUE            = 0x1905
    COLOR_INDEX     = 0x1900
    DEPTH_COMPONENT = 0x1902
    GREEN           = 0x1904
    LUMINANCE       = 0x1909
    LUMINANCE_ALPHA = 0x190A
    RED             = 0x1903
    RGB             = 0x1907
    RGBA            = 0x1908
    STENCIL_INDEX   = 0x1901

    ALPHA12             = 0x803D
    ALPHA16             = 0x803E
    ALPHA4              = 0x803B
    ALPHA8              = 0x803C
    INTENSITY           = 0x8049
    INTENSITY12         = 0x804C
    INTENSITY16         = 0x804D
    INTENSITY4          = 0x804A
    INTENSITY8          = 0x804B
    LUMINANCE12         = 0x8041
    LUMINANCE12_ALPHA12 = 0x8047
    LUMINANCE12_ALPHA4  = 0x8046
    LUMINANCE16         = 0x8042
    LUMINANCE16_ALPHA16 = 0x8048
    LUMINANCE4          = 0x803F
    LUMINANCE4_ALPHA4   = 0x8043
    LUMINANCE6_ALPHA2   = 0x8044
    LUMINANCE8          = 0x8040
    LUMINANCE8_ALPHA8   = 0x8045
    R3_G3_B2            = 0x2A10
    RGB10               = 0x8052
    RGB10_A2            = 0x8059
    RGB12               = 0x8053
    RGB16               = 0x8054
    RGB4                = 0x804F
    RGB5                = 0x8050
    RGB5_A1             = 0x8057
    RGB8                = 0x8051
    RGBA12              = 0x805A
    RGBA16              = 0x805B
    RGBA2               = 0x8055
    RGBA4               = 0x8056
    RGBA8               = 0x8058

    PACK_IMAGE_HEIGHT   = 0x806C
    PACK_SKIP_IMAGES    = 0x806B
    UNPACK_IMAGE_HEIGHT = 0x806E
    UNPACK_SKIP_IMAGES  = 0x806D

    BITMAP                  = 0x1A00
    UNSIGNED_BYTE_3_3_2     = 0x8032
    UNSIGNED_INT_10_10_10_2 = 0x8036
    UNSIGNED_INT_8_8_8_8    = 0x8035
    UNSIGNED_SHORT_4_4_4_4  = 0x8033
    UNSIGNED_SHORT_5_5_5_1  = 0x8034

    POINT_DISTANCE_ATTENUATION = 0x8129
    POINT_FADE_THRESHOLD_SIZE  = 0x8128
    POINT_SIZE_MAX             = 0x8127
    POINT_SIZE_MIN             = 0x8126

    LINES          = 0x0001
    LINE_LOOP      = 0x0002
    LINE_STRIP     = 0x0003
    POINTS         = 0x0000
    POLYGON        = 0x0009
    QUADS          = 0x0007
    QUAD_STRIP     = 0x0008
    TRIANGLES      = 0x0004
    TRIANGLE_FAN   = 0x0006
    TRIANGLE_STRIP = 0x0005

    FEEDBACK = 0x1C01
    RENDER   = 0x1C00
    SELECT   = 0x1C02

    FLAT   = 0x1D00
    SMOOTH = 0x1D01

    DECR = 0x1E03
    INCR = 0x1E02
    KEEP = 0x1E00

    EXTENSIONS = 0x1F03
    RENDERER   = 0x1F01
    VENDOR     = 0x1F00
    VERSION    = 0x1F02

    S   = 0x2000
    T   = 0x2001
    R   = 0x2002
    Q   = 0x2003

    DECAL = 0x2101

    TEXTURE_ENV_COLOR = 0x2201
    TEXTURE_ENV_MODE  = 0x2200

    TEXTURE_ENV = 0x2300

    EYE_LINEAR    = 0x2400
    OBJECT_LINEAR = 0x2401
    SPHERE_MAP    = 0x2402

    EYE_PLANE        = 0x2502
    OBJECT_PLANE     = 0x2501
    TEXTURE_GEN_MODE = 0x2500

    NEAREST = 0x2600

    LINEAR_MIPMAP_LINEAR   = 0x2703
    LINEAR_MIPMAP_NEAREST  = 0x2701
    NEAREST_MIPMAP_LINEAR  = 0x2702
    NEAREST_MIPMAP_NEAREST = 0x2700

    GENERATE_MIPMAP = 0x8191
    TEXTURE_WRAP_R  = 0x8072

    PROXY_TEXTURE_1D   = 0x8063
    PROXY_TEXTURE_2D   = 0x8064
    PROXY_TEXTURE_3D   = 0x8070
    TEXTURE_3D         = 0x806F
    TEXTURE_BASE_LEVEL = 0x813C
    TEXTURE_MAX_LEVEL  = 0x813D
    TEXTURE_MAX_LOD    = 0x813B
    TEXTURE_MIN_LOD    = 0x813A

    CLAMP           = 0x2900
    CLAMP_TO_BORDER = 0x812D
    CLAMP_TO_EDGE   = 0x812F
    REPEAT          = 0x2901

    CONSTANT_COLOR                       = 0x8001
    ONE_MINUS_CONSTANT_COLOR             = 0x8002
    CONSTANT_ALPHA                       = 0x8003
    ONE_MINUS_CONSTANT_ALPHA             = 0x8004
    FUNC_ADD                             = 0x8006
    MIN                                  = 0x8007
    MAX                                  = 0x8008
    BLEND_EQUATION_RGB                   = 0x8009
    FUNC_SUBTRACT                        = 0x800A
    FUNC_REVERSE_SUBTRACT                = 0x800B
    RESCALE_NORMAL                       = 0x803A
    TEXTURE_DEPTH                        = 0x8071
    MAX_3D_TEXTURE_SIZE                  = 0x8073
    MULTISAMPLE                          = 0x809D
    SAMPLE_ALPHA_TO_COVERAGE             = 0x809E
    SAMPLE_ALPHA_TO_ONE                  = 0x809F
    SAMPLE_COVERAGE                      = 0x80A0
    SAMPLE_BUFFERS                       = 0x80A8
    SAMPLES                              = 0x80A9
    SAMPLE_COVERAGE_VALUE                = 0x80AA
    SAMPLE_COVERAGE_INVERT               = 0x80AB
    BLEND_DST_RGB                        = 0x80C8
    BLEND_SRC_RGB                        = 0x80C9
    BLEND_DST_ALPHA                      = 0x80CA
    BLEND_SRC_ALPHA                      = 0x80CB
    BGR                                  = 0x80E0
    BGRA                                 = 0x80E1
    MAX_ELEMENTS_VERTICES                = 0x80E8
    MAX_ELEMENTS_INDICES                 = 0x80E9
    DEPTH_COMPONENT16                    = 0x81A5
    DEPTH_COMPONENT24                    = 0x81A6
    DEPTH_COMPONENT32                    = 0x81A7
    UNSIGNED_BYTE_2_3_3_REV              = 0x8362
    UNSIGNED_SHORT_5_6_5                 = 0x8363
    UNSIGNED_SHORT_5_6_5_REV             = 0x8364
    UNSIGNED_SHORT_4_4_4_4_REV           = 0x8365
    UNSIGNED_SHORT_1_5_5_5_REV           = 0x8366
    UNSIGNED_INT_8_8_8_8_REV             = 0x8367
    UNSIGNED_INT_2_10_10_10_REV          = 0x8368
    MIRRORED_REPEAT                      = 0x8370
    FOG_COORDINATE_SOURCE                = 0x8450
    FOG_COORD_SRC                        = 0x8450
    FOG_COORDINATE                       = 0x8451
    FOG_COORD                            = 0x8451
    FRAGMENT_DEPTH                       = 0x8452
    CURRENT_FOG_COORDINATE               = 0x8453
    CURRENT_FOG_COORD                    = 0x8453
    FOG_COORDINATE_ARRAY_TYPE            = 0x8454
    FOG_COORD_ARRAY_TYPE                 = 0x8454
    FOG_COORDINATE_ARRAY_STRIDE          = 0x8455
    FOG_COORD_ARRAY_STRIDE               = 0x8455
    FOG_COORDINATE_ARRAY_POINTER         = 0x8456
    FOG_COORD_ARRAY_POINTER              = 0x8456
    FOG_COORDINATE_ARRAY                 = 0x8457
    FOG_COORD_ARRAY                      = 0x8457
    COLOR_SUM                            = 0x8458
    CURRENT_SECONDARY_COLOR              = 0x8459
    SECONDARY_COLOR_ARRAY_SIZE           = 0x845A
    SECONDARY_COLOR_ARRAY_TYPE           = 0x845B
    SECONDARY_COLOR_ARRAY_STRIDE         = 0x845C
    SECONDARY_COLOR_ARRAY_POINTER        = 0x845D
    SECONDARY_COLOR_ARRAY                = 0x845E
    TEXTURE0                             = 0x84C0
    TEXTURE1                             = 0x84C1
    TEXTURE2                             = 0x84C2
    TEXTURE3                             = 0x84C3
    TEXTURE4                             = 0x84C4
    TEXTURE5                             = 0x84C5
    TEXTURE6                             = 0x84C6
    TEXTURE7                             = 0x84C7
    TEXTURE8                             = 0x84C8
    TEXTURE9                             = 0x84C9
    TEXTURE10                            = 0x84CA
    TEXTURE11                            = 0x84CB
    TEXTURE12                            = 0x84CC
    TEXTURE13                            = 0x84CD
    TEXTURE14                            = 0x84CE
    TEXTURE15                            = 0x84CF
    TEXTURE16                            = 0x84D0
    TEXTURE17                            = 0x84D1
    TEXTURE18                            = 0x84D2
    TEXTURE19                            = 0x84D3
    TEXTURE20                            = 0x84D4
    TEXTURE21                            = 0x84D5
    TEXTURE22                            = 0x84D6
    TEXTURE23                            = 0x84D7
    TEXTURE24                            = 0x84D8
    TEXTURE25                            = 0x84D9
    TEXTURE26                            = 0x84DA
    TEXTURE27                            = 0x84DB
    TEXTURE28                            = 0x84DC
    TEXTURE29                            = 0x84DD
    TEXTURE30                            = 0x84DE
    TEXTURE31                            = 0x84DF
    ACTIVE_TEXTURE                       = 0x84E0
    CLIENT_ACTIVE_TEXTURE                = 0x84E1
    MAX_TEXTURE_UNITS                    = 0x84E2
    TRANSPOSE_MODELVIEW_MATRIX           = 0x84E3
    TRANSPOSE_PROJECTION_MATRIX          = 0x84E4
    TRANSPOSE_TEXTURE_MATRIX             = 0x84E5
    TRANSPOSE_COLOR_MATRIX               = 0x84E6
    SUBTRACT                             = 0x84E7
    COMPRESSED_ALPHA                     = 0x84E9
    COMPRESSED_LUMINANCE                 = 0x84EA
    COMPRESSED_LUMINANCE_ALPHA           = 0x84EB
    COMPRESSED_INTENSITY                 = 0x84EC
    COMPRESSED_RGB                       = 0x84ED
    COMPRESSED_RGBA                      = 0x84EE
    MAX_TEXTURE_LOD_BIAS                 = 0x84FD
    TEXTURE_FILTER_CONTROL               = 0x8500
    TEXTURE_LOD_BIAS                     = 0x8501
    INCR_WRAP                            = 0x8507
    DECR_WRAP                            = 0x8508
    NORMAL_MAP                           = 0x8511
    REFLECTION_MAP                       = 0x8512
    TEXTURE_CUBE_MAP                     = 0x8513
    TEXTURE_BINDING_CUBE_MAP             = 0x8514
    TEXTURE_CUBE_MAP_POSITIVE_X          = 0x8515
    TEXTURE_CUBE_MAP_NEGATIVE_X          = 0x8516
    TEXTURE_CUBE_MAP_POSITIVE_Y          = 0x8517
    TEXTURE_CUBE_MAP_NEGATIVE_Y          = 0x8518
    TEXTURE_CUBE_MAP_POSITIVE_Z          = 0x8519
    TEXTURE_CUBE_MAP_NEGATIVE_Z          = 0x851A
    PROXY_TEXTURE_CUBE_MAP               = 0x851B
    MAX_CUBE_MAP_TEXTURE_SIZE            = 0x851C
    COMBINE                              = 0x8570
    COMBINE_RGB                          = 0x8571
    COMBINE_ALPHA                        = 0x8572
    RGB_SCALE                            = 0x8573
    ADD_SIGNED                           = 0x8574
    INTERPOLATE                          = 0x8575
    CONSTANT                             = 0x8576
    PRIMARY_COLOR                        = 0x8577
    PREVIOUS                             = 0x8578
    SOURCE0_RGB                          = 0x8580
    SRC0_RGB                             = 0x8580
    SOURCE1_RGB                          = 0x8581
    SRC1_RGB                             = 0x8581
    SOURCE2_RGB                          = 0x8582
    SRC2_RGB                             = 0x8582
    SOURCE0_ALPHA                        = 0x8588
    SRC0_ALPHA                           = 0x8588
    SOURCE1_ALPHA                        = 0x8589
    SRC1_ALPHA                           = 0x8589
    SOURCE2_ALPHA                        = 0x858A
    SRC2_ALPHA                           = 0x858A
    OPERAND0_RGB                         = 0x8590
    OPERAND1_RGB                         = 0x8591
    OPERAND2_RGB                         = 0x8592
    OPERAND0_ALPHA                       = 0x8598
    OPERAND1_ALPHA                       = 0x8599
    OPERAND2_ALPHA                       = 0x859A
    VERTEX_ATTRIB_ARRAY_ENABLED          = 0x8622
    VERTEX_ATTRIB_ARRAY_SIZE             = 0x8623
    VERTEX_ATTRIB_ARRAY_STRIDE           = 0x8624
    VERTEX_ATTRIB_ARRAY_TYPE             = 0x8625
    CURRENT_VERTEX_ATTRIB                = 0x8626
    VERTEX_PROGRAM_POINT_SIZE            = 0x8642
    VERTEX_PROGRAM_TWO_SIDE              = 0x8643
    VERTEX_ATTRIB_ARRAY_POINTER          = 0x8645
    TEXTURE_COMPRESSED_IMAGE_SIZE        = 0x86A0
    TEXTURE_COMPRESSED                   = 0x86A1
    NUM_COMPRESSED_TEXTURE_FORMATS       = 0x86A2
    COMPRESSED_TEXTURE_FORMATS           = 0x86A3
    DOT3_RGB                             = 0x86AE
    DOT3_RGBA                            = 0x86AF
    BUFFER_SIZE                          = 0x8764
    BUFFER_USAGE                         = 0x8765
    STENCIL_BACK_FUNC                    = 0x8800
    STENCIL_BACK_FAIL                    = 0x8801
    STENCIL_BACK_PASS_DEPTH_FAIL         = 0x8802
    STENCIL_BACK_PASS_DEPTH_PASS         = 0x8803
    MAX_DRAW_BUFFERS                     = 0x8824
    DRAW_BUFFER0                         = 0x8825
    DRAW_BUFFER1                         = 0x8826
    DRAW_BUFFER2                         = 0x8827
    DRAW_BUFFER3                         = 0x8828
    DRAW_BUFFER4                         = 0x8829
    DRAW_BUFFER5                         = 0x882A
    DRAW_BUFFER6                         = 0x882B
    DRAW_BUFFER7                         = 0x882C
    DRAW_BUFFER8                         = 0x882D
    DRAW_BUFFER9                         = 0x882E
    DRAW_BUFFER10                        = 0x882F
    DRAW_BUFFER11                        = 0x8830
    DRAW_BUFFER12                        = 0x8831
    DRAW_BUFFER13                        = 0x8832
    DRAW_BUFFER14                        = 0x8833
    DRAW_BUFFER15                        = 0x8834
    BLEND_EQUATION_ALPHA                 = 0x883D
    TEXTURE_DEPTH_SIZE                   = 0x884A
    DEPTH_TEXTURE_MODE                   = 0x884B
    TEXTURE_COMPARE_MODE                 = 0x884C
    TEXTURE_COMPARE_FUNC                 = 0x884D
    COMPARE_R_TO_TEXTURE                 = 0x884E
    POINT_SPRITE                         = 0x8861
    COORD_REPLACE                        = 0x8862
    QUERY_COUNTER_BITS                   = 0x8864
    CURRENT_QUERY                        = 0x8865
    QUERY_RESULT                         = 0x8866
    QUERY_RESULT_AVAILABLE               = 0x8867
    MAX_VERTEX_ATTRIBS                   = 0x8869
    VERTEX_ATTRIB_ARRAY_NORMALIZED       = 0x886A
    MAX_TEXTURE_COORDS                   = 0x8871
    MAX_TEXTURE_IMAGE_UNITS              = 0x8872
    ARRAY_BUFFER                         = 0x8892
    ELEMENT_ARRAY_BUFFER                 = 0x8893
    ARRAY_BUFFER_BINDING                 = 0x8894
    ELEMENT_ARRAY_BUFFER_BINDING         = 0x8895
    VERTEX_ARRAY_BUFFER_BINDING          = 0x8896
    NORMAL_ARRAY_BUFFER_BINDING          = 0x8897
    COLOR_ARRAY_BUFFER_BINDING           = 0x8898
    INDEX_ARRAY_BUFFER_BINDING           = 0x8899
    TEXTURE_COORD_ARRAY_BUFFER_BINDING   = 0x889A
    EDGE_FLAG_ARRAY_BUFFER_BINDING       = 0x889B
    SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
    FOG_COORDINATE_ARRAY_BUFFER_BINDING  = 0x889D
    FOG_COORD_ARRAY_BUFFER_BINDING       = 0x889D
    WEIGHT_ARRAY_BUFFER_BINDING          = 0x889E
    VERTEX_ATTRIB_ARRAY_BUFFER_BINDING   = 0x889F
    READ_ONLY                            = 0x88B8
    WRITE_ONLY                           = 0x88B9
    READ_WRITE                           = 0x88BA
    BUFFER_ACCESS                        = 0x88BB
    BUFFER_MAPPED                        = 0x88BC
    BUFFER_MAP_POINTER                   = 0x88BD
    STREAM_DRAW                          = 0x88E0
    STREAM_READ                          = 0x88E1
    STREAM_COPY                          = 0x88E2
    STATIC_DRAW                          = 0x88E4
    STATIC_READ                          = 0x88E5
    STATIC_COPY                          = 0x88E6
    DYNAMIC_DRAW                         = 0x88E8
    DYNAMIC_READ                         = 0x88E9
    DYNAMIC_COPY                         = 0x88EA
    SAMPLES_PASSED                       = 0x8914
    FRAGMENT_SHADER                      = 0x8B30
    VERTEX_SHADER                        = 0x8B31
    MAX_FRAGMENT_UNIFORM_COMPONENTS      = 0x8B49
    MAX_VERTEX_UNIFORM_COMPONENTS        = 0x8B4A
    MAX_VARYING_FLOATS                   = 0x8B4B
    MAX_VERTEX_TEXTURE_IMAGE_UNITS       = 0x8B4C
    MAX_COMBINED_TEXTURE_IMAGE_UNITS     = 0x8B4D
    SHADER_TYPE                          = 0x8B4F
    FLOAT_VEC2                           = 0x8B50
    FLOAT_VEC3                           = 0x8B51
    FLOAT_VEC4                           = 0x8B52
    INT_VEC2                             = 0x8B53
    INT_VEC3                             = 0x8B54
    INT_VEC4                             = 0x8B55
    BOOL                                 = 0x8B56
    BOOL_VEC2                            = 0x8B57
    BOOL_VEC3                            = 0x8B58
    BOOL_VEC4                            = 0x8B59
    FLOAT_MAT2                           = 0x8B5A
    FLOAT_MAT3                           = 0x8B5B
    FLOAT_MAT4                           = 0x8B5C
    SAMPLER_1D                           = 0x8B5D
    SAMPLER_2D                           = 0x8B5E
    SAMPLER_3D                           = 0x8B5F
    SAMPLER_CUBE                         = 0x8B60
    SAMPLER_1D_SHADOW                    = 0x8B61
    SAMPLER_2D_SHADOW                    = 0x8B62
    DELETE_STATUS                        = 0x8B80
    COMPILE_STATUS                       = 0x8B81
    LINK_STATUS                          = 0x8B82
    VALIDATE_STATUS                      = 0x8B83
    INFO_LOG_LENGTH                      = 0x8B84
    ATTACHED_SHADERS                     = 0x8B85
    ACTIVE_UNIFORMS                      = 0x8B86
    ACTIVE_UNIFORM_MAX_LENGTH            = 0x8B87
    SHADER_SOURCE_LENGTH                 = 0x8B88
    ACTIVE_ATTRIBUTES                    = 0x8B89
    ACTIVE_ATTRIBUTE_MAX_LENGTH          = 0x8B8A
    SHADING_LANGUAGE_VERSION             = 0x8B8C
    CURRENT_PROGRAM                      = 0x8B8D
    POINT_SPRITE_COORD_ORIGIN            = 0x8CA0
    LOWER_LEFT                           = 0x8CA1
    UPPER_LEFT                           = 0x8CA2
    STENCIL_BACK_REF                     = 0x8CA3
    STENCIL_BACK_VALUE_MASK              = 0x8CA4
    STENCIL_BACK_WRITEMASK               = 0x8CA5
)

type GL Uses

type GL struct {
    // contains filtered or unexported fields
}

GL implements the OpenGL version 2.0 API. Values of this type must be created via the API function, and it must not be used after the associated OpenGL context becomes invalid.

func API Uses

func API(context glbase.Contexter) *GL

API returns a value that offers methods matching the OpenGL version 2.0 API.

The returned API must not be used after the provided OpenGL context becomes invalid.

func (*GL) Accum Uses

func (gl *GL) Accum(op glbase.Enum, value float32)

Accum executes an operation on the accumulation buffer.

Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD, GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is used.

The accumulation buffer is an extended-range color buffer. Images are not rendered into it. Rather, images rendered into one of the color buffers are added to the contents of the accumulation buffer after rendering. Effects such as antialiasing (of points, lines, and polygons), motion blur, and depth of field can be created by accumulating images generated with different transformation matrices.

Each pixel in the accumulation buffer consists of red, green, blue, and alpha values. The number of bits per component in the accumulation buffer depends on the implementation. You can examine this number by calling GetIntegerv four times, with arguments GL.ACCUM_RED_BITS, GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS. Regardless of the number of bits per component, the range of values stored by each component is (-1, 1). The accumulation buffer pixels are mapped one-to-one with frame buffer pixels.

All accumulation buffer operations are limited to the area of the current scissor box and applied identically to the red, green, blue, and alpha components of each pixel. If a Accum operation results in a value outside the range (-1, 1), the contents of an accumulation buffer pixel component are undefined.

The operations are as follows:

GL.ACCUM
    Obtains R, G, B, and A values from the buffer currently selected for
    reading (see ReadBuffer). Each component value is divided by 2 n -
    1 , where n is the number of bits allocated to each color component
    in the currently selected buffer. The result is a floating-point
    value in the range 0 1 , which is multiplied by value and added to
    the corresponding pixel component in the accumulation buffer,
    thereby updating the accumulation buffer.

GL.LOAD
    Similar to GL.ACCUM, except that the current value in the
    accumulation buffer is not used in the calculation of the new value.
    That is, the R, G, B, and A values from the currently selected
    buffer are divided by 2 n - 1 , multiplied by value, and then stored
    in the corresponding accumulation buffer cell, overwriting the
    current value.

GL.ADD
    Adds value to each R, G, B, and A in the accumulation buffer.

GL.MULT
    Multiplies each R, G, B, and A in the accumulation buffer by value
    and returns the scaled component to its corresponding accumulation
    buffer location.

GL.RETURN
    Transfers accumulation buffer values to the color buffer or buffers
    currently selected for writing. Each R, G, B, and A component is
    multiplied by value, then multiplied by 2 n - 1 , clamped to the
    range 0 2 n - 1 , and stored in the corresponding display buffer
    cell. The only fragment operations that are applied to this transfer
    are pixel ownership, scissor, dithering, and color writemasks.

To clear the accumulation buffer, call ClearAccum with R, G, B, and A values to set it to, then call Clear with the accumulation buffer enabled.

Error GL.INVALID_ENUM is generated if op is not an accepted value. GL.INVALID_OPERATION is generated if there is no accumulation buffer. GL.INVALID_OPERATION is generated if Accum is executed between the execution of Begin and the corresponding execution of End.

func (*GL) ActiveTexture Uses

func (gl *GL) ActiveTexture(texture glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml

func (*GL) AlphaFunc Uses

func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml

func (*GL) AreTexturesResident Uses

func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml

func (*GL) ArrayElement Uses

func (gl *GL) ArrayElement(i int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml

func (*GL) AttachShader Uses

func (gl *GL) AttachShader(program glbase.Program, shader glbase.Shader)

AttachShader attaches a shader object to a program object.

In order to create an executable, there must be a way to specify the list of things that will be linked together. Program objects provide this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object. This indicates that shader will be included in link operations that will be performed on program.

All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete shader. It is also permissible to attach a shader object to more than one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until DetachShader is called to detach it from all program objects to which it is attached.

Error GL.INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if shader is not a shader object. GL.INVALID_OPERATION is generated if shader is already attached to program. GL.INVALID_OPERATION is generated if AttachShader is executed between the execution of Begin and the corresponding execution of End.

AttachShader is available in GL version 2.0 or greater.

func (*GL) Begin Uses

func (gl *GL) Begin(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml

func (*GL) BeginQuery Uses

func (gl *GL) BeginQuery(target glbase.Enum, id uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glBeginQuery.xml

func (*GL) BindAttribLocation Uses

func (gl *GL) BindAttribLocation(program glbase.Program, index glbase.Attrib, name string)

BindAttribLocation associates a user-defined attribute variable in the program object specified by program with a generic vertex attribute index. The name parameter specifies the name of the vertex shader attribute variable to which index is to be bound. When program is made part of the current state, values provided via the generic vertex attribute index will modify the value of the user-defined attribute variable specified by name.

If name refers to a matrix attribute variable, index refers to the first column of the matrix. Other matrix columns are then automatically bound to locations index+1 for a matrix of type mat2; index+1 and index+2 for a matrix of type mat3; and index+1, index+2, and index+3 for a matrix of type mat4.

This command makes it possible for vertex shaders to use descriptive names for attribute variables rather than generic variables that are numbered from 0 to GL.MAX_VERTEX_ATTRIBS-1. The values sent to each generic attribute index are part of current state, just like standard vertex attributes such as color, normal, and vertex position. If a different program object is made current by calling UseProgram, the generic vertex attributes are tracked in such a way that the same values will be observed by attributes in the new program object that are also bound to index.

Attribute variable name-to-generic attribute index bindings for a program object can be explicitly assigned at any time by calling BindAttribLocation. Attribute bindings do not go into effect until LinkProgram is called. After a program object has been linked successfully, the index values for generic attributes remain fixed (and their values can be queried) until the next link command occurs.

Applications are not allowed to bind any of the standard OpenGL vertex attributes using this command, as they are bound automatically when needed. Any attribute binding that occurs after the program object has been linked will not take effect until the next time the program object is linked.

If name was bound previously, that information is lost. Thus you cannot bind one user-defined attribute variable to multiple indices, but you can bind multiple user-defined attribute variables to the same index.

Applications are allowed to bind more than one user-defined attribute variable to the same generic vertex attribute index. This is called aliasing, and it is allowed only if just one of the aliased attributes is active in the executable program, or if no path through the shader consumes more than one attribute of a set of attributes aliased to the same location. The compiler and linker are allowed to assume that no aliasing is done and are free to employ optimizations that work only in the absence of aliasing. OpenGL implementations are not required to do error checking to detect aliasing. Because there is no way to bind standard attributes, it is not possible to alias generic attributes with conventional ones (except for generic attribute 0).

BindAttribLocation can be called before any vertex shader objects are bound to the specified program object. It is also permissible to bind a generic attribute index to an attribute variable name that is never used in a vertex shader.

Active attributes that are not explicitly bound will be bound by the linker when LinkProgram is called. The locations assigned can be queried by calling GetAttribLocation.

Error GL.INVALID_VALUE is generated if index is greater than or equal to GL.MAX_VERTEX_ATTRIBS. GL.INVALID_OPERATION is generated if name starts with the reserved prefix "gl_". GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if BindAttribLocation is executed between the execution of Begin and the corresponding execution of End.

BindAttribLocation is available in GL version 2.0 or greater.

func (*GL) BindBuffer Uses

func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer)

BindBuffer creates or puts in use a named buffer object. Calling BindBuffer with target set to GL.ARRAY_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER and buffer set to the name of the new buffer object binds the buffer object name to the target. When a buffer object is bound to a target, the previous binding for that target is automatically broken.

Buffer object names are unsigned integers. The value zero is reserved, but there is no default buffer object for each buffer object target. Instead, buffer set to zero effectively unbinds any buffer object previously bound, and restores client memory usage for that buffer object target. Buffer object names and the corresponding buffer object contents are local to the shared display-list space (see XCreateContext) of the current GL rendering context; two rendering contexts share buffer object names only if they also share display lists.

GenBuffers may be called to generate a set of new buffer object names.

The state of a buffer object immediately after it is first bound is an unmapped zero-sized memory buffer with GL.READ_WRITE access and GL.STATIC_DRAW usage.

While a non-zero buffer object name is bound, GL operations on the target to which it is bound affect the bound buffer object, and queries of the target to which it is bound return state from the bound buffer object. While buffer object name zero is bound, as in the initial state, attempts to modify or query state on the target to which it is bound generates an GL.INVALID_OPERATION error.

When vertex array pointer state is changed, for example by a call to NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING) is copied into the corresponding client state for the vertex array type being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex array pointer parameter that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER target, the indices parameter of DrawElements, DrawRangeElements, or MultiDrawElements that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER target, the following commands are affected: GetCompressedTexImage, GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap, GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The pointer parameter that is traditionally interpreted as a pointer to client-side memory where the pixels are to be packed is instead interpreted as an offset within the buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER target, the following commands are affected: Bitmap, ColorSubTable, ColorTable, CompressedTexImage1D, CompressedTexImage2D, CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D, CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D, DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D. The pointer parameter that is traditionally interpreted as a pointer to client-side memory from which the pixels are to be unpacked is instead interpreted as an offset within the buffer object measured in basic machine units.

A buffer object binding created with BindBuffer remains active until a different buffer object name is bound to the same target, or until the bound buffer object is deleted with DeleteBuffers.

Once created, a named buffer object may be re-bound to any target as often as needed. However, the GL implementation may make choices about how to optimize the storage of a buffer object based on its initial binding target.

Error GL.INVALID_ENUM is generated if target is not one of the allowable values. GL.INVALID_OPERATION is generated if BindBuffer is executed between the execution of Begin and the corresponding execution of End.

BindBuffer is available in GL version 1.5 or greater.

func (*GL) BindTexture Uses

func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture)

https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml

func (*GL) Bitmap Uses

func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml

func (*GL) BlendColor Uses

func (gl *GL) BlendColor(red, green, blue, alpha float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml

func (*GL) BlendEquation Uses

func (gl *GL) BlendEquation(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml

func (*GL) BlendEquationSeparate Uses

func (gl *GL) BlendEquationSeparate(modeRGB, modeAlpha glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquationSeparate.xml

func (*GL) BlendFunc Uses

func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml

func (*GL) BlendFuncSeparate Uses

func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFuncSeparate.xml

func (*GL) BufferData Uses

func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum)

BufferData creates a new data store for the buffer object currently bound to target. Any pre-existing data store is deleted. The new data store is created with the specified size in bytes and usage. If data is not nil, it must be a slice that is used to initialize the data store. In that case the size parameter is ignored and the store size will match the slice data size.

In its initial state, the new data store is not mapped, it has a NULL mapped pointer, and its mapped access is GL.READ_WRITE.

The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER, GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER, GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER, or GL.UNIFORM_BUFFER.

The usage parameter is a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store. usage can be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access.

A usage frequency of STREAM and nature of DRAW is specified via the constant GL.STREAM_DRAW, for example.

The usage frequency of access may be one of:

STREAM
    The data store contents will be modified once and used at most a few times.

STATIC
    The data store contents will be modified once and used many times.

DYNAMIC
    The data store contents will be modified repeatedly and used many times.

The usage nature of access may be one of:

DRAW
    The data store contents are modified by the application, and used as
    the source for GL drawing and image specification commands.

READ
    The data store contents are modified by reading data from the GL,
    and used to return that data when queried by the application.

COPY
    The data store contents are modified by reading data from the GL,
    and used as the source for GL drawing and image specification
    commands.

Clients must align data elements consistent with the requirements of the client platform, with an additional base-level requirement that an offset within a buffer to a datum comprising N bytes be a multiple of N.

Error GL.INVALID_ENUM is generated if target is not one of the accepted buffer targets. GL.INVALID_ENUM is generated if usage is not GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW, GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative. GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to create a data store with the specified size.

func (*GL) BufferSubData Uses

func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glBufferSubData.xml

func (*GL) CallList Uses

func (gl *GL) CallList(list uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml

func (*GL) CallLists Uses

func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml

func (*GL) Clear Uses

func (gl *GL) Clear(mask glbase.Bitfield)

https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml

func (*GL) ClearAccum Uses

func (gl *GL) ClearAccum(red, green, blue, alpha float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml

func (*GL) ClearColor Uses

func (gl *GL) ClearColor(red, green, blue, alpha float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml

func (*GL) ClearDepth Uses

func (gl *GL) ClearDepth(depth float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml

func (*GL) ClearIndex Uses

func (gl *GL) ClearIndex(c float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml

func (*GL) ClearStencil Uses

func (gl *GL) ClearStencil(s int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml

func (*GL) ClientActiveTexture Uses

func (gl *GL) ClientActiveTexture(texture glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml

func (*GL) ClipPlane Uses

func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml

func (*GL) Color3b Uses

func (gl *GL) Color3b(red, green, blue byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml

func (*GL) Color3bv Uses

func (gl *GL) Color3bv(v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml

func (*GL) Color3d Uses

func (gl *GL) Color3d(red, green, blue float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml

func (*GL) Color3dv Uses

func (gl *GL) Color3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml

func (*GL) Color3f Uses

func (gl *GL) Color3f(red, green, blue float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml

func (*GL) Color3fv Uses

func (gl *GL) Color3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml

func (*GL) Color3i Uses

func (gl *GL) Color3i(red, green, blue int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml

func (*GL) Color3iv Uses

func (gl *GL) Color3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml

func (*GL) Color3s Uses

func (gl *GL) Color3s(red, green, blue int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml

func (*GL) Color3sv Uses

func (gl *GL) Color3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml

func (*GL) Color3ub Uses

func (gl *GL) Color3ub(red, green, blue uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml

func (*GL) Color3ubv Uses

func (gl *GL) Color3ubv(v []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml

func (*GL) Color3ui Uses

func (gl *GL) Color3ui(red, green, blue uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml

func (*GL) Color3uiv Uses

func (gl *GL) Color3uiv(v []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml

func (*GL) Color3us Uses

func (gl *GL) Color3us(red, green, blue uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml

func (*GL) Color3usv Uses

func (gl *GL) Color3usv(v []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml

func (*GL) Color4b Uses

func (gl *GL) Color4b(red, green, blue, alpha byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml

func (*GL) Color4bv Uses

func (gl *GL) Color4bv(v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml

func (*GL) Color4d Uses

func (gl *GL) Color4d(red, green, blue, alpha float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml

func (*GL) Color4dv Uses

func (gl *GL) Color4dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml

func (*GL) Color4f Uses

func (gl *GL) Color4f(red, green, blue, alpha float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml

func (*GL) Color4fv Uses

func (gl *GL) Color4fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml

func (*GL) Color4i Uses

func (gl *GL) Color4i(red, green, blue, alpha int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml

func (*GL) Color4iv Uses

func (gl *GL) Color4iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml

func (*GL) Color4s Uses

func (gl *GL) Color4s(red, green, blue, alpha int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml

func (*GL) Color4sv Uses

func (gl *GL) Color4sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml

func (*GL) Color4ub Uses

func (gl *GL) Color4ub(red, green, blue, alpha uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml

func (*GL) Color4ubv Uses

func (gl *GL) Color4ubv(v []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml

func (*GL) Color4ui Uses

func (gl *GL) Color4ui(red, green, blue, alpha uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml

func (*GL) Color4uiv Uses

func (gl *GL) Color4uiv(v []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml

func (*GL) Color4us Uses

func (gl *GL) Color4us(red, green, blue, alpha uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml

func (*GL) Color4usv Uses

func (gl *GL) Color4usv(v []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml

func (*GL) ColorMask Uses

func (gl *GL) ColorMask(red, green, blue, alpha bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml

func (*GL) ColorMaterial Uses

func (gl *GL) ColorMaterial(face, mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml

func (*GL) ColorPointer Uses

func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml

func (*GL) ColorSubTable Uses

func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml

func (*GL) ColorTable Uses

func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml

func (*GL) ColorTableParameterfv Uses

func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml

func (*GL) ColorTableParameteriv Uses

func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml

func (*GL) CompileShader Uses

func (gl *GL) CompileShader(shader glbase.Shader)

CompileShader compiles the source code strings that have been stored in the shader object specified by shader.

The compilation status will be stored as part of the shader object's state. This value will be set to GL.TRUE if the shader was compiled without errors and is ready for use, and GL.FALSE otherwise. It can be queried by calling GetShaderiv with arguments shader and GL.COMPILE_STATUS.

Compilation of a shader can fail for a number of reasons as specified by the OpenGL Shading Language Specification. Whether or not the compilation was successful, information about the compilation can be obtained from the shader object's information log by calling GetShaderInfoLog.

Error GL.INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader object. GL.INVALID_OPERATION is generated if CompileShader is executed between the execution of Begin and the corresponding execution of End.

CompileShader is available in GL version 2.0 or greater.

func (*GL) CompressedTexImage1D Uses

func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml

func (*GL) CompressedTexImage2D Uses

func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml

func (*GL) CompressedTexImage3D Uses

func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml

func (*GL) CompressedTexSubImage1D Uses

func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml

func (*GL) CompressedTexSubImage2D Uses

func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml

func (*GL) CompressedTexSubImage3D Uses

func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml

func (*GL) ConvolutionFilter1D Uses

func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml

func (*GL) ConvolutionFilter2D Uses

func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml

func (*GL) ConvolutionParameterf Uses

func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml

func (*GL) ConvolutionParameterfv Uses

func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml

func (*GL) ConvolutionParameteri Uses

func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml

func (*GL) ConvolutionParameteriv Uses

func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml

func (*GL) CopyColorSubTable Uses

func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml

func (*GL) CopyColorTable Uses

func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml

func (*GL) CopyConvolutionFilter1D Uses

func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml

func (*GL) CopyConvolutionFilter2D Uses

func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml

func (*GL) CopyPixels Uses

func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml

func (*GL) CopyTexImage1D Uses

func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml

func (*GL) CopyTexImage2D Uses

func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml

func (*GL) CopyTexSubImage1D Uses

func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml

func (*GL) CopyTexSubImage2D Uses

func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml

func (*GL) CopyTexSubImage3D Uses

func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int)

https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml

func (*GL) CreateProgram Uses

func (gl *GL) CreateProgram() glbase.Program

CreateProgram creates an empty program object and returns a non-zero value by which it can be referenced. A program object is an object to which shader objects can be attached. This provides a mechanism to specify the shader objects that will be linked to create a program. It also provides a means for checking the compatibility of the shaders that will be used to create a program (for instance, checking the compatibility between a vertex shader and a fragment shader). When no longer needed as part of a program object, shader objects can be detached.

One or more executables are created in a program object by successfully attaching shader objects to it with AttachShader, successfully compiling the shader objects with CompileShader, and successfully linking the program object with LinkProgram. These executables are made part of current state when UseProgram is called. Program objects can be deleted by calling DeleteProgram. The memory associated with the program object will be deleted when it is no longer part of current rendering state for any context.

Like display lists and texture objects, the name space for program objects may be shared across a set of contexts, as long as the server sides of the contexts share the same address space. If the name space is shared across contexts, any attached objects and the data associated with those attached objects are shared as well.

Applications are responsible for providing the synchronization across API calls when objects are accessed from different execution threads.

This function returns 0 if an error occurs creating the program object.

Error GL.INVALID_OPERATION is generated if CreateProgram is executed between the execution of Begin and the corresponding execution of End.

CreateProgram is available in GL version 2.0 or greater.

func (*GL) CreateShader Uses

func (gl *GL) CreateShader(gltype glbase.Enum) glbase.Shader

CreateShader creates an empty shader object and returns a non-zero value by which it can be referenced. A shader object is used to maintain the source code strings that define a shader. shaderType indicates the type of shader to be created.

Two types of shaders are supported. A shader of type GL.VERTEX_SHADER is a shader that is intended to run on the programmable vertex processor and replace the fixed functionality vertex processing in OpenGL. A shader of type GL.FRAGMENT_SHADER is a shader that is intended to run on the programmable fragment processor and replace the fixed functionality fragment processing in OpenGL.

When created, a shader object's GL.SHADER_TYPE parameter is set to either GL.VERTEX_SHADER or GL.FRAGMENT_SHADER, depending on the value of shaderType.

Like display lists and texture objects, the name space for shader objects may be shared across a set of contexts, as long as the server sides of the contexts share the same address space. If the name space is shared across contexts, any attached objects and the data associated with those attached objects are shared as well.

This function returns 0 if an error occurs creating the shader object.

Error GL.INVALID_ENUM is generated if shaderType is not an accepted value. GL.INVALID_OPERATION is generated if CreateShader is executed between the execution of Begin and the corresponding execution of End.

CreateShader is available in GL version 2.0 or greater.

func (*GL) CullFace Uses

func (gl *GL) CullFace(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml

func (*GL) DeleteBuffers Uses

func (gl *GL) DeleteBuffers(buffers []glbase.Buffer)

DeleteBuffers deletes the buffer objects whose names are stored in the buffers slice.

After a buffer object is deleted, it has no contents, and its name is free for reuse (for example by GenBuffers). If a buffer object that is currently bound is deleted, the binding reverts to 0 (the absence of any buffer object, which reverts to client memory usage).

DeleteBuffers silently ignores 0's and names that do not correspond to existing buffer objects.

Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION is generated if DeleteBuffers is executed between the execution of Begin and the corresponding execution of End.

DeleteBuffers is available in GL version 1.5 or greater.

func (*GL) DeleteLists Uses

func (gl *GL) DeleteLists(list uint32, range_ int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml

func (*GL) DeleteProgram Uses

func (gl *GL) DeleteProgram(program glbase.Program)

DeleteProgram frees the memory and invalidates the name associated with the program object specified by program. This command effectively undoes the effects of a call to CreateProgram.

If a program object is in use as part of current rendering state, it will be flagged for deletion, but it will not be deleted until it is no longer part of current state for any rendering context. If a program object to be deleted has shader objects attached to it, those shader objects will be automatically detached but not deleted unless they have already been flagged for deletion by a previous call to DeleteShader. A value of 0 for program will be silently ignored.

To determine whether a program object has been flagged for deletion, call GetProgram with arguments program and GL.DELETE_STATUS.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL.

DeleteProgram is available in GL version 2.0 or greater.

func (*GL) DeleteQueries Uses

func (gl *GL) DeleteQueries(n int, ids []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteQueries.xml

func (*GL) DeleteShader Uses

func (gl *GL) DeleteShader(shader glbase.Shader)

DeleteShader frees the memory and invalidates the name associated with the shader object specified by shader. This command effectively undoes the effects of a call to CreateShader.

If a shader object to be deleted is attached to a program object, it will be flagged for deletion, but it will not be deleted until it is no longer attached to any program object, for any rendering context (it must be detached from wherever it was attached before it will be deleted). A value of 0 for shader will be silently ignored.

To determine whether an object has been flagged for deletion, call GetShader with arguments shader and GL.DELETE_STATUS.

Error GL.INVALID_VALUE is generated if shader is not a value generated by OpenGL.

DeleteShader is available in GL version 2.0 or greater.

func (*GL) DeleteTextures Uses

func (gl *GL) DeleteTextures(textures []glbase.Texture)

DeleteTextures deletes the textures objects whose names are stored in the textures slice. After a texture is deleted, it has no contents or dimensionality, and its name is free for reuse (for example by GenTextures). If a texture that is currently bound is deleted, the binding reverts to 0 (the default texture).

DeleteTextures silently ignores 0's and names that do not correspond to existing textures.

Error GL.INVALID_VALUE is generated if n is negative.

DeleteTextures is available in GL version 2.0 or greater.

func (*GL) DepthFunc Uses

func (gl *GL) DepthFunc(glfunc glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml

func (*GL) DepthMask Uses

func (gl *GL) DepthMask(flag bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml

func (*GL) DepthRange Uses

func (gl *GL) DepthRange(nearVal, farVal float64)

DepthRange specifies the mapping of depth values from normalized device coordinates to window coordinates.

Parameter nearVal specifies the mapping of the near clipping plane to window coordinates (defaults to 0), while farVal specifies the mapping of the far clipping plane to window coordinates (defaults to 1).

After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near and far clipping planes. DepthRange specifies a linear mapping of the normalized depth coordinates in this range to window depth coordinates. Regardless of the actual depth buffer implementation, window coordinate depth values are treated as though they range from 0 through 1 (like color components). Thus, the values accepted by DepthRange are both clamped to this range before they are accepted.

The default setting of (0, 1) maps the near plane to 0 and the far plane to 1. With this mapping, the depth buffer range is fully utilized.

It is not necessary that nearVal be less than farVal. Reverse mappings such as nearVal 1, and farVal 0 are acceptable.

GL.INVALID_OPERATION is generated if DepthRange is executed between the execution of Begin and the corresponding execution of End.

func (*GL) DetachShader Uses

func (gl *GL) DetachShader(program glbase.Program, shader glbase.Shader)

https://www.opengl.org/sdk/docs/man2/xhtml/glDetachShader.xml

func (*GL) Disable Uses

func (gl *GL) Disable(cap glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml

func (*GL) DisableClientState Uses

func (gl *GL) DisableClientState(array glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml

func (*GL) DisableVertexAttribArray Uses

func (gl *GL) DisableVertexAttribArray(index glbase.Attrib)

https://www.opengl.org/sdk/docs/man2/xhtml/glDisableVertexAttribArray.xml

func (*GL) DrawArrays Uses

func (gl *GL) DrawArrays(mode glbase.Enum, first, count int)

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml

func (*GL) DrawBuffer Uses

func (gl *GL) DrawBuffer(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml

func (*GL) DrawBuffers Uses

func (gl *GL) DrawBuffers(n int, bufs []glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffers.xml

func (*GL) DrawElements Uses

func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml

func (*GL) DrawPixels Uses

func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml

func (*GL) DrawRangeElements Uses

func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml

func (*GL) EdgeFlag Uses

func (gl *GL) EdgeFlag(flag bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml

func (*GL) EdgeFlagPointer Uses

func (gl *GL) EdgeFlagPointer(stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml

func (*GL) EdgeFlagv Uses

func (gl *GL) EdgeFlagv(flag []bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml

func (*GL) Enable Uses

func (gl *GL) Enable(cap glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml

func (*GL) EnableClientState Uses

func (gl *GL) EnableClientState(array glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml

func (*GL) EnableVertexAttribArray Uses

func (gl *GL) EnableVertexAttribArray(index glbase.Attrib)

https://www.opengl.org/sdk/docs/man2/xhtml/glEnableVertexAttribArray.xml

func (*GL) End Uses

func (gl *GL) End()

https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml

func (*GL) EndList Uses

func (gl *GL) EndList()

https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml

func (*GL) EndQuery Uses

func (gl *GL) EndQuery(target glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glEndQuery.xml

func (*GL) EvalCoord1d Uses

func (gl *GL) EvalCoord1d(u float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml

func (*GL) EvalCoord1dv Uses

func (gl *GL) EvalCoord1dv(u []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml

func (*GL) EvalCoord1f Uses

func (gl *GL) EvalCoord1f(u float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml

func (*GL) EvalCoord1fv Uses

func (gl *GL) EvalCoord1fv(u []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml

func (*GL) EvalCoord2d Uses

func (gl *GL) EvalCoord2d(u, v float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml

func (*GL) EvalCoord2dv Uses

func (gl *GL) EvalCoord2dv(u []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml

func (*GL) EvalCoord2f Uses

func (gl *GL) EvalCoord2f(u, v float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml

func (*GL) EvalCoord2fv Uses

func (gl *GL) EvalCoord2fv(u []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml

func (*GL) EvalMesh1 Uses

func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml

func (*GL) EvalMesh2 Uses

func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml

func (*GL) EvalPoint1 Uses

func (gl *GL) EvalPoint1(i int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml

func (*GL) EvalPoint2 Uses

func (gl *GL) EvalPoint2(i, j int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml

func (*GL) FeedbackBuffer Uses

func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml

func (*GL) Finish Uses

func (gl *GL) Finish()

https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml

func (*GL) Flush Uses

func (gl *GL) Flush()

https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml

func (*GL) FogCoordPointer Uses

func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordPointer.xml

func (*GL) FogCoordd Uses

func (gl *GL) FogCoordd(coord float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordd.xml

func (*GL) FogCoorddv Uses

func (gl *GL) FogCoorddv(coord []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoorddv.xml

func (*GL) FogCoordf Uses

func (gl *GL) FogCoordf(coord float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordf.xml

func (*GL) FogCoordfv Uses

func (gl *GL) FogCoordfv(coord []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordfv.xml

func (*GL) Fogf Uses

func (gl *GL) Fogf(pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml

func (*GL) Fogfv Uses

func (gl *GL) Fogfv(pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml

func (*GL) Fogi Uses

func (gl *GL) Fogi(pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml

func (*GL) Fogiv Uses

func (gl *GL) Fogiv(pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml

func (*GL) FrontFace Uses

func (gl *GL) FrontFace(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml

func (*GL) Frustum Uses

func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml

func (*GL) GenBuffers Uses

func (gl *GL) GenBuffers(n int) []glbase.Buffer

GenBuffers returns n buffer object names. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to GenBuffers.

Buffer object names returned by a call to GenBuffers are not returned by subsequent calls, unless they are first deleted with DeleteBuffers.

No buffer objects are associated with the returned buffer object names until they are first bound by calling BindBuffer.

Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION is generated if GenBuffers is executed between the execution of Begin and the corresponding execution of End.

GenBuffers is available in GL version 1.5 or greater.

func (*GL) GenLists Uses

func (gl *GL) GenLists(range_ int32) uint32

https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml

func (*GL) GenQueries Uses

func (gl *GL) GenQueries(n int, ids []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGenQueries.xml

func (*GL) GenTextures Uses

func (gl *GL) GenTextures(n int) []glbase.Texture

GenTextures returns n texture names in textures. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to GenTextures.

The generated textures have no dimensionality; they assume the dimensionality of the texture target to which they are first bound (see BindTexture).

Texture names returned by a call to GenTextures are not returned by subsequent calls, unless they are first deleted with DeleteTextures.

Error GL.INVALID_VALUE is generated if n is negative.

GenTextures is available in GL version 2.0 or greater.

func (*GL) GetActiveAttrib Uses

func (gl *GL) GetActiveAttrib(program glbase.Program, index glbase.Attrib, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveAttrib.xml

func (*GL) GetActiveUniform Uses

func (gl *GL) GetActiveUniform(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveUniform.xml

func (*GL) GetAttachedShaders Uses

func (gl *GL) GetAttachedShaders(program glbase.Program, maxCount int32, count []int, obj []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetAttachedShaders.xml

func (*GL) GetAttribLocation Uses

func (gl *GL) GetAttribLocation(program glbase.Program, name string) glbase.Attrib

GetAttribLocation queries the previously linked program object specified by program for the attribute variable specified by name and returns the index of the generic vertex attribute that is bound to that attribute variable. If name is a matrix attribute variable, the index of the first column of the matrix is returned. If the named attribute variable is not an active attribute in the specified program object or if name starts with the reserved prefix "gl_", a value of -1 is returned.

The association between an attribute variable name and a generic attribute index can be specified at any time by calling BindAttribLocation. Attribute bindings do not go into effect until LinkProgram is called. After a program object has been linked successfully, the index values for attribute variables remain fixed until the next link command occurs. The attribute values can only be queried after a link if the link was successful. GetAttribLocation returns the binding that actually went into effect the last time LinkProgram was called for the specified program object. Attribute bindings that have been specified since the last link operation are not returned by GetAttribLocation.

Error GL_INVALID_OPERATION is generated if program is not a value generated by OpenGL. GL_INVALID_OPERATION is generated if program is not a program object. GL_INVALID_OPERATION is generated if program has not been successfully linked. GL_INVALID_OPERATION is generated if GetAttribLocation is executed between the execution of Begin and the corresponding execution of End.

GetAttribLocation is available in GL version 2.0 or greater.

func (*GL) GetBooleanv Uses

func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml

func (*GL) GetBufferParameteriv Uses

func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferParameteriv.xml

func (*GL) GetBufferSubData Uses

func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferSubData.xml

func (*GL) GetClipPlane Uses

func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml

func (*GL) GetColorTable Uses

func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml

func (*GL) GetColorTableParameterfv Uses

func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml

func (*GL) GetColorTableParameteriv Uses

func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml

func (*GL) GetCompressedTexImage Uses

func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml

func (*GL) GetConvolutionFilter Uses

func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml

func (*GL) GetConvolutionParameterfv Uses

func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml

func (*GL) GetConvolutionParameteriv Uses

func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml

func (*GL) GetDoublev Uses

func (gl *GL) GetDoublev(pname glbase.Enum, params []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml

func (*GL) GetError Uses

func (gl *GL) GetError() glbase.Enum

https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml

func (*GL) GetFloatv Uses

func (gl *GL) GetFloatv(pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml

func (*GL) GetHistogram Uses

func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml

func (*GL) GetHistogramParameterfv Uses

func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml

func (*GL) GetHistogramParameteriv Uses

func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml

func (*GL) GetIntegerv Uses

func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml

func (*GL) GetLightfv Uses

func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml

func (*GL) GetLightiv Uses

func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml

func (*GL) GetMapdv Uses

func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml

func (*GL) GetMapfv Uses

func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml

func (*GL) GetMapiv Uses

func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml

func (*GL) GetMaterialfv Uses

func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml

func (*GL) GetMaterialiv Uses

func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml

func (*GL) GetMinmax Uses

func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml

func (*GL) GetMinmaxParameterfv Uses

func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml

func (*GL) GetMinmaxParameteriv Uses

func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml

func (*GL) GetPixelMapfv Uses

func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml

func (*GL) GetPixelMapuiv Uses

func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml

func (*GL) GetPixelMapusv Uses

func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml

func (*GL) GetPolygonStipple Uses

func (gl *GL) GetPolygonStipple(mask []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml

func (*GL) GetProgramInfoLog Uses

func (gl *GL) GetProgramInfoLog(program glbase.Program) []byte

GetProgramInfoLog returns the information log for the specified program object. The information log for a program object is modified when the program object is linked or validated.

The information log for a program object is either an empty string, or a string containing information about the last link operation, or a string containing information about the last validation operation. It may contain diagnostic messages, warning messages, and other information. When a program object is created, its information log will be a string of length 0, and the size of the current log can be obtained by calling GetProgramiv with the value GL.INFO_LOG_LENGTH.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object.

func (*GL) GetProgramiv Uses

func (gl *GL) GetProgramiv(program glbase.Program, pname glbase.Enum, params []int32)

GetProgramiv returns in params the value of a parameter for a specific program object. The following parameters are defined:

GL.DELETE_STATUS
    params returns GL.TRUE if program is currently flagged for deletion,
    and GL.FALSE otherwise.

GL.LINK_STATUS
    params returns GL.TRUE if the last link operation on program was
    successful, and GL.FALSE otherwise.

GL.VALIDATE_STATUS
    params returns GL.TRUE or if the last validation operation on
    program was successful, and GL.FALSE otherwise.

GL.INFO_LOG_LENGTH
    params returns the number of characters in the information log for
    program including the null termination character (the size of
    the character buffer required to store the information log). If
    program has no information log, a value of 0 is returned.

GL.ATTACHED_SHADERS
    params returns the number of shader objects attached to program.

GL.ACTIVE_ATTRIBUTES
    params returns the number of active attribute variables for program.

GL.ACTIVE_ATTRIBUTE_MAX_LENGTH
    params returns the length of the longest active attribute name for
    program, including the null termination character (the size of
    the character buffer required to store the longest attribute name).
    If no active attributes exist, 0 is returned.

GL.ACTIVE_UNIFORMS
    params returns the number of active uniform variables for program.

GL.ACTIVE_UNIFORM_MAX_LENGTH
    params returns the length of the longest active uniform variable
    name for program, including the null termination character (i.e.,
    the size of the character buffer required to store the longest
    uniform variable name). If no active uniform variables exist, 0 is
    returned.

GL.TRANSFORM_FEEDBACK_BUFFER_MODE
    params returns a symbolic constant indicating the buffer mode used
    when transform feedback is active. This may be GL.SEPARATE_ATTRIBS
    or GL.INTERLEAVED_ATTRIBS.

GL.TRANSFORM_FEEDBACK_VARYINGS
    params returns the number of varying variables to capture in transform
    feedback mode for the program.

GL.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
    params returns the length of the longest variable name to be used for
    transform feedback, including the null-terminator.

GL.GEOMETRY_VERTICES_OUT
    params returns the maximum number of vertices that the geometry shader in
    program will output.

GL.GEOMETRY_INPUT_TYPE
    params returns a symbolic constant indicating the primitive type accepted
    as input to the geometry shader contained in program.

GL.GEOMETRY_OUTPUT_TYPE
    params returns a symbolic constant indicating the primitive type that will
    be output by the geometry shader contained in program.

GL.ACTIVE_UNIFORM_BLOCKS and GL.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are available only if the GL version 3.1 or greater.

GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE and GL.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or greater.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program does not refer to a program object. GL.INVALID_OPERATION is generated if pname is GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE, or GL.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader. GL.INVALID_ENUM is generated if pname is not an accepted value.

func (*GL) GetQueryObjectiv Uses

func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectiv.xml

func (*GL) GetQueryObjectuiv Uses

func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectuiv.xml

func (*GL) GetQueryiv Uses

func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryiv.xml

func (*GL) GetSeparableFilter Uses

func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml

func (*GL) GetShaderInfoLog Uses

func (gl *GL) GetShaderInfoLog(shader glbase.Shader) []byte

GetShaderInfoLog returns the information log for the specified shader object. The information log for a shader object is modified when the shader is compiled.

The information log for a shader object is a string that may contain diagnostic messages, warning messages, and other information about the last compile operation. When a shader object is created, its information log will be a string of length 0, and the size of the current log can be obtained by calling GetShaderiv with the value GL.INFO_LOG_LENGTH.

The information log for a shader object is the OpenGL implementer's primary mechanism for conveying information about the compilation process. Therefore, the information log can be helpful to application developers during the development process, even when compilation is successful. Application developers should not expect different OpenGL implementations to produce identical information logs.

Error GL.INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader object. GL.INVALID_VALUE is generated if maxLength is less than 0. GL.INVALID_OPERATION is generated if GetShaderInfoLog is executed between the execution of Begin and the corresponding execution of End.

GetShaderInfoLog is available in GL version 2.0 or greater.

func (*GL) GetShaderSource Uses

func (gl *GL) GetShaderSource(shader glbase.Shader, bufSize int32, length []int32, source []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetShaderSource.xml

func (*GL) GetShaderiv Uses

func (gl *GL) GetShaderiv(shader glbase.Shader, pname glbase.Enum, params []int32)

GetShaderiv GetShader returns in params the value of a parameter for a specific shader object. The following parameters are defined:

GL.SHADER_TYPE
  params returns GL.VERTEX_SHADER if shader is a vertex shader object,
  and GL.FRAGMENT_SHADER if shader is a fragment shader object.

GL.DELETE_STATUS
  params returns GL.TRUE if shader is currently flagged for deletion,
  and GL.FALSE otherwise.

GL.COMPILE_STATUS
  params returns GL.TRUE if the last compile operation on shader was
  successful, and GL.FALSE otherwise.

GL.INFO_LOG_LENGTH
  params returns the number of characters in the information log for
  shader including the null termination character (the size of the
  character buffer required to store the information log). If shader has
  no information log, a value of 0 is returned.

GL.SHADER_SOURCE_LENGTH
  params returns the length of the concatenation of the source strings
  that make up the shader source for the shader, including the null
  termination character. (the size of the character buffer
  required to store the shader source). If no source code exists, 0 is
  returned.

Error GL.INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if shader does not refer to a shader object. GL.INVALID_ENUM is generated if pname is not an accepted value. GL.INVALID_OPERATION is generated if GetShader is executed between the execution of Begin and the corresponding execution of End.

GetShaderiv is available in GL version 2.0 or greater.

func (*GL) GetTexEnvfv Uses

func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml

func (*GL) GetTexEnviv Uses

func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml

func (*GL) GetTexGendv Uses

func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml

func (*GL) GetTexGenfv Uses

func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml

func (*GL) GetTexGeniv Uses

func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml

func (*GL) GetTexImage Uses

func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml

func (*GL) GetTexLevelParameterfv Uses

func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml

func (*GL) GetTexLevelParameteriv Uses

func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml

func (*GL) GetTexParameterfv Uses

func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml

func (*GL) GetTexParameteriv Uses

func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml

func (*GL) GetUniformLocation Uses

func (gl *GL) GetUniformLocation(program glbase.Program, name string) glbase.Uniform

GetUniformLocation returns an integer that represents the location of a specific uniform variable within a program object. name must be an active uniform variable name in program that is not a structure, an array of structures, or a subcomponent of a vector or a matrix. This function returns -1 if name does not correspond to an active uniform variable in program or if name starts with the reserved prefix "gl_".

Uniform variables that are structures or arrays of structures may be queried by calling GetUniformLocation for each field within the structure. The array element operator "[]" and the structure field operator "." may be used in name in order to select elements within an array or fields within a structure. The result of using these operators is not allowed to be another structure, an array of structures, or a subcomponent of a vector or a matrix. Except if the last part of name indicates a uniform variable array, the location of the first element of an array can be retrieved by using the name of the array, or by using the name appended by "[0]".

The actual locations assigned to uniform variables are not known until the program object is linked successfully. After linking has occurred, the command GetUniformLocation can be used to obtain the location of a uniform variable. This location value can then be passed to Uniform to set the value of the uniform variable or to GetUniform in order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for uniform variables remain fixed until the next link command occurs. Uniform variable locations and values can only be queried after a link if the link was successful.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if program has not been successfully linked. GL.INVALID_OPERATION is generated if GetUniformLocation is executed between the execution of Begin and the corresponding execution of End.

GetUniformLocation is available in GL version 2.0 or greater.

func (*GL) GetUniformfv Uses

func (gl *GL) GetUniformfv(program glbase.Program, location glbase.Uniform, params []float32)

GetUniformfv returns in params the value of the specified uniform variable. The type of the uniform variable specified by location determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a single value will be returned. If it is defined as a vec2, ivec2, or bvec2, two values will be returned. If it is defined as a vec3, ivec3, or bvec3, three values will be returned, and so on. To query values stored in uniform variables declared as arrays, call GetUniformfv for each element of the array. To query values stored in uniform variables declared as structures, call GetUniformfv for each field in the structure. The values for uniform variables declared as a matrix will be returned in column major order.

The locations assigned to uniform variables are not known until the program object is linked. After linking has occurred, the command GetUniformLocation can be used to obtain the location of a uniform variable. This location value can then be passed to GetUniformfv in order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for uniform variables remain fixed until the next link command occurs. The uniform variable values can only be queried after a link if the link was successful.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if program has not been successfully linked. GL.INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object. GL.INVALID_OPERATION is generated if GetUniformfv is executed between the execution of Begin and the corresponding execution of End.

GetUniformfv is available in GL version 2.0 or greater.

func (*GL) GetUniformiv Uses

func (gl *GL) GetUniformiv(program glbase.Program, location glbase.Uniform, params []int32)

GetUniformiv returns in params the value of the specified uniform variable. The type of the uniform variable specified by location determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a single value will be returned. If it is defined as a vec2, ivec2, or bvec2, two values will be returned. If it is defined as a vec3, ivec3, or bvec3, three values will be returned, and so on. To query values stored in uniform variables declared as arrays, call GetUniformiv for each element of the array. To query values stored in uniform variables declared as structures, call GetUniformiv for each field in the structure. The values for uniform variables declared as a matrix will be returned in column major order.

The locations assigned to uniform variables are not known until the program object is linked. After linking has occurred, the command GetUniformLocation can be used to obtain the location of a uniform variable. This location value can then be passed to GetUniformiv in order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for uniform variables remain fixed until the next link command occurs. The uniform variable values can only be queried after a link if the link was successful.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if program has not been successfully linked. GL.INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object. GL.INVALID_OPERATION is generated if GetUniformiv is executed between the execution of Begin and the corresponding execution of End.

GetUniformiv is available in GL version 2.0 or greater.

func (*GL) GetVertexAttribdv Uses

func (gl *GL) GetVertexAttribdv(index glbase.Attrib, pname glbase.Enum, params []float64)

GetVertexAttribdv returns in params the value of a generic vertex attribute parameter. The generic vertex attribute to be queried is specified by index, and the parameter to be queried is specified by pname.

The accepted parameter names are as follows:

GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
    params returns a single value, the name of the buffer object
    currently bound to the binding point corresponding to generic vertex
    attribute array index. If no buffer object is bound, 0 is returned.
    The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_ENABLED
    params returns a single value that is non-zero (true) if the vertex
    attribute array for index is enabled and 0 (false) if it is
    disabled. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_SIZE
    params returns a single value, the size of the vertex attribute
    array for index. The size is the number of values for each element
    of the vertex attribute array, and it will be 1, 2, 3, or 4. The
    initial value is 4.

GL.VERTEX_ATTRIB_ARRAY_STRIDE
    params returns a single value, the array stride for (number of bytes
    between successive elements in) the vertex attribute array for
    index. A value of 0 indicates that the array elements are stored
    sequentially in memory. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_TYPE
    params returns a single value, a symbolic constant indicating the
    array type for the vertex attribute array for index. Possible values
    are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
    GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
    GL.FLOAT.

GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
    params returns a single value that is non-zero (true) if fixed-point
    data types for the vertex attribute array indicated by index are
    normalized when they are converted to floating point, and 0 (false)
    otherwise. The initial value is 0.

GL.CURRENT_VERTEX_ATTRIB
    params returns four values that represent the current value for the
    generic vertex attribute specified by index. Generic vertex
    attribute 0 is unique in that it has no current state, so an error
    will be generated if index is 0. The initial value for all other
    generic vertex attributes is (0,0,0,1).

All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent client-side state.

Error GL.INVALID_VALUE is generated if index is greater than or equal to GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname is GL.CURRENT_VERTEX_ATTRIB.

GetVertexAttribdv is available in GL version 2.0 or greater.

func (*GL) GetVertexAttribfv Uses

func (gl *GL) GetVertexAttribfv(index glbase.Attrib, pname glbase.Enum, params []float32)

GetVertexAttribfv returns in params the value of a generic vertex attribute parameter. The generic vertex attribute to be queried is specified by index, and the parameter to be queried is specified by pname.

The accepted parameter names are as follows:

GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
    params returns a single value, the name of the buffer object
    currently bound to the binding point corresponding to generic vertex
    attribute array index. If no buffer object is bound, 0 is returned.
    The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_ENABLED
    params returns a single value that is non-zero (true) if the vertex
    attribute array for index is enabled and 0 (false) if it is
    disabled. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_SIZE
    params returns a single value, the size of the vertex attribute
    array for index. The size is the number of values for each element
    of the vertex attribute array, and it will be 1, 2, 3, or 4. The
    initial value is 4.

GL.VERTEX_ATTRIB_ARRAY_STRIDE
    params returns a single value, the array stride for (number of bytes
    between successive elements in) the vertex attribute array for
    index. A value of 0 indicates that the array elements are stored
    sequentially in memory. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_TYPE
    params returns a single value, a symbolic constant indicating the
    array type for the vertex attribute array for index. Possible values
    are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
    GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
    GL.FLOAT.

GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
    params returns a single value that is non-zero (true) if fixed-point
    data types for the vertex attribute array indicated by index are
    normalized when they are converted to floating point, and 0 (false)
    otherwise. The initial value is 0.

GL.CURRENT_VERTEX_ATTRIB
    params returns four values that represent the current value for the
    generic vertex attribute specified by index. Generic vertex
    attribute 0 is unique in that it has no current state, so an error
    will be generated if index is 0. The initial value for all other
    generic vertex attributes is (0,0,0,1).

All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent client-side state.

Error GL.INVALID_VALUE is generated if index is greater than or equal to GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname is GL.CURRENT_VERTEX_ATTRIB.

GetVertexAttribfv is available in GL version 2.0 or greater.

func (*GL) GetVertexAttribiv Uses

func (gl *GL) GetVertexAttribiv(index glbase.Attrib, pname glbase.Enum, params []int32)

GetVertexAttribiv returns in params the value of a generic vertex attribute parameter. The generic vertex attribute to be queried is specified by index, and the parameter to be queried is specified by pname.

The accepted parameter names are as follows:

GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
    params returns a single value, the name of the buffer object
    currently bound to the binding point corresponding to generic vertex
    attribute array index. If no buffer object is bound, 0 is returned.
    The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_ENABLED
    params returns a single value that is non-zero (true) if the vertex
    attribute array for index is enabled and 0 (false) if it is
    disabled. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_SIZE
    params returns a single value, the size of the vertex attribute
    array for index. The size is the number of values for each element
    of the vertex attribute array, and it will be 1, 2, 3, or 4. The
    initial value is 4.

GL.VERTEX_ATTRIB_ARRAY_STRIDE
    params returns a single value, the array stride for (number of bytes
    between successive elements in) the vertex attribute array for
    index. A value of 0 indicates that the array elements are stored
    sequentially in memory. The initial value is 0.

GL.VERTEX_ATTRIB_ARRAY_TYPE
    params returns a single value, a symbolic constant indicating the
    array type for the vertex attribute array for index. Possible values
    are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
    GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
    GL.FLOAT.

GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
    params returns a single value that is non-zero (true) if fixed-point
    data types for the vertex attribute array indicated by index are
    normalized when they are converted to floating point, and 0 (false)
    otherwise. The initial value is 0.

GL.CURRENT_VERTEX_ATTRIB
    params returns four values that represent the current value for the
    generic vertex attribute specified by index. Generic vertex
    attribute 0 is unique in that it has no current state, so an error
    will be generated if index is 0. The initial value for all other
    generic vertex attributes is (0,0,0,1).

All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent client-side state.

Error GL.INVALID_VALUE is generated if index is greater than or equal to GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname is GL.CURRENT_VERTEX_ATTRIB.

GetVertexAttribiv is available in GL version 2.0 or greater.

func (*GL) Hint Uses

func (gl *GL) Hint(target, mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml

func (*GL) Histogram Uses

func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml

func (*GL) IndexMask Uses

func (gl *GL) IndexMask(mask uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml

func (*GL) IndexPointer Uses

func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml

func (*GL) Indexd Uses

func (gl *GL) Indexd(c float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml

func (*GL) Indexdv Uses

func (gl *GL) Indexdv(c []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml

func (*GL) Indexf Uses

func (gl *GL) Indexf(c float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml

func (*GL) Indexfv Uses

func (gl *GL) Indexfv(c []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml

func (*GL) Indexi Uses

func (gl *GL) Indexi(c int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml

func (*GL) Indexiv Uses

func (gl *GL) Indexiv(c []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml

func (*GL) Indexs Uses

func (gl *GL) Indexs(c int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml

func (*GL) Indexsv Uses

func (gl *GL) Indexsv(c []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml

func (*GL) Indexub Uses

func (gl *GL) Indexub(c uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml

func (*GL) Indexubv Uses

func (gl *GL) Indexubv(c []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml

func (*GL) InitNames Uses

func (gl *GL) InitNames()

https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml

func (*GL) InterleavedArrays Uses

func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml

func (*GL) IsBuffer Uses

func (gl *GL) IsBuffer(buffer glbase.Buffer) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsBuffer.xml

func (*GL) IsEnabled Uses

func (gl *GL) IsEnabled(cap glbase.Enum) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml

func (*GL) IsList Uses

func (gl *GL) IsList(list uint32) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml

func (*GL) IsProgram Uses

func (gl *GL) IsProgram(program glbase.Program) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsProgram.xml

func (*GL) IsQuery Uses

func (gl *GL) IsQuery(id uint32) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsQuery.xml

func (*GL) IsShader Uses

func (gl *GL) IsShader(shader glbase.Shader) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsShader.xml

func (*GL) IsTexture Uses

func (gl *GL) IsTexture(texture glbase.Texture) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml

func (*GL) LightModelf Uses

func (gl *GL) LightModelf(pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml

func (*GL) LightModelfv Uses

func (gl *GL) LightModelfv(pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml

func (*GL) LightModeli Uses

func (gl *GL) LightModeli(pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml

func (*GL) LightModeliv Uses

func (gl *GL) LightModeliv(pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml

func (*GL) Lightf Uses

func (gl *GL) Lightf(light, pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml

func (*GL) Lightfv Uses

func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml

func (*GL) Lighti Uses

func (gl *GL) Lighti(light, pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml

func (*GL) Lightiv Uses

func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml

func (*GL) LineStipple Uses

func (gl *GL) LineStipple(factor int32, pattern uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml

func (*GL) LineWidth Uses

func (gl *GL) LineWidth(width float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml

func (*GL) LinkProgram Uses

func (gl *GL) LinkProgram(program glbase.Program)

LinkProgram links the program object specified by program. If any shader objects of type GL.VERTEX_SHADER are attached to program, they will be used to create an executable that will run on the programmable vertex processor. If any shader objects of type GL.FRAGMENT_SHADER are attached to program, they will be used to create an executable that will run on the programmable fragment processor.

The status of the link operation will be stored as part of the program object's state. This value will be set to GL.TRUE if the program object was linked without errors and is ready for use, and GL.FALSE otherwise. It can be queried by calling GetProgramiv with arguments program and GL.LINK_STATUS.

As a result of a successful link operation, all active user-defined uniform variables belonging to program will be initialized to 0, and each of the program object's active uniform variables will be assigned a location that can be queried by calling GetUniformLocation. Also, any active user-defined attribute variables that have not been bound to a generic vertex attribute index will be bound to one at this time.

Linking of a program object can fail for a number of reasons as specified in the OpenGL Shading Language Specification. The following lists some of the conditions that will cause a link error.

- The number of active attribute variables supported by the
  implementation has been exceeded.

- The storage limit for uniform variables has been exceeded.

- The number of active uniform variables supported by the implementation
  has been exceeded.

- The main function is missing for the vertex shader or the fragment
  shader.

- A varying variable actually used in the fragment shader is not
  declared in the same way (or is not declared at all) in the vertex
  shader.

- A reference to a function or variable name is unresolved.

- A shared global is declared with two different types or two different
  initial values.

- One or more of the attached shader objects has not been successfully
  compiled.

- Binding a generic attribute matrix caused some rows of the matrix to
  fall outside the allowed maximum of GL.MAX_VERTEX_ATTRIBS.

- Not enough contiguous vertex attribute slots could be found to bind
  attribute matrices.

When a program object has been successfully linked, the program object can be made part of current state by calling UseProgram. Whether or not the link operation was successful, the program object's information log will be overwritten. The information log can be retrieved by calling GetProgramInfoLog.

LinkProgram will also install the generated executables as part of the current rendering state if the link operation was successful and the specified program object is already currently in use as a result of a previous call to UseProgram. If the program object currently in use is relinked unsuccessfully, its link status will be set to GL.FALSE , but the executables and associated state will remain part of the current state until a subsequent call to UseProgram removes it from use. After it is removed from use, it cannot be made part of current state until it has been successfully relinked.

If program contains shader objects of type GL.VERTEX_SHADER but does not contain shader objects of type GL.FRAGMENT_SHADER, the vertex shader will be linked against the implicit interface for fixed functionality fragment processing. Similarly, if program contains shader objects of type GL.FRAGMENT_SHADER but it does not contain shader objects of type GL.VERTEX_SHADER, the fragment shader will be linked against the implicit interface for fixed functionality vertex processing.

The program object's information log is updated and the program is generated at the time of the link operation. After the link operation, applications are free to modify attached shader objects, compile attached shader objects, detach shader objects, delete shader objects, and attach additional shader objects. None of these operations affects the information log or the program that is part of the program object.

If the link operation is unsuccessful, any information about a previous link operation on program is lost (a failed link does not restore the old state of program). Certain information can still be retrieved from program even after an unsuccessful link operation. See for instance GetActiveAttrib and GetActiveUniform.

Error GL.INVALID_VALUE is generated if program is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if LinkProgram is executed between the execution of Begin and the corresponding execution of End.

LinkProgram is available in GL version 2.0 or greater.

func (*GL) ListBase Uses

func (gl *GL) ListBase(base uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml

func (*GL) LoadIdentity Uses

func (gl *GL) LoadIdentity()

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml

func (*GL) LoadMatrixd Uses

func (gl *GL) LoadMatrixd(m []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml

func (*GL) LoadMatrixf Uses

func (gl *GL) LoadMatrixf(m []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml

func (*GL) LoadName Uses

func (gl *GL) LoadName(name uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml

func (*GL) LoadTransposeMatrixd Uses

func (gl *GL) LoadTransposeMatrixd(m []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml

func (*GL) LoadTransposeMatrixf Uses

func (gl *GL) LoadTransposeMatrixf(m []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml

func (*GL) LogicOp Uses

func (gl *GL) LogicOp(opcode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml

func (*GL) Map1d Uses

func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml

func (*GL) Map1f Uses

func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml

func (*GL) Map2d Uses

func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml

func (*GL) Map2f Uses

func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml

func (*GL) MapGrid1d Uses

func (gl *GL) MapGrid1d(un int32, u1, u2 float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml

func (*GL) MapGrid1f Uses

func (gl *GL) MapGrid1f(un int32, u1, u2 float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml

func (*GL) MapGrid2d Uses

func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml

func (*GL) MapGrid2f Uses

func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml

func (*GL) Materialf Uses

func (gl *GL) Materialf(face, pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml

func (*GL) Materialfv Uses

func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml

func (*GL) Materiali Uses

func (gl *GL) Materiali(face, pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml

func (*GL) Materialiv Uses

func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml

func (*GL) MatrixMode Uses

func (gl *GL) MatrixMode(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml

func (*GL) Minmax Uses

func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml

func (*GL) MultMatrixd Uses

func (gl *GL) MultMatrixd(m []float64)

MultMatrixd multiplies the current matrix with the provided matrix.

The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.

The current matrix is determined by the current matrix mode (see MatrixMode). It is either the projection matrix, modelview matrix, or the texture matrix.

For example, if the current matrix is C and the coordinates to be transformed are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or

c[0]  c[4]  c[8]  c[12]     v[0]
c[1]  c[5]  c[9]  c[13]     v[1]
c[2]  c[6]  c[10] c[14]  X  v[2]
c[3]  c[7]  c[11] c[15]     v[3]

Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15] replaces the current transformation with (C X M) x v, or

c[0]  c[4]  c[8]  c[12]   m[0]  m[4]  m[8]  m[12]   v[0]
c[1]  c[5]  c[9]  c[13]   m[1]  m[5]  m[9]  m[13]   v[1]
c[2]  c[6]  c[10] c[14] X m[2]  m[6]  m[10] m[14] X v[2]
c[3]  c[7]  c[11] c[15]   m[3]  m[7]  m[11] m[15]   v[3]

Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.

While the elements of the matrix may be specified with single or double precision, the GL may store or operate on these values in less-than-single precision.

In many computer languages, 4×4 arrays are represented in row-major order. The transformations just described represent these matrices in column-major order. The order of the multiplication is important. For example, if the current transformation is a rotation, and MultMatrix is called with a translation matrix, the translation is done directly on the coordinates to be transformed, while the rotation is done on the results of that translation.

GL.INVALID_OPERATION is generated if MultMatrix is executed between the execution of Begin and the corresponding execution of End.

func (*GL) MultMatrixf Uses

func (gl *GL) MultMatrixf(m []float32)

MultMatrixf multiplies the current matrix with the provided matrix.

The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.

The current matrix is determined by the current matrix mode (see MatrixMode). It is either the projection matrix, modelview matrix, or the texture matrix.

For example, if the current matrix is C and the coordinates to be transformed are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or

c[0]  c[4]  c[8]  c[12]     v[0]
c[1]  c[5]  c[9]  c[13]     v[1]
c[2]  c[6]  c[10] c[14]  X  v[2]
c[3]  c[7]  c[11] c[15]     v[3]

Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15] replaces the current transformation with (C X M) x v, or

c[0]  c[4]  c[8]  c[12]   m[0]  m[4]  m[8]  m[12]   v[0]
c[1]  c[5]  c[9]  c[13]   m[1]  m[5]  m[9]  m[13]   v[1]
c[2]  c[6]  c[10] c[14] X m[2]  m[6]  m[10] m[14] X v[2]
c[3]  c[7]  c[11] c[15]   m[3]  m[7]  m[11] m[15]   v[3]

Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.

While the elements of the matrix may be specified with single or double precision, the GL may store or operate on these values in less-than-single precision.

In many computer languages, 4×4 arrays are represented in row-major order. The transformations just described represent these matrices in column-major order. The order of the multiplication is important. For example, if the current transformation is a rotation, and MultMatrix is called with a translation matrix, the translation is done directly on the coordinates to be transformed, while the rotation is done on the results of that translation.

GL.INVALID_OPERATION is generated if MultMatrix is executed between the execution of Begin and the corresponding execution of End.

func (*GL) MultTransposeMatrixd Uses

func (gl *GL) MultTransposeMatrixd(m []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml

func (*GL) MultTransposeMatrixf Uses

func (gl *GL) MultTransposeMatrixf(m []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml

func (*GL) MultiDrawArrays Uses

func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiDrawArrays.xml

func (*GL) MultiTexCoord1d Uses

func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml

func (*GL) MultiTexCoord1dv Uses

func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml

func (*GL) MultiTexCoord1f Uses

func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml

func (*GL) MultiTexCoord1fv Uses

func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml

func (*GL) MultiTexCoord1i Uses

func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml

func (*GL) MultiTexCoord1iv Uses

func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml

func (*GL) MultiTexCoord1s Uses

func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml

func (*GL) MultiTexCoord1sv Uses

func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml

func (*GL) MultiTexCoord2d Uses

func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml

func (*GL) MultiTexCoord2dv Uses

func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml

func (*GL) MultiTexCoord2f Uses

func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml

func (*GL) MultiTexCoord2fv Uses

func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml

func (*GL) MultiTexCoord2i Uses

func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml

func (*GL) MultiTexCoord2iv Uses

func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml

func (*GL) MultiTexCoord2s Uses

func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml

func (*GL) MultiTexCoord2sv Uses

func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml

func (*GL) MultiTexCoord3d Uses

func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml

func (*GL) MultiTexCoord3dv Uses

func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml

func (*GL) MultiTexCoord3f Uses

func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml

func (*GL) MultiTexCoord3fv Uses

func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml

func (*GL) MultiTexCoord3i Uses

func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml

func (*GL) MultiTexCoord3iv Uses

func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml

func (*GL) MultiTexCoord3s Uses

func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml

func (*GL) MultiTexCoord3sv Uses

func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml

func (*GL) MultiTexCoord4d Uses

func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml

func (*GL) MultiTexCoord4dv Uses

func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml

func (*GL) MultiTexCoord4f Uses

func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml

func (*GL) MultiTexCoord4fv Uses

func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml

func (*GL) MultiTexCoord4i Uses

func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml

func (*GL) MultiTexCoord4iv Uses

func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml

func (*GL) MultiTexCoord4s Uses

func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml

func (*GL) MultiTexCoord4sv Uses

func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml

func (*GL) NewList Uses

func (gl *GL) NewList(list uint32, mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml

func (*GL) Normal3b Uses

func (gl *GL) Normal3b(nx, ny, nz byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml

func (*GL) Normal3bv Uses

func (gl *GL) Normal3bv(v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml

func (*GL) Normal3d Uses

func (gl *GL) Normal3d(nx, ny, nz float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml

func (*GL) Normal3dv Uses

func (gl *GL) Normal3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml

func (*GL) Normal3f Uses

func (gl *GL) Normal3f(nx, ny, nz float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml

func (*GL) Normal3fv Uses

func (gl *GL) Normal3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml

func (*GL) Normal3i Uses

func (gl *GL) Normal3i(nx, ny, nz int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml

func (*GL) Normal3iv Uses

func (gl *GL) Normal3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml

func (*GL) Normal3s Uses

func (gl *GL) Normal3s(nx, ny, nz int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml

func (*GL) Normal3sv Uses

func (gl *GL) Normal3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml

func (*GL) NormalPointer Uses

func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml

func (*GL) Ortho Uses

func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml

func (*GL) PassThrough Uses

func (gl *GL) PassThrough(token float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml

func (*GL) PixelMapfv Uses

func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml

func (*GL) PixelMapuiv Uses

func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml

func (*GL) PixelMapusv Uses

func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml

func (*GL) PixelStoref Uses

func (gl *GL) PixelStoref(pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml

func (*GL) PixelStorei Uses

func (gl *GL) PixelStorei(pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml

func (*GL) PixelTransferf Uses

func (gl *GL) PixelTransferf(pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml

func (*GL) PixelTransferi Uses

func (gl *GL) PixelTransferi(pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml

func (*GL) PixelZoom Uses

func (gl *GL) PixelZoom(xfactor, yfactor float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml

func (*GL) PointParameterf Uses

func (gl *GL) PointParameterf(pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterf.xml

func (*GL) PointParameterfv Uses

func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterfv.xml

func (*GL) PointParameteri Uses

func (gl *GL) PointParameteri(pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteri.xml

func (*GL) PointParameteriv Uses

func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteriv.xml

func (*GL) PointSize Uses

func (gl *GL) PointSize(size float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml

func (*GL) PolygonMode Uses

func (gl *GL) PolygonMode(face, mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml

func (*GL) PolygonOffset Uses

func (gl *GL) PolygonOffset(factor, units float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml

func (*GL) PolygonStipple Uses

func (gl *GL) PolygonStipple(mask []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml

func (*GL) PopAttrib Uses

func (gl *GL) PopAttrib()

https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml

func (*GL) PopClientAttrib Uses

func (gl *GL) PopClientAttrib()

https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml

func (*GL) PopMatrix Uses

func (gl *GL) PopMatrix()

https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml

func (*GL) PopName Uses

func (gl *GL) PopName()

https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml

func (*GL) PrioritizeTextures Uses

func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml

func (*GL) PushAttrib Uses

func (gl *GL) PushAttrib(mask glbase.Bitfield)

https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml

func (*GL) PushClientAttrib Uses

func (gl *GL) PushClientAttrib(mask glbase.Bitfield)

https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml

func (*GL) PushMatrix Uses

func (gl *GL) PushMatrix()

https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml

func (*GL) PushName Uses

func (gl *GL) PushName(name uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml

func (*GL) RasterPos2d Uses

func (gl *GL) RasterPos2d(x, y float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml

func (*GL) RasterPos2dv Uses

func (gl *GL) RasterPos2dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml

func (*GL) RasterPos2f Uses

func (gl *GL) RasterPos2f(x, y float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml

func (*GL) RasterPos2fv Uses

func (gl *GL) RasterPos2fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml

func (*GL) RasterPos2i Uses

func (gl *GL) RasterPos2i(x, y int)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml

func (*GL) RasterPos2iv Uses

func (gl *GL) RasterPos2iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml

func (*GL) RasterPos2s Uses

func (gl *GL) RasterPos2s(x, y int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml

func (*GL) RasterPos2sv Uses

func (gl *GL) RasterPos2sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml

func (*GL) RasterPos3d Uses

func (gl *GL) RasterPos3d(x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml

func (*GL) RasterPos3dv Uses

func (gl *GL) RasterPos3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml

func (*GL) RasterPos3f Uses

func (gl *GL) RasterPos3f(x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml

func (*GL) RasterPos3fv Uses

func (gl *GL) RasterPos3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml

func (*GL) RasterPos3i Uses

func (gl *GL) RasterPos3i(x, y, z int)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml

func (*GL) RasterPos3iv Uses

func (gl *GL) RasterPos3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml

func (*GL) RasterPos3s Uses

func (gl *GL) RasterPos3s(x, y, z int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml

func (*GL) RasterPos3sv Uses

func (gl *GL) RasterPos3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml

func (*GL) RasterPos4d Uses

func (gl *GL) RasterPos4d(x, y, z, w float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml

func (*GL) RasterPos4dv Uses

func (gl *GL) RasterPos4dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml

func (*GL) RasterPos4f Uses

func (gl *GL) RasterPos4f(x, y, z, w float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml

func (*GL) RasterPos4fv Uses

func (gl *GL) RasterPos4fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml

func (*GL) RasterPos4i Uses

func (gl *GL) RasterPos4i(x, y, z, w int)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml

func (*GL) RasterPos4iv Uses

func (gl *GL) RasterPos4iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml

func (*GL) RasterPos4s Uses

func (gl *GL) RasterPos4s(x, y, z, w int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml

func (*GL) RasterPos4sv Uses

func (gl *GL) RasterPos4sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml

func (*GL) ReadBuffer Uses

func (gl *GL) ReadBuffer(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml

func (*GL) ReadPixels Uses

func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml

func (*GL) Rectd Uses

func (gl *GL) Rectd(x1, y1, x2, y2 float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml

func (*GL) Rectdv Uses

func (gl *GL) Rectdv(v1, v2 []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml

func (*GL) Rectf Uses

func (gl *GL) Rectf(x1, y1, x2, y2 float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml

func (*GL) Rectfv Uses

func (gl *GL) Rectfv(v1, v2 []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml

func (*GL) Recti Uses

func (gl *GL) Recti(x1, y1, x2, y2 int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml

func (*GL) Rectiv Uses

func (gl *GL) Rectiv(v1, v2 []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml

func (*GL) Rects Uses

func (gl *GL) Rects(x1, y1, x2, y2 int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml

func (*GL) Rectsv Uses

func (gl *GL) Rectsv(v1, v2 []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml

func (*GL) RenderMode Uses

func (gl *GL) RenderMode(mode glbase.Enum) int32

https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml

func (*GL) ResetHistogram Uses

func (gl *GL) ResetHistogram(target glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml

func (*GL) ResetMinmax Uses

func (gl *GL) ResetMinmax(target glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml

func (*GL) Rotated Uses

func (gl *GL) Rotated(angle, x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml

func (*GL) Rotatef Uses

func (gl *GL) Rotatef(angle, x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml

func (*GL) SampleCoverage Uses

func (gl *GL) SampleCoverage(value float32, invert bool)

https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml

func (*GL) Scaled Uses

func (gl *GL) Scaled(x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml

func (*GL) Scalef Uses

func (gl *GL) Scalef(x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml

func (*GL) Scissor Uses

func (gl *GL) Scissor(x, y, width, height int)

https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml

func (*GL) SecondaryColor3b Uses

func (gl *GL) SecondaryColor3b(red, green, blue byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3b.xml

func (*GL) SecondaryColor3bv Uses

func (gl *GL) SecondaryColor3bv(v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3bv.xml

func (*GL) SecondaryColor3d Uses

func (gl *GL) SecondaryColor3d(red, green, blue float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3d.xml

func (*GL) SecondaryColor3dv Uses

func (gl *GL) SecondaryColor3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3dv.xml

func (*GL) SecondaryColor3f Uses

func (gl *GL) SecondaryColor3f(red, green, blue float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3f.xml

func (*GL) SecondaryColor3fv Uses

func (gl *GL) SecondaryColor3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3fv.xml

func (*GL) SecondaryColor3i Uses

func (gl *GL) SecondaryColor3i(red, green, blue int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3i.xml

func (*GL) SecondaryColor3iv Uses

func (gl *GL) SecondaryColor3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3iv.xml

func (*GL) SecondaryColor3s Uses

func (gl *GL) SecondaryColor3s(red, green, blue int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3s.xml

func (*GL) SecondaryColor3sv Uses

func (gl *GL) SecondaryColor3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3sv.xml

func (*GL) SecondaryColor3ub Uses

func (gl *GL) SecondaryColor3ub(red, green, blue uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ub.xml

func (*GL) SecondaryColor3ubv Uses

func (gl *GL) SecondaryColor3ubv(v []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ubv.xml

func (*GL) SecondaryColor3ui Uses

func (gl *GL) SecondaryColor3ui(red, green, blue uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ui.xml

func (*GL) SecondaryColor3uiv Uses

func (gl *GL) SecondaryColor3uiv(v []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3uiv.xml

func (*GL) SecondaryColor3us Uses

func (gl *GL) SecondaryColor3us(red, green, blue uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3us.xml

func (*GL) SecondaryColor3usv Uses

func (gl *GL) SecondaryColor3usv(v []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3usv.xml

func (*GL) SecondaryColorPointer Uses

func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColorPointer.xml

func (*GL) SelectBuffer Uses

func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer)

https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml

func (*GL) SeparableFilter2D Uses

func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml

func (*GL) ShadeModel Uses

func (gl *GL) ShadeModel(mode glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml

func (*GL) ShaderSource Uses

func (gl *GL) ShaderSource(shader glbase.Shader, source ...string)

ShaderSource sets the source code in shader to the provided source code. Any source code previously stored in the shader object is completely replaced.

Error GL.INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader object. GL.INVALID_VALUE is generated if count is less than 0. GL.INVALID_OPERATION is generated if ShaderSource is executed between the execution of Begin and the corresponding execution of End.

ShaderSource is available in GL version 2.0 or greater.

func (*GL) StencilFunc Uses

func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml

func (*GL) StencilFuncSeparate Uses

func (gl *GL) StencilFuncSeparate(face, glfunc glbase.Enum, ref int32, mask uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFuncSeparate.xml

func (*GL) StencilMask Uses

func (gl *GL) StencilMask(mask uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml

func (*GL) StencilMaskSeparate Uses

func (gl *GL) StencilMaskSeparate(face glbase.Enum, mask uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMaskSeparate.xml

func (*GL) StencilOp Uses

func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml

func (*GL) StencilOpSeparate Uses

func (gl *GL) StencilOpSeparate(face, sfail, dpfail, dppass glbase.Enum)

https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOpSeparate.xml

func (*GL) TexCoord1d Uses

func (gl *GL) TexCoord1d(s float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml

func (*GL) TexCoord1dv Uses

func (gl *GL) TexCoord1dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml

func (*GL) TexCoord1f Uses

func (gl *GL) TexCoord1f(s float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml

func (*GL) TexCoord1fv Uses

func (gl *GL) TexCoord1fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml

func (*GL) TexCoord1i Uses

func (gl *GL) TexCoord1i(s int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml

func (*GL) TexCoord1iv Uses

func (gl *GL) TexCoord1iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml

func (*GL) TexCoord1s Uses

func (gl *GL) TexCoord1s(s int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml

func (*GL) TexCoord1sv Uses

func (gl *GL) TexCoord1sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml

func (*GL) TexCoord2d Uses

func (gl *GL) TexCoord2d(s, t float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml

func (*GL) TexCoord2dv Uses

func (gl *GL) TexCoord2dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml

func (*GL) TexCoord2f Uses

func (gl *GL) TexCoord2f(s, t float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml

func (*GL) TexCoord2fv Uses

func (gl *GL) TexCoord2fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml

func (*GL) TexCoord2i Uses

func (gl *GL) TexCoord2i(s, t int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml

func (*GL) TexCoord2iv Uses

func (gl *GL) TexCoord2iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml

func (*GL) TexCoord2s Uses

func (gl *GL) TexCoord2s(s, t int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml

func (*GL) TexCoord2sv Uses

func (gl *GL) TexCoord2sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml

func (*GL) TexCoord3d Uses

func (gl *GL) TexCoord3d(s, t, r float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml

func (*GL) TexCoord3dv Uses

func (gl *GL) TexCoord3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml

func (*GL) TexCoord3f Uses

func (gl *GL) TexCoord3f(s, t, r float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml

func (*GL) TexCoord3fv Uses

func (gl *GL) TexCoord3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml

func (*GL) TexCoord3i Uses

func (gl *GL) TexCoord3i(s, t, r int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml

func (*GL) TexCoord3iv Uses

func (gl *GL) TexCoord3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml

func (*GL) TexCoord3s Uses

func (gl *GL) TexCoord3s(s, t, r int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml

func (*GL) TexCoord3sv Uses

func (gl *GL) TexCoord3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml

func (*GL) TexCoord4d Uses

func (gl *GL) TexCoord4d(s, t, r, q float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml

func (*GL) TexCoord4dv Uses

func (gl *GL) TexCoord4dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml

func (*GL) TexCoord4f Uses

func (gl *GL) TexCoord4f(s, t, r, q float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml

func (*GL) TexCoord4fv Uses

func (gl *GL) TexCoord4fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml

func (*GL) TexCoord4i Uses

func (gl *GL) TexCoord4i(s, t, r, q int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml

func (*GL) TexCoord4iv Uses

func (gl *GL) TexCoord4iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml

func (*GL) TexCoord4s Uses

func (gl *GL) TexCoord4s(s, t, r, q int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml

func (*GL) TexCoord4sv Uses

func (gl *GL) TexCoord4sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml

func (*GL) TexCoordPointer Uses

func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml

func (*GL) TexEnvf Uses

func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml

func (*GL) TexEnvfv Uses

func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml

func (*GL) TexEnvi Uses

func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml

func (*GL) TexEnviv Uses

func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml

func (*GL) TexGend Uses

func (gl *GL) TexGend(coord, pname glbase.Enum, param float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml

func (*GL) TexGendv Uses

func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml

func (*GL) TexGenf Uses

func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml

func (*GL) TexGenfv Uses

func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml

func (*GL) TexGeni Uses

func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml

func (*GL) TexGeniv Uses

func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml

func (*GL) TexImage1D Uses

func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml

func (*GL) TexImage2D Uses

func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml

func (*GL) TexImage3D Uses

func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml

func (*GL) TexParameterf Uses

func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml

func (*GL) TexParameterfv Uses

func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml

func (*GL) TexParameteri Uses

func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml

func (*GL) TexParameteriv Uses

func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml

func (*GL) TexSubImage1D Uses

func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml

func (*GL) TexSubImage2D Uses

func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml

func (*GL) TexSubImage3D Uses

func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml

func (*GL) Translated Uses

func (gl *GL) Translated(x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml

func (*GL) Translatef Uses

func (gl *GL) Translatef(x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml

func (*GL) Uniform1f Uses

func (gl *GL) Uniform1f(location glbase.Uniform, v0 float32)

Uniform1f modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform1f operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform1fv Uses

func (gl *GL) Uniform1fv(location glbase.Uniform, value []float32)

Uniform1fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform1fv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform1i Uses

func (gl *GL) Uniform1i(location glbase.Uniform, v0 int32)

Uniform1i modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform1i operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform1iv Uses

func (gl *GL) Uniform1iv(location glbase.Uniform, value []int32)

Uniform1iv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform1iv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform2f Uses

func (gl *GL) Uniform2f(location glbase.Uniform, v0, v1 float32)

Uniform2f modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform2f operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform2fv Uses

func (gl *GL) Uniform2fv(location glbase.Uniform, value []float32)

Uniform2fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform2fv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform2i Uses

func (gl *GL) Uniform2i(location glbase.Uniform, v0, v1 int32)

Uniform2i modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform2i operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform2iv Uses

func (gl *GL) Uniform2iv(location glbase.Uniform, value []int32)

Uniform2iv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform2iv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform3f Uses

func (gl *GL) Uniform3f(location glbase.Uniform, v0, v1, v2 float32)

Uniform3f modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform3f operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform3fv Uses

func (gl *GL) Uniform3fv(location glbase.Uniform, value []float32)

Uniform3fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform3fv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform3i Uses

func (gl *GL) Uniform3i(location glbase.Uniform, v0, v1, v2 int32)

Uniform3i modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform3i operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform3iv Uses

func (gl *GL) Uniform3iv(location glbase.Uniform, value []int32)

Uniform3iv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform3iv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform4f Uses

func (gl *GL) Uniform4f(location glbase.Uniform, v0, v1, v2, v3 float32)

Uniform4f modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform4f operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform4fv Uses

func (gl *GL) Uniform4fv(location glbase.Uniform, value []float32)

Uniform4fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform4fv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform4i Uses

func (gl *GL) Uniform4i(location glbase.Uniform, v0, v1, v2, v3 int32)

Uniform4i modifies the value of a single uniform variable. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform4i operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the uniform variable specified by location using the values passed as arguments. The number specified in the function should match the number of components in the data type of the specified uniform variable (1 for float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.). The suffix f indicates that floating-point values are being passed; the suffix i indicates that integer values are being passed; the suffix ui indicates that unsigned integer values are being passed, and this type should also match the data type of the specified uniform variable. The i variants of this function should be used to provide values for uniform variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui variants of this function should be used to provide values for uniform variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of these. The f variants should be used to provide values for uniform variables of type float, vec2, vec3, vec4, or arrays of these. Either the i, ui or f variants may be used to provide values for uniform variables of type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will be set to false if the input value is 0 or 0.0f, and it will be set to true otherwise.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) Uniform4iv Uses

func (gl *GL) Uniform4iv(location glbase.Uniform, value []int32)

Uniform4iv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. Uniform4iv operates on the program object that was made part of current state by calling UseProgram.

The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single uniform variable or a uniform variable array. These functions receive a slice with the values to be loaded into a uniform variable or a uniform variable array. A slice with length 1 should be used if modifying the value of a single uniform variable, and a length of 1 or greater can be used to modify an entire array or part of an array. When loading n elements starting at an arbitrary position m in a uniform variable array, elements m + n - 1 in the array will be replaced with the new values. If m + n - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be ignored. The number specified in the name of the command indicates the number of components for each element in value, and it should match the number of components in the data type of the specified uniform variable (1 for float, int, bool; 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described for Uniform{1|2|3|4}{f|i|ui}.

Uniform1i and Uniform1iv are the only two functions that may be used to load uniform variables defined as sampler types. Loading samplers with any other function will result in a GL.INVALID_OPERATION error.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) UniformMatrix2fv Uses

func (gl *GL) UniformMatrix2fv(location glbase.Uniform, transpose bool, value []float32)

UniformMatrix2fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. UniformMatrix2fv operates on the program object that was made part of current state by calling UseProgram.

The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to modify a matrix or an array of matrices. The numbers in the function name are interpreted as the dimensionality of the matrix. The number 2 indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9 values), and the number 4 indicates a 4x4 matrix (16 values). Non-square matrix dimensionality is explicit, with the first number representing the number of columns and the second number representing the number of rows. For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8 values). The length of the provided slice must be a multiple of the number of values per matrix, to update one or more consecutive matrices.

If transpose is false, each matrix is assumed to be supplied in column major order. If transpose is true, each matrix is assumed to be supplied in row major order.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) UniformMatrix3fv Uses

func (gl *GL) UniformMatrix3fv(location glbase.Uniform, transpose bool, value []float32)

UniformMatrix3fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. UniformMatrix3fv operates on the program object that was made part of current state by calling UseProgram.

The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to modify a matrix or an array of matrices. The numbers in the function name are interpreted as the dimensionality of the matrix. The number 2 indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9 values), and the number 4 indicates a 4x4 matrix (16 values). Non-square matrix dimensionality is explicit, with the first number representing the number of columns and the second number representing the number of rows. For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8 values). The length of the provided slice must be a multiple of the number of values per matrix, to update one or more consecutive matrices.

If transpose is false, each matrix is assumed to be supplied in column major order. If transpose is true, each matrix is assumed to be supplied in row major order.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) UniformMatrix4fv Uses

func (gl *GL) UniformMatrix4fv(location glbase.Uniform, transpose bool, value []float32)

UniformMatrix4fv modifies the value of a uniform variable or a uniform variable array. The location of the uniform variable to be modified is specified by location, which should be a value returned by GetUniformLocation. UniformMatrix4fv operates on the program object that was made part of current state by calling UseProgram.

The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to modify a matrix or an array of matrices. The numbers in the function name are interpreted as the dimensionality of the matrix. The number 2 indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9 values), and the number 4 indicates a 4x4 matrix (16 values). Non-square matrix dimensionality is explicit, with the first number representing the number of columns and the second number representing the number of rows. For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8 values). The length of the provided slice must be a multiple of the number of values per matrix, to update one or more consecutive matrices.

If transpose is false, each matrix is assumed to be supplied in column major order. If transpose is true, each matrix is assumed to be supplied in row major order.

All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to Uniform* until the next successful link operation occurs on the program object, when they are once again initialized to 0.

func (*GL) UnmapBuffer Uses

func (gl *GL) UnmapBuffer(target glbase.Enum) bool

https://www.opengl.org/sdk/docs/man2/xhtml/glUnmapBuffer.xml

func (*GL) UseProgram Uses

func (gl *GL) UseProgram(program glbase.Program)

UseProgram installs the program object specified by program as part of current rendering state. One or more executables are created in a program object by successfully attaching shader objects to it with AttachShader, successfully compiling the shader objects with CompileShader, and successfully linking the program object with LinkProgram.

A program object will contain an executable that will run on the vertex processor if it contains one or more shader objects of type GL.VERTEX_SHADER that have been successfully compiled and linked. Similarly, a program object will contain an executable that will run on the fragment processor if it contains one or more shader objects of type GL.FRAGMENT_SHADER that have been successfully compiled and linked.

Successfully installing an executable on a programmable processor will cause the corresponding fixed functionality of OpenGL to be disabled. Specifically, if an executable is installed on the vertex processor, the OpenGL fixed functionality will be disabled as follows.

- The modelview matrix is not applied to vertex coordinates.

- The projection matrix is not applied to vertex coordinates.

- The texture matrices are not applied to texture coordinates.

- Normals are not transformed to eye coordinates.

- Normals are not rescaled or normalized.

- Normalization of GL.AUTO_NORMAL evaluated normals is not performed.

- Texture coordinates are not generated automatically.

- Per-vertex lighting is not performed.

- Color material computations are not performed.

- Color index lighting is not performed.

- This list also applies when setting the current raster position.

The executable that is installed on the vertex processor is expected to implement any or all of the desired functionality from the preceding list. Similarly, if an executable is installed on the fragment processor, the OpenGL fixed functionality will be disabled as follows.

- Texture environment and texture functions are not applied.

- Texture application is not applied.

- Color sum is not applied.

- Fog is not applied.

Again, the fragment shader that is installed is expected to implement any or all of the desired functionality from the preceding list.

While a program object is in use, applications are free to modify attached shader objects, compile attached shader objects, attach additional shader objects, and detach or delete shader objects. None of these operations will affect the executables that are part of the current state. However, relinking the program object that is currently in use will install the program object as part of the current rendering state if the link operation was successful (see LinkProgram). If the program object currently in use is relinked unsuccessfully, its link status will be set to GL.FALSE, but the executables and associated state will remain part of the current state until a subsequent call to UseProgram removes it from use. After it is removed from use, it cannot be made part of current state until it has been successfully relinked.

If program contains shader objects of type GL.VERTEX_SHADER but it does not contain shader objects of type GL.FRAGMENT_SHADER, an executable will be installed on the vertex processor, but fixed functionality will be used for fragment processing. Similarly, if program contains shader objects of type GL.FRAGMENT_SHADER but it does not contain shader objects of type GL.VERTEX_SHADER, an executable will be installed on the fragment processor, but fixed functionality will be used for vertex processing. If program is 0, the programmable processors will be disabled, and fixed functionality will be used for both vertex and fragment processing.

While a program object is in use, the state that controls the disabled fixed functionality may also be updated using the normal OpenGL calls.

Like display lists and texture objects, the name space for program objects may be shared across a set of contexts, as long as the server sides of the contexts share the same address space. If the name space is shared across contexts, any attached objects and the data associated with those attached objects are shared as well.

Applications are responsible for providing the synchronization across API calls when objects are accessed from different execution threads.

Error GL.INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL. GL.INVALID_OPERATION is generated if program is not a program object. GL.INVALID_OPERATION is generated if program could not be made part of current state. GL.INVALID_OPERATION is generated if UseProgram is executed between the execution of Begin and the corresponding execution of End.

UseProgram is available in GL version 2.0 or greater.

func (*GL) ValidateProgram Uses

func (gl *GL) ValidateProgram(program glbase.Program)

https://www.opengl.org/sdk/docs/man2/xhtml/glValidateProgram.xml

func (*GL) Vertex2d Uses

func (gl *GL) Vertex2d(x, y float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml

func (*GL) Vertex2dv Uses

func (gl *GL) Vertex2dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml

func (*GL) Vertex2f Uses

func (gl *GL) Vertex2f(x, y float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml

func (*GL) Vertex2fv Uses

func (gl *GL) Vertex2fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml

func (*GL) Vertex2i Uses

func (gl *GL) Vertex2i(x, y int)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml

func (*GL) Vertex2iv Uses

func (gl *GL) Vertex2iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml

func (*GL) Vertex2s Uses

func (gl *GL) Vertex2s(x, y int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml

func (*GL) Vertex2sv Uses

func (gl *GL) Vertex2sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml

func (*GL) Vertex3d Uses

func (gl *GL) Vertex3d(x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml

func (*GL) Vertex3dv Uses

func (gl *GL) Vertex3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml

func (*GL) Vertex3f Uses

func (gl *GL) Vertex3f(x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml

func (*GL) Vertex3fv Uses

func (gl *GL) Vertex3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml

func (*GL) Vertex3i Uses

func (gl *GL) Vertex3i(x, y, z int)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml

func (*GL) Vertex3iv Uses

func (gl *GL) Vertex3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml

func (*GL) Vertex3s Uses

func (gl *GL) Vertex3s(x, y, z int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml

func (*GL) Vertex3sv Uses

func (gl *GL) Vertex3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml

func (*GL) Vertex4d Uses

func (gl *GL) Vertex4d(x, y, z, w float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml

func (*GL) Vertex4dv Uses

func (gl *GL) Vertex4dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml

func (*GL) Vertex4f Uses

func (gl *GL) Vertex4f(x, y, z, w float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml

func (*GL) Vertex4fv Uses

func (gl *GL) Vertex4fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml

func (*GL) Vertex4i Uses

func (gl *GL) Vertex4i(x, y, z, w int)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml

func (*GL) Vertex4iv Uses

func (gl *GL) Vertex4iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml

func (*GL) Vertex4s Uses

func (gl *GL) Vertex4s(x, y, z, w int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml

func (*GL) Vertex4sv Uses

func (gl *GL) Vertex4sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml

func (*GL) VertexAttrib1d Uses

func (gl *GL) VertexAttrib1d(index glbase.Attrib, x float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1d.xml

func (*GL) VertexAttrib1dv Uses

func (gl *GL) VertexAttrib1dv(index glbase.Attrib, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1dv.xml

func (*GL) VertexAttrib1f Uses

func (gl *GL) VertexAttrib1f(index glbase.Attrib, x float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1f.xml

func (*GL) VertexAttrib1fv Uses

func (gl *GL) VertexAttrib1fv(index glbase.Attrib, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1fv.xml

func (*GL) VertexAttrib1s Uses

func (gl *GL) VertexAttrib1s(index glbase.Attrib, x int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1s.xml

func (*GL) VertexAttrib1sv Uses

func (gl *GL) VertexAttrib1sv(index glbase.Attrib, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1sv.xml

func (*GL) VertexAttrib2d Uses

func (gl *GL) VertexAttrib2d(index glbase.Attrib, x, y float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2d.xml

func (*GL) VertexAttrib2dv Uses

func (gl *GL) VertexAttrib2dv(index glbase.Attrib, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2dv.xml

func (*GL) VertexAttrib2f Uses

func (gl *GL) VertexAttrib2f(index glbase.Attrib, x, y float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2f.xml

func (*GL) VertexAttrib2fv Uses

func (gl *GL) VertexAttrib2fv(index glbase.Attrib, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2fv.xml

func (*GL) VertexAttrib2s Uses

func (gl *GL) VertexAttrib2s(index glbase.Attrib, x, y int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2s.xml

func (*GL) VertexAttrib2sv Uses

func (gl *GL) VertexAttrib2sv(index glbase.Attrib, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2sv.xml

func (*GL) VertexAttrib3d Uses

func (gl *GL) VertexAttrib3d(index glbase.Attrib, x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3d.xml

func (*GL) VertexAttrib3dv Uses

func (gl *GL) VertexAttrib3dv(index glbase.Attrib, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3dv.xml

func (*GL) VertexAttrib3f Uses

func (gl *GL) VertexAttrib3f(index glbase.Attrib, x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3f.xml

func (*GL) VertexAttrib3fv Uses

func (gl *GL) VertexAttrib3fv(index glbase.Attrib, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3fv.xml

func (*GL) VertexAttrib3s Uses

func (gl *GL) VertexAttrib3s(index glbase.Attrib, x, y, z int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3s.xml

func (*GL) VertexAttrib3sv Uses

func (gl *GL) VertexAttrib3sv(index glbase.Attrib, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3sv.xml

func (*GL) VertexAttrib4Nbv Uses

func (gl *GL) VertexAttrib4Nbv(index glbase.Attrib, v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nbv.xml

func (*GL) VertexAttrib4Niv Uses

func (gl *GL) VertexAttrib4Niv(index glbase.Attrib, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Niv.xml

func (*GL) VertexAttrib4Nsv Uses

func (gl *GL) VertexAttrib4Nsv(index glbase.Attrib, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nsv.xml

func (*GL) VertexAttrib4Nub Uses

func (gl *GL) VertexAttrib4Nub(index glbase.Attrib, x, y, z, w uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nub.xml

func (*GL) VertexAttrib4Nubv Uses

func (gl *GL) VertexAttrib4Nubv(index glbase.Attrib, v []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nubv.xml

func (*GL) VertexAttrib4Nuiv Uses

func (gl *GL) VertexAttrib4Nuiv(index glbase.Attrib, v []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nuiv.xml

func (*GL) VertexAttrib4Nusv Uses

func (gl *GL) VertexAttrib4Nusv(index glbase.Attrib, v []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nusv.xml

func (*GL) VertexAttrib4bv Uses

func (gl *GL) VertexAttrib4bv(index glbase.Attrib, v []byte)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4bv.xml

func (*GL) VertexAttrib4d Uses

func (gl *GL) VertexAttrib4d(index glbase.Attrib, x, y, z, w float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4d.xml

func (*GL) VertexAttrib4dv Uses

func (gl *GL) VertexAttrib4dv(index glbase.Attrib, v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4dv.xml

func (*GL) VertexAttrib4f Uses

func (gl *GL) VertexAttrib4f(index glbase.Attrib, x, y, z, w float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4f.xml

func (*GL) VertexAttrib4fv Uses

func (gl *GL) VertexAttrib4fv(index glbase.Attrib, v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4fv.xml

func (*GL) VertexAttrib4iv Uses

func (gl *GL) VertexAttrib4iv(index glbase.Attrib, v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4iv.xml

func (*GL) VertexAttrib4s Uses

func (gl *GL) VertexAttrib4s(index glbase.Attrib, x, y, z, w int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4s.xml

func (*GL) VertexAttrib4sv Uses

func (gl *GL) VertexAttrib4sv(index glbase.Attrib, v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4sv.xml

func (*GL) VertexAttrib4ubv Uses

func (gl *GL) VertexAttrib4ubv(index glbase.Attrib, v []uint8)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4ubv.xml

func (*GL) VertexAttrib4uiv Uses

func (gl *GL) VertexAttrib4uiv(index glbase.Attrib, v []uint32)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4uiv.xml

func (*GL) VertexAttrib4usv Uses

func (gl *GL) VertexAttrib4usv(index glbase.Attrib, v []uint16)

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4usv.xml

func (*GL) VertexAttribPointer Uses

func (gl *GL) VertexAttribPointer(index glbase.Attrib, size int, gltype glbase.Enum, normalized bool, stride int, offset uintptr)

VertexAttribPointer specifies the location and data format of the array of generic vertex attributes at index to use when rendering. size specifies the number of components per attribute and must be 1, 2, 3, or 4. type specifies the data type of each component, and stride specifies the byte stride from one attribute to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. normalized indicates whether the values stored in an integer format are to be mapped to the range [-1,1] (for signed values) or [0,1] (for unsigned values) when they are accessed and converted to floating point; otherwise, values will be converted to floats directly without normalization. offset is a byte offset into the buffer object's data store, which must be bound to the GL.ARRAY_BUFFER target with BindBuffer.

The buffer object binding (GL.ARRAY_BUFFER_BINDING) is saved as generic vertex attribute array client-side state (GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for the provided index.

To enable and disable a generic vertex attribute array, call EnableVertexAttribArray and DisableVertexAttribArray with index. If enabled, the generic vertex attribute array is used when DrawArrays or DrawElements is called. Each generic vertex attribute array is initially disabled.

VertexAttribPointer is typically implemented on the client side.

Error GL.INVALID_ENUM is generated if type is not an accepted value. GL.INVALID_VALUE is generated if index is greater than or equal to GL.MAX_VERTEX_ATTRIBS. GL.INVALID_VALUE is generated if size is not 1, 2, 3, or 4. GL.INVALID_VALUE is generated if stride is negative.

func (*GL) VertexPointer Uses

func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{})

https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml

func (*GL) Viewport Uses

func (gl *GL) Viewport(x, y, width, height int)

https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml

func (*GL) WindowPos2d Uses

func (gl *GL) WindowPos2d(x, y float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2d.xml

func (*GL) WindowPos2dv Uses

func (gl *GL) WindowPos2dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2dv.xml

func (*GL) WindowPos2f Uses

func (gl *GL) WindowPos2f(x, y float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2f.xml

func (*GL) WindowPos2fv Uses

func (gl *GL) WindowPos2fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2fv.xml

func (*GL) WindowPos2i Uses

func (gl *GL) WindowPos2i(x, y int)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2i.xml

func (*GL) WindowPos2iv Uses

func (gl *GL) WindowPos2iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2iv.xml

func (*GL) WindowPos2s Uses

func (gl *GL) WindowPos2s(x, y int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2s.xml

func (*GL) WindowPos2sv Uses

func (gl *GL) WindowPos2sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2sv.xml

func (*GL) WindowPos3d Uses

func (gl *GL) WindowPos3d(x, y, z float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3d.xml

func (*GL) WindowPos3dv Uses

func (gl *GL) WindowPos3dv(v []float64)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3dv.xml

func (*GL) WindowPos3f Uses

func (gl *GL) WindowPos3f(x, y, z float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3f.xml

func (*GL) WindowPos3fv Uses

func (gl *GL) WindowPos3fv(v []float32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3fv.xml

func (*GL) WindowPos3i Uses

func (gl *GL) WindowPos3i(x, y, z int)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3i.xml

func (*GL) WindowPos3iv Uses

func (gl *GL) WindowPos3iv(v []int32)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3iv.xml

func (*GL) WindowPos3s Uses

func (gl *GL) WindowPos3s(x, y, z int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3s.xml

func (*GL) WindowPos3sv Uses

func (gl *GL) WindowPos3sv(v []int16)

https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3sv.xml

Package GL imports 5 packages (graph) and is imported by 8 packages. Updated 2016-07-15. Refresh now. Tools for package owners.