std.android.gles2

OpenGL ES 2.0 Bindings für Android: Shader compilieren und linken, Texturen laden, Vertex Buffer Objects erstellen und Draw Calls ausführen. Setzt eine aktive EGL-Surface voraus.

std.android · std.android.native_window


 
Diese Unit stellt derzeit keine aufrufbaren Funktionen bereit.
Die Android-API liegt in libandroid.so bzw. libGLESv2.so. Für den Aufruf wären DT_NEEDED-Einträge und PLT-Linking nötig, die der Compiler noch nicht erzeugt. Die Quelldatei hält nur Konstanten und Strukturbeschreibungen vor.

Aus dem Kopf der Quelldatei:

Lyx Android Stdlib - OpenGL ES 2.0 essentials WP-AND-07 The OpenGL ES 2 API surface is huge (~2000 #define values and ~140 entry points); this module ships the subset needed to set up a context, load a shader pair, upload geometry and issue glDrawArrays — the „render-a-triangle“ baseline.

Konstanten

Name Typ Wert
GL_FALSE int64 0
GL_TRUE int64 1
GL_DEPTH_BUFFER_BIT int64 0x00000100
GL_STENCIL_BUFFER_BIT int64 0x00000400
GL_COLOR_BUFFER_BIT int64 0x00004000
GL_POINTS int64 0x0000
GL_LINES int64 0x0001
GL_LINE_LOOP int64 0x0002
GL_LINE_STRIP int64 0x0003
GL_TRIANGLES int64 0x0004
GL_TRIANGLE_STRIP int64 0x0005
GL_TRIANGLE_FAN int64 0x0006
GL_BYTE int64 0x1400
GL_UNSIGNED_BYTE int64 0x1401
GL_SHORT int64 0x1402
GL_UNSIGNED_SHORT int64 0x1403
GL_INT int64 0x1404
GL_UNSIGNED_INT int64 0x1405
GL_FLOAT int64 0x1406
GL_FRAGMENT_SHADER int64 0x8B30
GL_VERTEX_SHADER int64 0x8B31
GL_COMPILE_STATUS int64 0x8B81
GL_LINK_STATUS int64 0x8B82
GL_INFO_LOG_LENGTH int64 0x8B84
GL_SHADER_TYPE int64 0x8B4F
GL_DELETE_STATUS int64 0x8B80
GL_ATTACHED_SHADERS int64 0x8B85
GL_ACTIVE_UNIFORMS int64 0x8B86
GL_ACTIVE_ATTRIBUTES int64 0x8B89
GL_ARRAY_BUFFER int64 0x8892
GL_ELEMENT_ARRAY_BUFFER int64 0x8893
GL_STREAM_DRAW int64 0x88E0
GL_STATIC_DRAW int64 0x88E4
GL_DYNAMIC_DRAW int64 0x88E8
GL_TEXTURE_2D int64 0x0DE1
GL_TEXTURE_CUBE_MAP int64 0x8513
GL_TEXTURE0 int64 0x84C0
GL_TEXTURE_WRAP_S int64 0x2802
GL_TEXTURE_WRAP_T int64 0x2803
GL_TEXTURE_MIN_FILTER int64 0x2801

Aus std/android/gles2.lyx erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Die zuvor hier gelisteten Funktionen existieren in der Unit nicht.