2020-10-18 11:18:08 +02:00
|
|
|
// Copyright 2020 The Ebiten Authors
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2020-10-18 11:09:10 +02:00
|
|
|
// Package gles implements Go bindings to OpenGL ES.
|
|
|
|
package gles
|
|
|
|
|
|
|
|
const (
|
|
|
|
ZERO = 0
|
|
|
|
ONE = 1
|
|
|
|
SRC_ALPHA = 0x0302
|
|
|
|
DST_ALPHA = 0x0304
|
|
|
|
ONE_MINUS_SRC_ALPHA = 0x0303
|
|
|
|
ONE_MINUS_DST_ALPHA = 0x0305
|
|
|
|
DST_COLOR = 0x0306
|
|
|
|
|
2021-07-04 17:10:48 +02:00
|
|
|
ALWAYS = 0x0207
|
2020-11-21 14:59:30 +01:00
|
|
|
ARRAY_BUFFER = 0x8892
|
2020-10-18 11:09:10 +02:00
|
|
|
BLEND = 0x0BE2
|
|
|
|
CLAMP_TO_EDGE = 0x812F
|
|
|
|
COLOR_ATTACHMENT0 = 0x8CE0
|
|
|
|
COMPILE_STATUS = 0x8B81
|
2020-11-21 14:43:05 +01:00
|
|
|
DYNAMIC_DRAW = 0x88E8
|
2020-11-21 14:59:30 +01:00
|
|
|
ELEMENT_ARRAY_BUFFER = 0x8893
|
2020-11-21 14:43:05 +01:00
|
|
|
FALSE = 0
|
2020-11-21 15:14:43 +01:00
|
|
|
FLOAT = 0x1406
|
2020-11-21 15:32:13 +01:00
|
|
|
FRAGMENT_SHADER = 0x8B30
|
2020-10-18 11:09:10 +02:00
|
|
|
FRAMEBUFFER = 0x8D40
|
|
|
|
FRAMEBUFFER_BINDING = 0x8CA6
|
|
|
|
FRAMEBUFFER_COMPLETE = 0x8CD5
|
|
|
|
HIGH_FLOAT = 0x8DF2
|
|
|
|
INFO_LOG_LENGTH = 0x8B84
|
2021-07-04 17:10:48 +02:00
|
|
|
INVERT = 0x150A
|
|
|
|
KEEP = 0x1E00
|
2020-10-18 11:09:10 +02:00
|
|
|
LINK_STATUS = 0x8B82
|
|
|
|
MAX_TEXTURE_SIZE = 0x0D33
|
|
|
|
NEAREST = 0x2600
|
|
|
|
NO_ERROR = 0
|
2021-07-04 17:10:48 +02:00
|
|
|
NOTEQUAL = 0x0205
|
2020-11-21 14:43:05 +01:00
|
|
|
PIXEL_PACK_BUFFER = 0x88EB
|
|
|
|
PIXEL_UNPACK_BUFFER = 0x88EC
|
2020-10-18 11:09:10 +02:00
|
|
|
READ_WRITE = 0x88BA
|
2021-07-04 17:10:48 +02:00
|
|
|
RENDERBUFFER = 0x8D41
|
2020-10-18 11:09:10 +02:00
|
|
|
RGBA = 0x1908
|
2020-11-07 11:14:06 +01:00
|
|
|
SCISSOR_TEST = 0x0C11
|
2020-11-21 15:14:43 +01:00
|
|
|
SHORT = 0x1402
|
2021-07-04 17:10:48 +02:00
|
|
|
STENCIL_ATTACHMENT = 0x8D20
|
|
|
|
STENCIL_BUFFER_BIT = 0x0400
|
|
|
|
STENCIL_INDEX8 = 0x8D48
|
|
|
|
STENCIL_TEST = 0x0B90
|
2020-11-21 14:43:05 +01:00
|
|
|
STREAM_DRAW = 0x88E0
|
2020-10-18 11:09:10 +02:00
|
|
|
TEXTURE0 = 0x84C0
|
|
|
|
TEXTURE_2D = 0x0DE1
|
|
|
|
TEXTURE_MAG_FILTER = 0x2800
|
|
|
|
TEXTURE_MIN_FILTER = 0x2801
|
|
|
|
TEXTURE_WRAP_S = 0x2802
|
|
|
|
TEXTURE_WRAP_T = 0x2803
|
|
|
|
TRIANGLES = 0x0004
|
2020-11-21 14:43:05 +01:00
|
|
|
TRUE = 1
|
2020-10-18 11:09:10 +02:00
|
|
|
UNPACK_ALIGNMENT = 0x0CF5
|
|
|
|
UNSIGNED_BYTE = 0x1401
|
|
|
|
UNSIGNED_SHORT = 0x1403
|
2020-11-21 15:32:13 +01:00
|
|
|
VERTEX_SHADER = 0x8B31
|
2020-10-18 11:09:10 +02:00
|
|
|
WRITE_ONLY = 0x88B9
|
|
|
|
)
|