Buffer(type, dimensions, [template]) - Create a new Buffer object
(type) - The format to store data in
(dimensions) - An int or sequence specifying the dimensions of the buffer
[template] - A sequence of matching dimensions to the buffer to be created
which will be used to initialize the Buffer.
If a template is not passed in all fields will be initialized to 0.
The type should be one of GL_BYTE, GL_SHORT, GL_INT, or GL_FLOAT.
If the dimensions are specified as an int a linear buffer will be
created. If a sequence is passed for the dimensions the buffer
will have len(sequence) dimensions, where the size for each dimension
is determined by the value in the sequence at that index.
For example, passing [100, 100] will create a 2 dimensional
square buffer. Passing [16, 16, 32] will create a 3 dimensional
buffer which is twice as deep as it is wide or high.
Int: GL_2D - 1536
Int: GL_2_BYTES - 5127
Int: GL_3D - 1537
Int: GL_3D_COLOR - 1538
Int: GL_3D_COLOR_TEXTURE - 1539
Int: GL_3_BYTES - 5128
Int: GL_4D_COLOR_TEXTURE - 1540
Int: GL_4_BYTES - 5129
Int: GL_ACCUM - 256
Int: GL_ACCUM_ALPHA_BITS - 3419
Int: GL_ACCUM_BLUE_BITS - 3418
Int: GL_ACCUM_BUFFER_BIT - 512
Int: GL_ACCUM_CLEAR_VALUE - 2944
Int: GL_ACCUM_GREEN_BITS - 3417
Int: GL_ACCUM_RED_BITS - 3416
Int: GL_ADD - 260
Int: GL_ALL_ATTRIB_BITS - 1048575
Int: GL_ALPHA - 6406
Int: GL_ALPHA_BIAS - 3357
Int: GL_ALPHA_BITS - 3413
Int: GL_ALPHA_SCALE - 3356
Int: GL_ALPHA_TEST - 3008
Int: GL_ALPHA_TEST_FUNC - 3009
Int: GL_ALPHA_TEST_REF - 3010
Int: GL_ALWAYS - 519
Int: GL_AMBIENT - 4608
Int: GL_AMBIENT_AND_DIFFUSE - 5634
Int: GL_AND - 5377
Int: GL_AND_INVERTED - 5380
Int: GL_AND_REVERSE - 5378
Int: GL_ATTRIB_STACK_DEPTH - 2992
Int: GL_AUTO_NORMAL - 3456
Int: GL_AUX0 - 1033
Int: GL_AUX1 - 1034
Int: GL_AUX2 - 1035
Int: GL_AUX3 - 1036
Int: GL_AUX_BUFFERS - 3072
Int: GL_BACK - 1029
Int: GL_BACK_LEFT - 1026
Int: GL_BACK_RIGHT - 1027
Int: GL_BITMAP - 6656
Int: GL_BITMAP_TOKEN - 1796
Int: GL_BLEND - 3042
Int: GL_BLEND_DST - 3040
Int: GL_BLEND_SRC - 3041
Int: GL_BLUE - 6405
Int: GL_BLUE_BIAS - 3355
Int: GL_BLUE_BITS - 3412
Int: GL_BLUE_SCALE - 3354
Int: GL_BYTE - 5120
Int: GL_CCW - 2305
Int: GL_CLAMP - 10496
Int: GL_CLEAR - 5376
Int: GL_CLIP_PLANE0 - 12288
Int: GL_CLIP_PLANE1 - 12289
Int: GL_CLIP_PLANE2 - 12290
Int: GL_CLIP_PLANE3 - 12291
Int: GL_CLIP_PLANE4 - 12292
Int: GL_CLIP_PLANE5 - 12293
Int: GL_COEFF - 2560
Int: GL_COLOR - 6144
Int: GL_COLOR_BUFFER_BIT - 16384
Int: GL_COLOR_CLEAR_VALUE - 3106
Int: GL_COLOR_INDEX - 6400
Int: GL_COLOR_INDEXES - 5635
Int: GL_COLOR_MATERIAL - 2903
Int: GL_COLOR_MATERIAL_FACE - 2901
Int: GL_COLOR_MATERIAL_PARAMETER - 2902
Int: GL_COLOR_WRITEMASK - 3107
Int: GL_COMPILE - 4864
Int: GL_COMPILE_AND_EXECUTE - 4865
Int: GL_CONSTANT_ATTENUATION - 4615
Int: GL_COPY - 5379
Int: GL_COPY_INVERTED - 5388
Int: GL_COPY_PIXEL_TOKEN - 1798
Int: GL_CULL_FACE - 2884
Int: GL_CULL_FACE_MODE - 2885
Int: GL_CURRENT_BIT - 1
Int: GL_CURRENT_COLOR - 2816
Int: GL_CURRENT_INDEX - 2817
Int: GL_CURRENT_NORMAL - 2818
Int: GL_CURRENT_RASTER_COLOR - 2820
Int: GL_CURRENT_RASTER_DISTANCE - 2825
Int: GL_CURRENT_RASTER_INDEX - 2821
Int: GL_CURRENT_RASTER_POSITION - 2823
Int: GL_CURRENT_RASTER_POSITION_VALID - 2824
Int: GL_CURRENT_RASTER_TEXTURE_COORDS - 2822
Int: GL_CURRENT_TEXTURE_COORDS - 2819
Int: GL_CW - 2304
Int: GL_DECAL - 8449
Int: GL_DECR - 7683
Int: GL_DEPTH - 6145
Int: GL_DEPTH_BIAS - 3359
Int: GL_DEPTH_BITS - 3414
Int: GL_DEPTH_BUFFER_BIT - 256
Int: GL_DEPTH_CLEAR_VALUE - 2931
Int: GL_DEPTH_COMPONENT - 6402
Int: GL_DEPTH_FUNC - 2932
Int: GL_DEPTH_RANGE - 2928
Int: GL_DEPTH_SCALE - 3358
Int: GL_DEPTH_TEST - 2929
Int: GL_DEPTH_WRITEMASK - 2930
Int: GL_DIFFUSE - 4609
Int: GL_DITHER - 3024
Int: GL_DOMAIN - 2562
Int: GL_DONT_CARE - 4352
Int: GL_DOUBLEBUFFER - 3122
Int: GL_DRAW_BUFFER - 3073
Int: GL_DRAW_PIXEL_TOKEN - 1797
Int: GL_DST_ALPHA - 772
Int: GL_DST_COLOR - 774
Int: GL_EDGE_FLAG - 2883
Int: GL_EMISSION - 5632
Int: GL_ENABLE_BIT - 8192
Int: GL_EQUAL - 514
Int: GL_EQUIV - 5385
Int: GL_EVAL_BIT - 65536
Int: GL_EXP - 2048
Int: GL_EXP2 - 2049
Int: GL_EXTENSIONS - 7939
Int: GL_EYE_LINEAR - 9216
Int: GL_EYE_PLANE - 9474
Int: GL_FALSE - 0
Int: GL_FASTEST - 4353
Int: GL_FEEDBACK - 7169