Package-level declarations

Types

Link copied to clipboard
class AndroidKgl : Kgl
Link copied to clipboard
class IosKgl : Kgl

Kgl over the iOS OpenGLES.framework ES 3.0 bindings (platform.gles3.*). The class is the iOS counterpart of androidMain.AndroidKgl / jvmMain.JoglKgl — a thin marshalling layer that pins Kotlin arrays for the duration of each gl call and converts our Int-typed enum values to GLenum (UInt).

Link copied to clipboard
class JoglKgl(gl: GL3ES3) : Kgl
Link copied to clipboard
class JsWebKgl(val gl: WebGLRenderingContext) : WebKgl
Link copied to clipboard
interface Kgl
Link copied to clipboard
expect class KglBuffer
actual data class KglBuffer
actual data class KglBuffer
actual data class KglBuffer
actual data class KglBuffer
Link copied to clipboard
expect class KglFramebuffer
actual data class KglFramebuffer
actual data class KglFramebuffer
actual data class KglFramebuffer
actual data class KglFramebuffer
Link copied to clipboard
expect class KglProgram
actual data class KglProgram
actual data class KglProgram
actual data class KglProgram
actual data class KglProgram
Link copied to clipboard
expect class KglRenderbuffer
actual data class KglRenderbuffer
actual data class KglRenderbuffer
actual data class KglRenderbuffer
actual data class KglRenderbuffer
Link copied to clipboard
expect class KglShader
actual data class KglShader
actual data class KglShader
actual data class KglShader
actual data class KglShader
Link copied to clipboard
expect class KglSync
actual data class KglSync
actual data class KglSync
actual data class KglSync
actual data class KglSync
Link copied to clipboard
expect class KglTexture
actual data class KglTexture
actual data class KglTexture
actual data class KglTexture
actual data class KglTexture
Link copied to clipboard
expect class KglUniformLocation
actual data class KglUniformLocation
actual data class KglUniformLocation
actual data class KglUniformLocation
actual data class KglUniformLocation
Link copied to clipboard
class LwjglKgl : Kgl
Link copied to clipboard
class WasmJsWebKgl(val gl: WebGLRenderingContext) : WebKgl
WebGLRenderbuffer
Link copied to clipboard
external class WebGLRenderbuffer

Opaque WebGL2 renderbuffer handle. The browser returns these from createRenderbuffer() and accepts them back in bind/framebuffer/delete calls; we never touch fields on them. Public because KglRenderbuffer (an actual data class) exposes the handle.

external class WebGLRenderbuffer : JsAny

Opaque WebGL2 renderbuffer handle. The browser returns these from createRenderbuffer() and accepts them back in bind/framebuffer/delete calls; we never touch fields on them. Public because KglRenderbuffer (an actual data class) exposes the handle.

WebGLSync
Link copied to clipboard
external class WebGLSync

Opaque WebGL2 sync (fence) handle — same usage as WebGLRenderbuffer.

external class WebGLSync : JsAny

Opaque WebGL2 sync (fence) handle — same usage as WebGLRenderbuffer.

Link copied to clipboard
interface WebKgl : Kgl

The web (js + wasmJs) Kgl, adding the one WebGL capability the common interface can't express: uploading a DOM image source (image / canvas / video / ImageBitmap) straight to texture level 0 via texImage2D(target, level, internalFormat, format, type, source), which has no buffer equivalent. Shared render code (earth.worldwind.render.image.ImageTexture, earth.worldwind.render.video.HtmlVideoTexture) reaches it by casting dc.gl as WebKgl; the concrete implementations (JsWebKgl on js, WasmJsWebKgl on wasmJs) stay per-target because the rest of their WebGL interop diverges (js dynamic zero-copy views vs wasm typed JsAny copies).

Properties

