GLUtils

object GLUtils

Utility class for OpenGL ES.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class Program2D(vertexShaderSource: String, fragmentShaderSource: String)
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val EGL_GL_COLORSPACE_KHR: Int = 12445
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 PIXEL_STRIDE: Int = 4
Link copied to clipboard
const val SIZEOF_FLOAT: Int = 4
Link copied to clipboard
const val TAG: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val VAR_TEXTURE: String
Link copied to clipboard
Link copied to clipboard

Unknown version information.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Checks the egl error and log.

Link copied to clipboard

Checks the egl error and throw.

Link copied to clipboard

Checks the gl error and throw.

Link copied to clipboard

Checks the gl thread.

Link copied to clipboard
fun checkInitializedOrThrow(initialized: AtomicBoolean, shouldInitialized: Boolean)

Checks the initialization status.

Link copied to clipboard
fun checkLocationOrThrow(location: Int, label: String)

Checks the location error.

Link copied to clipboard
fun chooseSurfaceAttrib(eglExtensions: String, dynamicRange: DynamicRangeProfile): IntArray

Chooses the surface attributes for HDR 10bit.

Link copied to clipboard

Creates a 4x4 identity matrix.

Link copied to clipboard
Link copied to clipboard
fun createPBufferSurface(eglDisplay: EGLDisplay, eglConfig: EGLConfig, width: Int, height: Int): EGLSurface

Creates a new EGL pixel buffer surface.

Link copied to clipboard

Creates program objects based on shaders which are appropriate for each input format.

Link copied to clipboard

Creates a texture.

Link copied to clipboard
fun createWindowSurface(eglDisplay: EGLDisplay, eglConfig: EGLConfig, surface: Surface, surfaceAttrib: IntArray): EGLSurface

Creates an EGLSurface.

Link copied to clipboard
fun deleteFbo(fbo: Int)

Deletes framebuffer object.

Link copied to clipboard
fun deleteTexture(texture: Int)

Deletes texture.

Link copied to clipboard

Generates framebuffer object.

Link copied to clipboard

Generates texture.

Link copied to clipboard
fun getSurfaceSize(eglDisplay: EGLDisplay, eglSurface: EGLSurface): Size

Gets the size of EGLSurface.

Link copied to clipboard
fun loadShader(shaderType: Int, source: String): Int

Creates the vertex or fragment shader.

Link copied to clipboard
fun querySurface(eglDisplay: EGLDisplay, eglSurface: EGLSurface, what: Int): Int

Queries the EGLSurface information.