Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class ANGLETranslatedShaderSource

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the ANGLE_translated_shader_source extension.

WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these shaders to the host platform's native language (HLSL, GLSL, and even GLSL ES). For debugging purposes, it is useful to be able to examine the shader after translation.

This extension addes a new function to query the translated shader source, and adds a new enum for GetShaderiv's <pname> parameter to query the translated shader source length.

Requires GLES 2.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE

Accepted by the pname parameter of GetShaderiv.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
public static String
glGetTranslatedShaderSourceANGLE(int shader, int bufsize)

public static String
public static void
glGetTranslatedShaderSourceANGLE(int shader, int[] length, ByteBuffer source)

Array version of: GetTranslatedShaderSourceANGLE

public static native void
nglGetTranslatedShaderSourceANGLE(int shader, int bufsize, long length, long source)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLEback to summary
public static final int GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE

Accepted by the pname parameter of GetShaderiv.

Constructor Detail

ANGLETranslatedShaderSourceback to summary
protected ANGLETranslatedShaderSource()

Method Detail

glGetTranslatedShaderSourceANGLEback to summary
public static void glGetTranslatedShaderSourceANGLE(int shader, IntBuffer length, ByteBuffer source)
glGetTranslatedShaderSourceANGLEback to summary
public static String glGetTranslatedShaderSourceANGLE(int shader, int bufsize)
Annotations
@NativeType:void
glGetTranslatedShaderSourceANGLEback to summary
public static String glGetTranslatedShaderSourceANGLE(int shader)
Annotations
@NativeType:void
glGetTranslatedShaderSourceANGLEback to summary
public static void glGetTranslatedShaderSourceANGLE(int shader, int[] length, ByteBuffer source)

Array version of: GetTranslatedShaderSourceANGLE

nglGetTranslatedShaderSourceANGLEback to summary
public static native void nglGetTranslatedShaderSourceANGLE(int shader, int bufsize, long length, long source)