2022-10-24 16:22:14 +02:00
|
|
|
// Copyright 2022 The Ebitengine Authors
|
2020-10-18 11:18:08 +02:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
|
2023-12-23 11:01:36 +01:00
|
|
|
//go:build !playstation5
|
|
|
|
|
2022-11-13 05:24:54 +01:00
|
|
|
package gl
|
2020-10-18 11:09:10 +02:00
|
|
|
|
|
|
|
const (
|
2023-04-22 14:20:34 +02:00
|
|
|
ALWAYS = 0x0207
|
|
|
|
ARRAY_BUFFER = 0x8892
|
2023-11-06 01:18:08 +01:00
|
|
|
BACK = 0x0405
|
2023-04-22 14:20:34 +02:00
|
|
|
BLEND = 0x0BE2
|
|
|
|
CLAMP_TO_EDGE = 0x812F
|
|
|
|
COLOR_ATTACHMENT0 = 0x8CE0
|
|
|
|
COMPILE_STATUS = 0x8B81
|
2023-11-06 01:18:08 +01:00
|
|
|
DECR_WRAP = 0x8508
|
2023-04-22 14:20:34 +02:00
|
|
|
DEPTH24_STENCIL8 = 0x88F0
|
|
|
|
DST_ALPHA = 0x0304
|
|
|
|
DST_COLOR = 0x0306
|
|
|
|
DYNAMIC_DRAW = 0x88E8
|
|
|
|
ELEMENT_ARRAY_BUFFER = 0x8893
|
|
|
|
FALSE = 0
|
|
|
|
FLOAT = 0x1406
|
|
|
|
FRAGMENT_SHADER = 0x8B30
|
|
|
|
FRAMEBUFFER = 0x8D40
|
|
|
|
FRAMEBUFFER_BINDING = 0x8CA6
|
|
|
|
FRAMEBUFFER_COMPLETE = 0x8CD5
|
2023-11-06 01:18:08 +01:00
|
|
|
FRONT = 0x0404
|
|
|
|
FRONT_AND_BACK = 0x0408
|
2023-04-22 14:20:34 +02:00
|
|
|
FUNC_ADD = 0x8006
|
|
|
|
FUNC_REVERSE_SUBTRACT = 0x800b
|
|
|
|
FUNC_SUBTRACT = 0x800a
|
|
|
|
HIGH_FLOAT = 0x8DF2
|
2023-11-06 01:18:08 +01:00
|
|
|
INCR_WRAP = 0x8507
|
2023-04-22 14:20:34 +02:00
|
|
|
INFO_LOG_LENGTH = 0x8B84
|
|
|
|
INVERT = 0x150A
|
|
|
|
KEEP = 0x1E00
|
|
|
|
LINK_STATUS = 0x8B82
|
2023-10-12 16:55:31 +02:00
|
|
|
MAX = 0x8008
|
2023-04-22 14:20:34 +02:00
|
|
|
MAX_TEXTURE_SIZE = 0x0D33
|
2023-10-12 16:55:31 +02:00
|
|
|
MIN = 0x8007
|
2023-04-22 14:20:34 +02:00
|
|
|
NEAREST = 0x2600
|
|
|
|
NO_ERROR = 0
|
|
|
|
NOTEQUAL = 0x0205
|
|
|
|
ONE = 1
|
|
|
|
ONE_MINUS_DST_ALPHA = 0x0305
|
|
|
|
ONE_MINUS_DST_COLOR = 0x0307
|
|
|
|
ONE_MINUS_SRC_ALPHA = 0x0303
|
|
|
|
ONE_MINUS_SRC_COLOR = 0x0301
|
|
|
|
PIXEL_PACK_BUFFER = 0x88EB
|
|
|
|
PIXEL_UNPACK_BUFFER = 0x88EC
|
|
|
|
READ_WRITE = 0x88BA
|
|
|
|
RENDERBUFFER = 0x8D41
|
|
|
|
RGBA = 0x1908
|
|
|
|
SCISSOR_TEST = 0x0C11
|
|
|
|
SHORT = 0x1402
|
|
|
|
SRC_ALPHA = 0x0302
|
|
|
|
SRC_ALPHA_SATURATE = 0x0308
|
|
|
|
SRC_COLOR = 0x0300
|
|
|
|
STENCIL_ATTACHMENT = 0x8D20
|
|
|
|
STENCIL_BUFFER_BIT = 0x0400
|
|
|
|
STENCIL_INDEX8 = 0x8D48
|
|
|
|
STENCIL_TEST = 0x0B90
|
|
|
|
STREAM_DRAW = 0x88E0
|
|
|
|
TEXTURE0 = 0x84C0
|
|
|
|
TEXTURE_2D = 0x0DE1
|
|
|
|
TEXTURE_MAG_FILTER = 0x2800
|
|
|
|
TEXTURE_MIN_FILTER = 0x2801
|
|
|
|
TEXTURE_WRAP_S = 0x2802
|
|
|
|
TEXTURE_WRAP_T = 0x2803
|
|
|
|
TRIANGLES = 0x0004
|
|
|
|
TRUE = 1
|
|
|
|
UNPACK_ALIGNMENT = 0x0CF5
|
|
|
|
UNSIGNED_BYTE = 0x1401
|
2023-11-03 18:45:16 +01:00
|
|
|
UNSIGNED_INT = 0x1405
|
2023-04-22 14:20:34 +02:00
|
|
|
VERTEX_SHADER = 0x8B31
|
|
|
|
WRITE_ONLY = 0x88B9
|
|
|
|
ZERO = 0
|
2020-10-18 11:09:10 +02:00
|
|
|
)
|