Link copied to clipboard
Link copied to clipboard
const val GL_ACTIVE_ATTRIBUTES: Int = 35721
Link copied to clipboard
const val GL_ACTIVE_TEXTURE: Int = 34016
Link copied to clipboard
Link copied to clipboard
const val GL_ACTIVE_UNIFORMS: Int = 35718
Link copied to clipboard
const val GL_ALIASED_LINE_WIDTH_RANGE: Int = 33902
Link copied to clipboard
const val GL_ALIASED_POINT_SIZE_RANGE: Int = 33901
Link copied to clipboard
const val GL_ALPHA: Int = 6406
Link copied to clipboard
const val GL_ALPHA_BITS: Int = 3413
Link copied to clipboard
const val GL_ALREADY_SIGNALED: Int = 37146
Link copied to clipboard
const val GL_ALWAYS: Int = 519
Link copied to clipboard
const val GL_ARRAY_BUFFER: Int = 34962
Link copied to clipboard
const val GL_ARRAY_BUFFER_BINDING: Int = 34964
Link copied to clipboard
const val GL_ATTACHED_SHADERS: Int = 35717
Link copied to clipboard
const val GL_BACK: Int = 1029
Link copied to clipboard
const val GL_BGR: Int = 32992
Link copied to clipboard
const val GL_BGRA: Int = 32993
Link copied to clipboard
const val GL_BLEND: Int = 3042
Link copied to clipboard
const val GL_BLEND_COLOR: Int = 32773
Link copied to clipboard
const val GL_BLEND_DST_ALPHA: Int = 32970
Link copied to clipboard
const val GL_BLEND_DST_RGB: Int = 32968
Link copied to clipboard
const val GL_BLEND_EQUATION: Int = 32777
Link copied to clipboard
const val GL_BLEND_EQUATION_ALPHA: Int = 34877
Link copied to clipboard
const val GL_BLEND_EQUATION_RGB: Int = 32777
Link copied to clipboard
const val GL_BLEND_SRC_ALPHA: Int = 32971
Link copied to clipboard
const val GL_BLEND_SRC_RGB: Int = 32969
Link copied to clipboard
const val GL_BLUE: Int = 6405
Link copied to clipboard
const val GL_BLUE_BITS: Int = 3412
Link copied to clipboard
const val GL_BOOL: Int = 35670
Link copied to clipboard
const val GL_BOOL_VEC2: Int = 35671
Link copied to clipboard
const val GL_BOOL_VEC3: Int = 35672
Link copied to clipboard
const val GL_BOOL_VEC4: Int = 35673
Link copied to clipboard
const val GL_BUFFER_SIZE: Int = 34660
Link copied to clipboard
const val GL_BUFFER_USAGE: Int = 34661
Link copied to clipboard
const val GL_BYTE: Int = 5120
Link copied to clipboard
const val GL_CCW: Int = 2305
Link copied to clipboard
const val GL_CLAMP_TO_EDGE: Int = 33071
Link copied to clipboard
const val GL_COLOR_ATTACHMENT0: Int = 36064
Link copied to clipboard
const val GL_COLOR_ATTACHMENT1: Int = 36065
Link copied to clipboard
const val GL_COLOR_ATTACHMENT10: Int = 36074
Link copied to clipboard
const val GL_COLOR_ATTACHMENT11: Int = 36075
Link copied to clipboard
const val GL_COLOR_ATTACHMENT12: Int = 36076
Link copied to clipboard
const val GL_COLOR_ATTACHMENT13: Int = 36077
Link copied to clipboard
const val GL_COLOR_ATTACHMENT14: Int = 36078
Link copied to clipboard
const val GL_COLOR_ATTACHMENT15: Int = 36079
Link copied to clipboard
const val GL_COLOR_ATTACHMENT16: Int = 36080
Link copied to clipboard
const val GL_COLOR_ATTACHMENT17: Int = 36081
Link copied to clipboard
const val GL_COLOR_ATTACHMENT18: Int = 36082
Link copied to clipboard
const val GL_COLOR_ATTACHMENT19: Int = 36083
Link copied to clipboard
const val GL_COLOR_ATTACHMENT2: Int = 36066
Link copied to clipboard
const val GL_COLOR_ATTACHMENT20: Int = 36084
Link copied to clipboard
const val GL_COLOR_ATTACHMENT21: Int = 36085
Link copied to clipboard
const val GL_COLOR_ATTACHMENT22: Int = 36086
Link copied to clipboard
const val GL_COLOR_ATTACHMENT23: Int = 36087
Link copied to clipboard
const val GL_COLOR_ATTACHMENT24: Int = 36088
Link copied to clipboard
const val GL_COLOR_ATTACHMENT25: Int = 36089
Link copied to clipboard
const val GL_COLOR_ATTACHMENT26: Int = 36090
Link copied to clipboard
const val GL_COLOR_ATTACHMENT27: Int = 36091
Link copied to clipboard
const val GL_COLOR_ATTACHMENT28: Int = 36092
Link copied to clipboard
const val GL_COLOR_ATTACHMENT29: Int = 36093
Link copied to clipboard
const val GL_COLOR_ATTACHMENT3: Int = 36067
Link copied to clipboard
const val GL_COLOR_ATTACHMENT30: Int = 36094
Link copied to clipboard
const val GL_COLOR_ATTACHMENT31: Int = 36095
Link copied to clipboard
const val GL_COLOR_ATTACHMENT4: Int = 36068
Link copied to clipboard
const val GL_COLOR_ATTACHMENT5: Int = 36069
Link copied to clipboard
const val GL_COLOR_ATTACHMENT6: Int = 36070
Link copied to clipboard
const val GL_COLOR_ATTACHMENT7: Int = 36071
Link copied to clipboard
const val GL_COLOR_ATTACHMENT8: Int = 36072
Link copied to clipboard
const val GL_COLOR_ATTACHMENT9: Int = 36073
Link copied to clipboard
const val GL_COLOR_BUFFER_BIT: Int = 16384
Link copied to clipboard
const val GL_COLOR_CLEAR_VALUE: Int = 3106
Link copied to clipboard
const val GL_COLOR_WRITEMASK: Int = 3107
Link copied to clipboard
const val GL_COMPARE_REF_TO_TEXTURE: Int = 34894
Link copied to clipboard
const val GL_COMPILE_STATUS: Int = 35713
Link copied to clipboard
const val GL_COMPRESSED_RED: Int = 33317
Link copied to clipboard
const val GL_COMPRESSED_RG: Int = 33318
Link copied to clipboard
Link copied to clipboard
const val GL_CONDITION_SATISFIED: Int = 37148
Link copied to clipboard
const val GL_CONSTANT_ALPHA: Int = 32771
Link copied to clipboard
const val GL_CONSTANT_COLOR: Int = 32769
Link copied to clipboard
const val GL_CULL_FACE: Int = 2884
Link copied to clipboard
const val GL_CULL_FACE_MODE: Int = 2885
Link copied to clipboard
const val GL_CURRENT_PROGRAM: Int = 35725
Link copied to clipboard
const val GL_CURRENT_VERTEX_ATTRIB: Int = 34342
Link copied to clipboard
const val GL_CW: Int = 2304
Link copied to clipboard
const val GL_DECR: Int = 7683
Link copied to clipboard
const val GL_DECR_WRAP: Int = 34056
Link copied to clipboard
const val GL_DELETE_STATUS: Int = 35712
Link copied to clipboard
const val GL_DEPTH24_STENCIL8: Int = 35056
Link copied to clipboard
const val GL_DEPTH_ATTACHMENT: Int = 36096
Link copied to clipboard
const val GL_DEPTH_BITS: Int = 3414
Link copied to clipboard
const val GL_DEPTH_BUFFER_BIT: Int = 256
Link copied to clipboard
const val GL_DEPTH_CLEAR_VALUE: Int = 2931
Link copied to clipboard
const val GL_DEPTH_COMPONENT: Int = 6402
Link copied to clipboard
const val GL_DEPTH_COMPONENT16: Int = 33189
Link copied to clipboard
const val GL_DEPTH_COMPONENT24: Int = 33190
Link copied to clipboard
const val GL_DEPTH_FUNC: Int = 2932
Link copied to clipboard
const val GL_DEPTH_RANGE: Int = 2928
Link copied to clipboard
const val GL_DEPTH_STENCIL: Int = 34041
Link copied to clipboard
const val GL_DEPTH_STENCIL_ATTACHMENT: Int = 33306
Link copied to clipboard
const val GL_DEPTH_TEST: Int = 2929
Link copied to clipboard
const val GL_DEPTH_WRITEMASK: Int = 2930
Link copied to clipboard
const val GL_DITHER: Int = 3024
Link copied to clipboard
const val GL_DONT_CARE: Int = 4352
Link copied to clipboard
const val GL_DRAW_FRAMEBUFFER: Int = 36009
Link copied to clipboard
const val GL_DST_ALPHA: Int = 772
Link copied to clipboard
const val GL_DST_COLOR: Int = 774
Link copied to clipboard
const val GL_DYNAMIC_DRAW: Int = 35048
Link copied to clipboard
const val GL_DYNAMIC_READ: Int = 35049
Link copied to clipboard
const val GL_ELEMENT_ARRAY_BUFFER: Int = 34963
Link copied to clipboard
Link copied to clipboard
const val GL_EQUAL: Int = 514
Link copied to clipboard
const val GL_EXTENSIONS: Int = 7939
Link copied to clipboard
const val GL_FALSE: Int = 0
Link copied to clipboard
const val GL_FASTEST: Int = 4353
Link copied to clipboard
const val GL_FIXED: Int = 5132
Link copied to clipboard
const val GL_FLOAT: Int = 5126
Link copied to clipboard
const val GL_FLOAT_MAT2: Int = 35674
Link copied to clipboard
const val GL_FLOAT_MAT3: Int = 35675
Link copied to clipboard
const val GL_FLOAT_MAT4: Int = 35676
Link copied to clipboard
const val GL_FLOAT_VEC2: Int = 35664
Link copied to clipboard
const val GL_FLOAT_VEC3: Int = 35665
Link copied to clipboard
const val GL_FLOAT_VEC4: Int = 35666
Link copied to clipboard
const val GL_FRAGMENT_SHADER: Int = 35632
Link copied to clipboard
const val GL_FRAMEBUFFER: Int = 36160
Link copied to clipboard
const val GL_FRAMEBUFFER_COMPLETE: Int = 36053
Link copied to clipboard
const val GL_FRAMEBUFFER_UNDEFINED: Int = 33305
Link copied to clipboard
const val GL_FRAMEBUFFER_UNSUPPORTED: Int = 36061
Link copied to clipboard
const val GL_FRONT: Int = 1028
Link copied to clipboard
const val GL_FRONT_AND_BACK: Int = 1032
Link copied to clipboard
const val GL_FRONT_FACE: Int = 2886
Link copied to clipboard
const val GL_FUNC_ADD: Int = 32774
Link copied to clipboard
const val GL_FUNC_REVERSE_SUBTRACT: Int = 32779
Link copied to clipboard
const val GL_FUNC_SUBTRACT: Int = 32778
Link copied to clipboard
const val GL_GENERATE_MIPMAP_HINT: Int = 33170
Link copied to clipboard
const val GL_GEQUAL: Int = 518
Link copied to clipboard
const val GL_GREATER: Int = 516
Link copied to clipboard
const val GL_GREEN: Int = 6404
Link copied to clipboard
const val GL_GREEN_BITS: Int = 3411
Link copied to clipboard
const val GL_HALF_FLOAT: Int = 5131
Link copied to clipboard
const val GL_HIGH_FLOAT: Int = 36338
Link copied to clipboard
const val GL_HIGH_INT: Int = 36341
Link copied to clipboard
Link copied to clipboard
const val GL_INCR: Int = 7682
Link copied to clipboard
const val GL_INCR_WRAP: Int = 34055
Link copied to clipboard
const val GL_INFO_LOG_LENGTH: Int = 35716
Link copied to clipboard
const val GL_INT: Int = 5124
Link copied to clipboard
const val GL_INT_VEC2: Int = 35667
Link copied to clipboard
const val GL_INT_VEC3: Int = 35668
Link copied to clipboard
const val GL_INT_VEC4: Int = 35669
Link copied to clipboard
const val GL_INVALID_ENUM: Int = 1280
Link copied to clipboard
Link copied to clipboard
const val GL_INVALID_OPERATION: Int = 1282
Link copied to clipboard
const val GL_INVALID_VALUE: Int = 1281
Link copied to clipboard
const val GL_INVERT: Int = 5386
Link copied to clipboard
const val GL_KEEP: Int = 7680
Link copied to clipboard
const val GL_LEQUAL: Int = 515
Link copied to clipboard
const val GL_LESS: Int = 513
Link copied to clipboard
const val GL_LINE_LOOP: Int = 2
Link copied to clipboard
const val GL_LINE_STRIP: Int = 3
Link copied to clipboard
const val GL_LINE_WIDTH: Int = 2849
Link copied to clipboard
const val GL_LINEAR: Int = 9729
Link copied to clipboard
const val GL_LINEAR_MIPMAP_LINEAR: Int = 9987
Link copied to clipboard
const val GL_LINEAR_MIPMAP_NEAREST: Int = 9985
Link copied to clipboard
const val GL_LINES: Int = 1
Link copied to clipboard
const val GL_LINK_STATUS: Int = 35714
Link copied to clipboard
const val GL_LOW_FLOAT: Int = 36336
Link copied to clipboard
const val GL_LOW_INT: Int = 36339
Link copied to clipboard
const val GL_LUMINANCE: Int = 6409
Link copied to clipboard
const val GL_LUMINANCE_ALPHA: Int = 6410
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_MAP_READ_BIT: Int = 1
Link copied to clipboard
Link copied to clipboard
const val GL_MAP_WRITE_BIT: Int = 2

Bits for Kgl.mapAndCopyBufferRange. The combination WRITE_BIT | INVALIDATE_RANGE_BIT | UNSYNCHRONIZED_BIT is the standard "rename" upload idiom — the driver hands back fresh-mapped staging memory without waiting for the previous transfer to complete.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_MAX_SAMPLES: Int = 36183
Link copied to clipboard
const val GL_MAX_TEXTURE_IMAGE_UNITS: Int = 34930
Link copied to clipboard
const val GL_MAX_TEXTURE_SIZE: Int = 3379
Link copied to clipboard
const val GL_MAX_VARYING_VECTORS: Int = 36348
Link copied to clipboard
const val GL_MAX_VERTEX_ATTRIBS: Int = 34921
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_MAX_VIEWPORT_DIMS: Int = 3386
Link copied to clipboard
const val GL_MEDIUM_FLOAT: Int = 36337
Link copied to clipboard
const val GL_MEDIUM_INT: Int = 36340
Link copied to clipboard
const val GL_MIRRORED_REPEAT: Int = 33648
Link copied to clipboard
const val GL_NEAREST: Int = 9728
Link copied to clipboard
const val GL_NEAREST_MIPMAP_LINEAR: Int = 9986
Link copied to clipboard
const val GL_NEAREST_MIPMAP_NEAREST: Int = 9984
Link copied to clipboard
const val GL_NEVER: Int = 512
Link copied to clipboard
const val GL_NICEST: Int = 4354
Link copied to clipboard
const val GL_NO_ERROR: Int = 0
Link copied to clipboard
const val GL_NONE: Int = 0
Link copied to clipboard
const val GL_NOTEQUAL: Int = 517
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_ONE: Int = 1
Link copied to clipboard
const val GL_ONE_MINUS_CONSTANT_ALPHA: Int = 32772
Link copied to clipboard
const val GL_ONE_MINUS_CONSTANT_COLOR: Int = 32770
Link copied to clipboard
const val GL_ONE_MINUS_DST_ALPHA: Int = 773
Link copied to clipboard
const val GL_ONE_MINUS_DST_COLOR: Int = 775
Link copied to clipboard
const val GL_ONE_MINUS_SRC_ALPHA: Int = 771
Link copied to clipboard
const val GL_ONE_MINUS_SRC_COLOR: Int = 769
Link copied to clipboard
const val GL_OUT_OF_MEMORY: Int = 1285
Link copied to clipboard
const val GL_PACK_ALIGNMENT: Int = 3333
Link copied to clipboard
const val GL_PIXEL_PACK_BUFFER: Int = 35051
Link copied to clipboard
const val GL_PIXEL_UNPACK_BUFFER: Int = 35052
Link copied to clipboard
const val GL_POINT_SPRITE: Int = 34913
Link copied to clipboard
const val GL_POINTS: Int = 0
Link copied to clipboard
const val GL_POLYGON_OFFSET_FACTOR: Int = 32824
Link copied to clipboard
const val GL_POLYGON_OFFSET_FILL: Int = 32823
Link copied to clipboard
const val GL_POLYGON_OFFSET_UNITS: Int = 10752
Link copied to clipboard
const val GL_PROGRAM_POINT_SIZE: Int = 34370
Link copied to clipboard
const val GL_R16: Int = 33322
Link copied to clipboard
const val GL_R16F: Int = 33325
Link copied to clipboard
const val GL_R16I: Int = 33331
Link copied to clipboard
const val GL_R16UI: Int = 33332
Link copied to clipboard
const val GL_R32F: Int = 33326
Link copied to clipboard
const val GL_R32I: Int = 33333
Link copied to clipboard
const val GL_R32UI: Int = 33334
Link copied to clipboard
const val GL_R8: Int = 33321
Link copied to clipboard
const val GL_R8I: Int = 33329
Link copied to clipboard
const val GL_R8UI: Int = 33330
Link copied to clipboard
const val GL_READ_FRAMEBUFFER: Int = 36008
Link copied to clipboard
const val GL_RED: Int = 6403
Link copied to clipboard
const val GL_RED_BITS: Int = 3410
Link copied to clipboard
const val GL_RENDERBUFFER: Int = 36161
Link copied to clipboard
const val GL_RENDERER: Int = 7937
Link copied to clipboard
const val GL_REPEAT: Int = 10497
Link copied to clipboard
const val GL_REPLACE: Int = 7681
Link copied to clipboard
const val GL_RG: Int = 33319
Link copied to clipboard
const val GL_RG16: Int = 33324
Link copied to clipboard
const val GL_RG16F: Int = 33327
Link copied to clipboard
const val GL_RG16I: Int = 33337
Link copied to clipboard
const val GL_RG16UI: Int = 33338
Link copied to clipboard
const val GL_RG32F: Int = 33328
Link copied to clipboard
const val GL_RG32I: Int = 33339
Link copied to clipboard
const val GL_RG32UI: Int = 33340
Link copied to clipboard
const val GL_RG8: Int = 33323
Link copied to clipboard
const val GL_RG8I: Int = 33335
Link copied to clipboard
const val GL_RG8UI: Int = 33336
Link copied to clipboard
const val GL_RGB: Int = 6407
Link copied to clipboard
const val GL_RGB565: Int = 36194
Link copied to clipboard
const val GL_RGB5_A1: Int = 32855
Link copied to clipboard
const val GL_RGBA: Int = 6408
Link copied to clipboard
const val GL_RGBA16F: Int = 34842
Link copied to clipboard
const val GL_RGBA32F: Int = 34836
Link copied to clipboard
const val GL_RGBA4: Int = 32854
Link copied to clipboard
const val GL_RGBA8: Int = 32856
Link copied to clipboard
const val GL_SAMPLE_ALPHA_TO_COVERAGE: Int = 32926
Link copied to clipboard
const val GL_SAMPLE_BUFFERS: Int = 32936
Link copied to clipboard
const val GL_SAMPLE_COVERAGE: Int = 32928
Link copied to clipboard
const val GL_SAMPLE_COVERAGE_INVERT: Int = 32939
Link copied to clipboard
const val GL_SAMPLE_COVERAGE_VALUE: Int = 32938
Link copied to clipboard
const val GL_SAMPLER_2D: Int = 35678
Link copied to clipboard
const val GL_SAMPLER_CUBE: Int = 35680
Link copied to clipboard
const val GL_SAMPLES: Int = 32937
Link copied to clipboard
const val GL_SCISSOR_BOX: Int = 3088
Link copied to clipboard
const val GL_SCISSOR_TEST: Int = 3089
Link copied to clipboard
const val GL_SHADER_BINARY_FORMATS: Int = 36344
Link copied to clipboard
const val GL_SHADER_COMPILER: Int = 36346
Link copied to clipboard
const val GL_SHADER_SOURCE_LENGTH: Int = 35720
Link copied to clipboard
const val GL_SHADER_TYPE: Int = 35663
Link copied to clipboard
const val GL_SHADING_LANGUAGE_VERSION: Int = 35724
Link copied to clipboard
const val GL_SHORT: Int = 5122
Link copied to clipboard
Link copied to clipboard
const val GL_SRC_ALPHA: Int = 770
Link copied to clipboard
const val GL_SRC_ALPHA_SATURATE: Int = 776
Link copied to clipboard
const val GL_SRC_COLOR: Int = 768
Link copied to clipboard
const val GL_STATIC_DRAW: Int = 35044
Link copied to clipboard
const val GL_STATIC_READ: Int = 35045
Link copied to clipboard
const val GL_STENCIL_ATTACHMENT: Int = 36128
Link copied to clipboard
const val GL_STENCIL_BACK_FAIL: Int = 34817
Link copied to clipboard
const val GL_STENCIL_BACK_FUNC: Int = 34816
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_STENCIL_BACK_REF: Int = 36003
Link copied to clipboard
const val GL_STENCIL_BACK_VALUE_MASK: Int = 36004
Link copied to clipboard
const val GL_STENCIL_BACK_WRITEMASK: Int = 36005
Link copied to clipboard
const val GL_STENCIL_BITS: Int = 3415
Link copied to clipboard
const val GL_STENCIL_BUFFER_BIT: Int = 1024
Link copied to clipboard
const val GL_STENCIL_CLEAR_VALUE: Int = 2961
Link copied to clipboard
const val GL_STENCIL_FAIL: Int = 2964
Link copied to clipboard
const val GL_STENCIL_FUNC: Int = 2962
Link copied to clipboard
const val GL_STENCIL_INDEX: Int = 6401
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_STENCIL_REF: Int = 2967
Link copied to clipboard
const val GL_STENCIL_TEST: Int = 2960
Link copied to clipboard
const val GL_STENCIL_VALUE_MASK: Int = 2963
Link copied to clipboard
const val GL_STENCIL_WRITEMASK: Int = 2968
Link copied to clipboard
const val GL_STREAM_DRAW: Int = 35040
Link copied to clipboard
const val GL_STREAM_READ: Int = 35041
Link copied to clipboard
const val GL_SUBPIXEL_BITS: Int = 3408
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_TEXTURE: Int = 5890
Link copied to clipboard
const val GL_TEXTURE0: Int = 33984
Link copied to clipboard
const val GL_TEXTURE1: Int = 33985
Link copied to clipboard
const val GL_TEXTURE10: Int = 33994
Link copied to clipboard
const val GL_TEXTURE11: Int = 33995
Link copied to clipboard
const val GL_TEXTURE12: Int = 33996
Link copied to clipboard
const val GL_TEXTURE13: Int = 33997
Link copied to clipboard
const val GL_TEXTURE14: Int = 33998
Link copied to clipboard
const val GL_TEXTURE15: Int = 33999
Link copied to clipboard
const val GL_TEXTURE16: Int = 34000
Link copied to clipboard
const val GL_TEXTURE17: Int = 34001
Link copied to clipboard
const val GL_TEXTURE18: Int = 34002
Link copied to clipboard
const val GL_TEXTURE19: Int = 34003
Link copied to clipboard
const val GL_TEXTURE2: Int = 33986
Link copied to clipboard
const val GL_TEXTURE20: Int = 34004
Link copied to clipboard
const val GL_TEXTURE21: Int = 34005
Link copied to clipboard
const val GL_TEXTURE22: Int = 34006
Link copied to clipboard
const val GL_TEXTURE23: Int = 34007
Link copied to clipboard
const val GL_TEXTURE24: Int = 34008
Link copied to clipboard
const val GL_TEXTURE25: Int = 34009
Link copied to clipboard
const val GL_TEXTURE26: Int = 34010
Link copied to clipboard
const val GL_TEXTURE27: Int = 34011
Link copied to clipboard
const val GL_TEXTURE28: Int = 34012
Link copied to clipboard
const val GL_TEXTURE29: Int = 34013
Link copied to clipboard
const val GL_TEXTURE3: Int = 33987
Link copied to clipboard
const val GL_TEXTURE30: Int = 34014
Link copied to clipboard
const val GL_TEXTURE31: Int = 34015
Link copied to clipboard
const val GL_TEXTURE4: Int = 33988
Link copied to clipboard
const val GL_TEXTURE5: Int = 33989
Link copied to clipboard
const val GL_TEXTURE6: Int = 33990
Link copied to clipboard
const val GL_TEXTURE7: Int = 33991
Link copied to clipboard
const val GL_TEXTURE8: Int = 33992
Link copied to clipboard
const val GL_TEXTURE9: Int = 33993
Link copied to clipboard
const val GL_TEXTURE_2D: Int = 3553
Link copied to clipboard
const val GL_TEXTURE_BINDING_2D: Int = 32873
Link copied to clipboard
const val GL_TEXTURE_BINDING_CUBE_MAP: Int = 34068
Link copied to clipboard
const val GL_TEXTURE_COMPARE_FUNC: Int = 34893
Link copied to clipboard
const val GL_TEXTURE_COMPARE_MODE: Int = 34892
Link copied to clipboard
const val GL_TEXTURE_CUBE_MAP: Int = 34067
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_TEXTURE_EXTERNAL_OES: Int = 36197
Link copied to clipboard
const val GL_TEXTURE_MAG_FILTER: Int = 10240
Link copied to clipboard
const val GL_TEXTURE_MIN_FILTER: Int = 10241
Link copied to clipboard
const val GL_TEXTURE_SWIZZLE_A: Int = 36421
Link copied to clipboard
const val GL_TEXTURE_SWIZZLE_B: Int = 36420
Link copied to clipboard
const val GL_TEXTURE_SWIZZLE_G: Int = 36419
Link copied to clipboard
const val GL_TEXTURE_SWIZZLE_R: Int = 36418

Per-channel sampler swizzle masks (GL 3.3+ / GLES 3.0+ / WebGL2). Setting GL_TEXTURE_SWIZZLE_A = GL_ONE on a texture makes the sampler return alpha=1.0 regardless of the actual texture bytes — useful for video frames where the decoder leaves the X byte undefined and we'd otherwise have to force-fill alpha on every frame on the CPU.

Link copied to clipboard
const val GL_TEXTURE_WRAP_S: Int = 10242
Link copied to clipboard
const val GL_TEXTURE_WRAP_T: Int = 10243
Link copied to clipboard
const val GL_TIMEOUT_EXPIRED: Int = 37147
Link copied to clipboard
const val GL_TRIANGLE_FAN: Int = 6
Link copied to clipboard
const val GL_TRIANGLE_STRIP: Int = 5
Link copied to clipboard
const val GL_TRIANGLES: Int = 4
Link copied to clipboard
const val GL_TRUE: Int = 1
Link copied to clipboard
const val GL_UNPACK_ALIGNMENT: Int = 3317
Link copied to clipboard
const val GL_UNSIGNED_BYTE: Int = 5121
Link copied to clipboard
const val GL_UNSIGNED_INT: Int = 5125
Link copied to clipboard
const val GL_UNSIGNED_INT_24_8: Int = 34042
Link copied to clipboard
const val GL_UNSIGNED_SHORT: Int = 5123
Link copied to clipboard
const val GL_UNSIGNED_SHORT_4_4_4_4: Int = 32819
Link copied to clipboard
const val GL_UNSIGNED_SHORT_5_5_5_1: Int = 32820
Link copied to clipboard
const val GL_UNSIGNED_SHORT_5_6_5: Int = 33635
Link copied to clipboard
const val GL_VALIDATE_STATUS: Int = 35715
Link copied to clipboard
const val GL_VENDOR: Int = 7936
Link copied to clipboard
const val GL_VERSION: Int = 7938
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val GL_VERTEX_ATTRIB_ARRAY_SIZE: Int = 34339
Link copied to clipboard
Link copied to clipboard
const val GL_VERTEX_ATTRIB_ARRAY_TYPE: Int = 34341
Link copied to clipboard
const val GL_VERTEX_SHADER: Int = 35633
Link copied to clipboard
const val GL_VIEWPORT: Int = 2978
Link copied to clipboard
const val GL_WAIT_FAILED: Int = 37149
Link copied to clipboard
const val GL_ZERO: Int = 0

Functions

Link copied to clipboard

Rewrites GLSL ES 1.00 syntax in-place so it compiles under #version 300 es — run by Android / iOS shaderSource when a program opts into Kgl.glslVersion3. Same mapping as JoglKgl.translateLegacyGlsl / JsWebKgl.translateLegacyGlsl — keep them in sync; idempotent for already-modern sources. Fragments get a precision mediump default injected (ES 3.00 has none); a shader's own later precision block still overrides it.