abstract class GLContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
activeTexUnit |
private int[] |
boundTextures |
private java.lang.Boolean |
clampToZeroAvailable |
private boolean |
depthTest |
private static int |
FBO_ID_NOCACHE |
private static int |
FBO_ID_UNSET |
(package private) static int |
GL_ALPHA |
(package private) static int |
GL_BACK |
(package private) static int |
GL_BGRA |
(package private) static int |
GL_CONSTANT_ALPHA |
(package private) static int |
GL_CONSTANT_COLOR |
(package private) static int |
GL_DST_ALPHA |
(package private) static int |
GL_DST_COLOR |
(package private) static int |
GL_FLOAT |
(package private) static int |
GL_FRONT |
(package private) static int |
GL_LINEAR |
(package private) static int |
GL_LINEAR_MIPMAP_LINEAR |
(package private) static int |
GL_LUMINANCE |
(package private) static int |
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS |
(package private) static int |
GL_MAX_FRAGMENT_UNIFORM_VECTORS |
(package private) static int |
GL_MAX_TEXTURE_IMAGE_UNITS |
(package private) static int |
GL_MAX_TEXTURE_SIZE |
(package private) static int |
GL_MAX_VARYING_COMPONENTS |
(package private) static int |
GL_MAX_VARYING_VECTORS |
(package private) static int |
GL_MAX_VERTEX_ATTRIBS |
(package private) static int |
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS |
(package private) static int |
GL_MAX_VERTEX_UNIFORM_COMPONENTS |
(package private) static int |
GL_MAX_VERTEX_UNIFORM_VECTORS |
(package private) static int |
GL_NEAREST |
(package private) static int |
GL_NEAREST_MIPMAP_NEAREST |
(package private) static int |
GL_NONE |
(package private) static int |
GL_ONE |
(package private) static int |
GL_ONE_MINUS_CONSTANT_ALPHA |
(package private) static int |
GL_ONE_MINUS_CONSTANT_COLOR |
(package private) static int |
GL_ONE_MINUS_DST_ALPHA |
(package private) static int |
GL_ONE_MINUS_DST_COLOR |
(package private) static int |
GL_ONE_MINUS_SRC_ALPHA |
(package private) static int |
GL_ONE_MINUS_SRC_COLOR |
(package private) static int |
GL_RGB |
(package private) static int |
GL_RGBA |
(package private) static int |
GL_RGBA32F |
(package private) static int |
GL_SRC_ALPHA |
(package private) static int |
GL_SRC_ALPHA_SATURATE |
(package private) static int |
GL_SRC_COLOR |
(package private) static int |
GL_TEXTURE_2D |
(package private) static int |
GL_TEXTURE_BINDING_2D |
(package private) static int |
GL_UNPACK_ALIGNMENT |
(package private) static int |
GL_UNPACK_ROW_LENGTH |
(package private) static int |
GL_UNPACK_SKIP_PIXELS |
(package private) static int |
GL_UNPACK_SKIP_ROWS |
(package private) static int |
GL_UNSIGNED_BYTE |
(package private) static int |
GL_UNSIGNED_INT_8_8_8_8 |
(package private) static int |
GL_UNSIGNED_INT_8_8_8_8_REV |
(package private) static int |
GL_UNSIGNED_SHORT_8_8_APPLE |
(package private) static int |
GL_YCBCR_422_APPLE |
(package private) static int |
GL_ZERO |
(package private) static int |
MAPTYPE_BUMP |
(package private) static int |
MAPTYPE_DIFFUSE |
(package private) static int |
MAPTYPE_SELFILLUM |
(package private) static int |
MAPTYPE_SPECULAR |
private int |
maxSampleSize |
private int |
maxTextureSize |
private boolean |
msaa |
(package private) long |
nativeCtxInfo |
private int |
nativeFBOID |
private java.lang.Boolean |
nonPowTwoExtAvailable |
(package private) static int |
NUM_MATRIX_ELEMENTS |
private int |
viewportHeight |
private int |
viewportWidth |
private int |
viewportX |
private int |
viewportY |
(package private) static int |
WRAPMODE_CLAMP_TO_BORDER |
(package private) static int |
WRAPMODE_CLAMP_TO_EDGE |
(package private) static int |
WRAPMODE_REPEAT |
Constructor and Description |
---|
GLContext() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
activeTexture(int texUnit) |
(package private) void |
bindFBO(int nativeFBOID) |
(package private) void |
bindTexture(int texID) |
(package private) void |
blendFunc(int sFactor,
int dFactor) |
(package private) void |
blitFBO(int msaaFboID,
int dstFboID,
int srcX0,
int srcY0,
int srcX1,
int srcY1,
int dstX0,
int dstY0,
int dstX1,
int dstY1) |
(package private) boolean |
buildNativeGeometry(long nativeHandle,
float[] vertexBuffer,
int vertexBufferLength,
int[] indexBuffer,
int indexBufferLength) |
(package private) boolean |
buildNativeGeometry(long nativeHandle,
float[] vertexBuffer,
int vertexBufferLength,
short[] indexBuffer,
int indexBufferLength) |
(package private) boolean |
canClampToZero() |
(package private) boolean |
canCreateNonPowTwoTextures() |
(package private) void |
clearBuffers(Color color,
boolean clearColor,
boolean clearDepth,
boolean ignoreScissor) |
(package private) int |
compileShader(java.lang.String shaderSource,
boolean vertex)
Compiles the given shader program.
|
(package private) int |
createDepthBuffer(int width,
int height,
int msaaSamples) |
(package private) long |
createES2Mesh() |
(package private) long |
createES2MeshView(long nativeMeshInfo) |
(package private) long |
createES2PhongMaterial() |
(package private) int |
createFBO(int texID)
Will create FBO by generate new FBO and binding it.
|
(package private) int |
createIndexBuffer16(short[] data) |
(package private) int |
createProgram(int vertexShaderID,
int[] fragmentShaderIDArr,
java.lang.String[] attrs,
int[] indexs)
Compiles and links a new shader program using the given shaders.
|
(package private) int |
createRenderBuffer(int width,
int height,
int msaaSamples) |
(package private) int |
createTexture(int width,
int height) |
(package private) void |
deleteFBO(int fboID) |
(package private) void |
deleteRenderBuffer(int dbID) |
(package private) void |
deleteShader(int shadeID) |
(package private) void |
deleteTexture(int tID) |
(package private) void |
disableVertexAttributes() |
(package private) void |
disposeShaders(int pID,
int vID,
int[] fID) |
(package private) void |
drawIndexedQuads(float[] coords,
byte[] colors,
int numVertices) |
(package private) void |
enableVertexAttributes() |
(package private) void |
finish() |
(package private) int |
genAndBindTexture() |
(package private) int |
getActiveTextureUnit() |
(package private) int |
getBoundFBO() |
(package private) int |
getBoundTexture() |
(package private) int |
getBoundTexture(int unit) |
(package private) int |
getIntParam(int param) |
(package private) int |
getMaxSampleSize() |
(package private) int |
getMaxTextureSize() |
(package private) long |
getNativeCtxInfo() |
(package private) abstract long |
getNativeHandle() |
(package private) int |
getNumBoundTexture() |
(package private) int |
getSampleSize() |
(package private) int |
getUniformLocation(int programID,
java.lang.String name) |
(package private) boolean |
isShaderCompilerSupported() |
(package private) abstract void |
makeCurrent(GLDrawable drawable) |
private static void |
nActiveTexture(long nativeCtxInfo,
int texUnit) |
private static void |
nBindFBO(long nativeCtxInfo,
int nativeFBOID) |
private static void |
nBindTexture(long nativeCtxInfo,
int texID) |
private static void |
nBlendFunc(int sFactor,
int dFactor) |
private static void |
nBlit(long nativeCtxInfo,
int srcFBO,
int dstFBO,
int srcX0,
int srcY0,
int srcX1,
int srcY1,
int dstX0,
int dstY0,
int dstX1,
int dstY1) |
private static boolean |
nBuildNativeGeometryInt(long nativeCtxInfo,
long nativeHandle,
float[] vertexBuffer,
int vertexBufferLength,
int[] indexBuffer,
int indexBufferLength) |
private static boolean |
nBuildNativeGeometryShort(long nativeCtxInfo,
long nativeHandle,
float[] vertexBuffer,
int vertexBufferLength,
short[] indexBuffer,
int indexBufferLength) |
private static void |
nClearBuffers(long nativeCtxInfo,
float red,
float green,
float blue,
float alpha,
boolean clearColor,
boolean clearDepth,
boolean ignoreScissor) |
private static int |
nCompileShader(long nativeCtxInfo,
java.lang.String src,
boolean vertex) |
private static int |
nCreateDepthBuffer(long nativeCtxInfo,
int width,
int height,
int msaa) |
private static long |
nCreateES2Mesh(long nativeCtxInfo) |
private static long |
nCreateES2MeshView(long nativeCtxInfo,
long nativeMeshInfo) |
private static long |
nCreateES2PhongMaterial(long nativeCtxInfo) |
private static int |
nCreateFBO(long nativeCtxInfo,
int texID) |
private static int |
nCreateIndexBuffer16(long nativeCtxInfo,
short[] data,
int n) |
private static int |
nCreateProgram(long nativeCtxInfo,
int vertexShaderID,
int[] fragmentShaderID,
int numAttrs,
java.lang.String[] attrs,
int[] indexs) |
private static int |
nCreateRenderBuffer(long nativeCtxInfo,
int width,
int height,
int msaa) |
private static int |
nCreateTexture(long nativeCtxInfo,
int width,
int height) |
private static void |
nDeleteFBO(long nativeCtxInfo,
int fboID) |
private static void |
nDeleteRenderBuffer(long nativeCtxInfo,
int rbID) |
private static void |
nDeleteShader(long nativeCtxInfo,
int shadeID) |
private static void |
nDeleteTexture(long nativeCtxInfo,
int tID) |
private static void |
nDisableVertexAttributes(long nativeCtxInfo) |
private static void |
nDisposeShaders(long nativeCtxInfo,
int pID,
int vID,
int[] fID) |
private static void |
nDrawIndexedQuads(long nativeCtxInfo,
int numVertices,
float[] dataf,
byte[] datab) |
private static void |
nEnableVertexAttributes(long nativeCtxInfo) |
private static void |
nFinish() |
private static int |
nGenAndBindTexture() |
private static int |
nGetFBO() |
private static int |
nGetIntParam(int pname) |
private static int |
nGetMaxSampleSize() |
private static int |
nGetUniformLocation(long nativeCtxInfo,
int programID,
java.lang.String name) |
private static void |
nPixelStorei(int pname,
int param) |
private static boolean |
nReadPixelsByte(long nativeCtxInfo,
int length,
java.nio.Buffer buffer,
byte[] pixelArr,
int x,
int y,
int w,
int h) |
private static boolean |
nReadPixelsInt(long nativeCtxInfo,
int length,
java.nio.Buffer buffer,
int[] pixelArr,
int x,
int y,
int w,
int h) |
private static void |
nReleaseES2Mesh(long nativeCtxInfo,
long nativeHandle) |
private static void |
nReleaseES2MeshView(long nativeCtxInfo,
long nativeHandle) |
private static void |
nReleaseES2PhongMaterial(long nativeCtxInfo,
long nativeHandle) |
private static void |
nRenderMeshView(long nativeCtxInfo,
long nativeMeshViewInfo) |
private static void |
nScissorTest(long nativeCtxInfo,
boolean enable,
int x,
int y,
int w,
int h) |
private static void |
nSetAmbientLight(long nativeCtxInfo,
long nativeMeshViewInfo,
float r,
float g,
float b) |
private static void |
nSetCullingMode(long nativeCtxInfo,
long nativeMeshViewInfo,
int cullingMode) |
private static void |
nSetDepthTest(long nativeCtxInfo,
boolean depthTest) |
private static void |
nSetDeviceParametersFor2D(long nativeCtxInfo) |
private static void |
nSetDeviceParametersFor3D(long nativeCtxInfo) |
private static void |
nSetIndexBuffer(long nativeCtxInfo,
int buffer) |
private static void |
nSetMap(long nativeCtxInfo,
long nativePhongMaterial,
int mapType,
int texID) |
private static void |
nSetMaterial(long nativeCtxInfo,
long nativeMeshViewInfo,
long nativePhongMaterialInfo) |
private static void |
nSetMSAA(long nativeCtxInfo,
boolean msaa) |
private static void |
nSetPointLight(long nativeCtxInfo,
long nativeMeshViewInfo,
int index,
float x,
float y,
float z,
float r,
float g,
float b,
float w) |
private static void |
nSetSolidColor(long nativeCtxInfo,
long nativePhongMaterial,
float r,
float g,
float b,
float a) |
private static void |
nSetWireframe(long nativeCtxInfo,
long nativeMeshViewInfo,
boolean wireframe) |
private static boolean |
nTexImage2D0(int target,
int level,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
java.lang.Object pixels,
int pixelsByteOffset,
boolean useMipmap) |
private static boolean |
nTexImage2D1(int target,
int level,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
java.lang.Object pixels,
int pixelsByteOffset,
boolean useMipmap) |
private static void |
nTexParamsMinMax(int min,
int max) |
private static void |
nTexSubImage2D0(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.lang.Object pixels,
int pixelsByteOffset) |
private static void |
nTexSubImage2D1(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.lang.Object pixels,
int pixelsByteOffset) |
private static void |
nUniform1f(long nativeCtxInfo,
int location,
float v0) |
private static void |
nUniform1i(long nativeCtxInfo,
int location,
int v0) |
private static void |
nUniform2f(long nativeCtxInfo,
int location,
float v0,
float v1) |
private static void |
nUniform2i(long nativeCtxInfo,
int location,
int v0,
int v1) |
private static void |
nUniform3f(long nativeCtxInfo,
int location,
float v0,
float v1,
float v2) |
private static void |
nUniform3i(long nativeCtxInfo,
int location,
int v0,
int v1,
int v2) |
private static void |
nUniform4f(long nativeCtxInfo,
int location,
float v0,
float v1,
float v2,
float v3) |
private static void |
nUniform4fv0(long nativeCtxInfo,
int location,
int count,
java.lang.Object value,
int valueByteOffset) |
private static void |
nUniform4fv1(long nativeCtxInfo,
int location,
int count,
java.lang.Object value,
int valueByteOffset) |
private static void |
nUniform4i(long nativeCtxInfo,
int location,
int v0,
int v1,
int v2,
int v3) |
private static void |
nUniform4iv0(long nativeCtxInfo,
int location,
int count,
java.lang.Object value,
int valueByteOffset) |
private static void |
nUniform4iv1(long nativeCtxInfo,
int location,
int count,
java.lang.Object value,
int valueByteOffset) |
private static void |
nUniformMatrix4fv(long nativeCtxInfo,
int location,
boolean transpose,
float[] values) |
private static void |
nUpdateFilterState(long nativeCtxInfo,
int texID,
boolean linearFilter) |
private static void |
nUpdateViewport(long nativeCtxInfo,
int x,
int y,
int w,
int h) |
private static void |
nUpdateWrapState(long nativeCtxInfo,
int texID,
int wrapMode) |
private static void |
nUseProgram(long nativeCtxInfo,
int pID) |
(package private) void |
pixelStorei(int pname,
int param) |
(package private) boolean |
readPixels(java.nio.Buffer buffer,
int x,
int y,
int w,
int h) |
(package private) void |
releaseES2Mesh(long nativeHandle) |
(package private) void |
releaseES2MeshView(long nativeHandle) |
(package private) void |
releaseES2PhongMaterial(long nativeHandle) |
(package private) void |
renderMeshView(long nativeMeshViewInfo) |
(package private) void |
scissorTest(boolean enable,
int x,
int y,
int w,
int h) |
(package private) void |
setActiveTextureUnit(int unit) |
(package private) void |
setAmbientLight(long nativeMeshViewInfo,
float r,
float g,
float b) |
(package private) void |
setBoundTexture(int texid) |
(package private) void |
setCullingMode(long nativeMeshViewInfo,
int cullMode) |
(package private) void |
setDeviceParametersFor2D() |
(package private) void |
setDeviceParametersFor3D() |
(package private) void |
setIndexBuffer(int ib) |
(package private) void |
setMap(long nativePhongMaterial,
int mapType,
int texID) |
(package private) void |
setMaterial(long nativeMeshViewInfo,
long nativePhongMaterialInfo) |
(package private) void |
setPointLight(long nativeMeshViewInfo,
int index,
float x,
float y,
float z,
float r,
float g,
float b,
float w) |
(package private) void |
setShaderProgram(int progid) |
(package private) void |
setSolidColor(long nativePhongMaterial,
float r,
float g,
float b,
float a) |
(package private) void |
setWireframe(long nativeMeshViewInfo,
boolean wireframe) |
(package private) boolean |
texImage2D(int target,
int level,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
java.nio.Buffer pixels,
boolean useMipmap) |
(package private) void |
texParamsMinMax(int pname,
boolean useMipmap) |
(package private) void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
java.nio.Buffer pixels) |
(package private) void |
uniform1f(int location,
float v0) |
(package private) void |
uniform1i(int location,
int v0) |
(package private) void |
uniform2f(int location,
float v0,
float v1) |
(package private) void |
uniform2i(int location,
int v0,
int v1) |
(package private) void |
uniform3f(int location,
float v0,
float v1,
float v2) |
(package private) void |
uniform3i(int location,
int v0,
int v1,
int v2) |
(package private) void |
uniform4f(int location,
float v0,
float v1,
float v2,
float v3) |
(package private) void |
uniform4fv(int location,
int count,
java.nio.FloatBuffer value) |
(package private) void |
uniform4i(int location,
int v0,
int v1,
int v2,
int v3) |
(package private) void |
uniform4iv(int location,
int count,
java.nio.IntBuffer value) |
(package private) void |
uniformMatrix4fv(int location,
boolean transpose,
float[] values) |
(package private) void |
updateActiveTextureUnit(int unit) |
(package private) void |
updateBoundTexture(int texid) |
(package private) void |
updateFilterState(int texID,
boolean linearFilter) |
(package private) void |
updateMSAAState(boolean msaa) |
(package private) void |
updateViewportAndDepthTest(int x,
int y,
int w,
int h,
boolean depthTest) |
(package private) void |
updateWrapState(int texID,
Texture.WrapMode wrapMode) |
static final int GL_ZERO
static final int GL_ONE
static final int GL_SRC_COLOR
static final int GL_ONE_MINUS_SRC_COLOR
static final int GL_DST_COLOR
static final int GL_ONE_MINUS_DST_COLOR
static final int GL_SRC_ALPHA
static final int GL_ONE_MINUS_SRC_ALPHA
static final int GL_DST_ALPHA
static final int GL_ONE_MINUS_DST_ALPHA
static final int GL_CONSTANT_COLOR
static final int GL_ONE_MINUS_CONSTANT_COLOR
static final int GL_CONSTANT_ALPHA
static final int GL_ONE_MINUS_CONSTANT_ALPHA
static final int GL_SRC_ALPHA_SATURATE
static final int GL_FLOAT
static final int GL_UNSIGNED_BYTE
static final int GL_UNSIGNED_INT_8_8_8_8_REV
static final int GL_UNSIGNED_INT_8_8_8_8
static final int GL_UNSIGNED_SHORT_8_8_APPLE
static final int GL_RGBA
static final int GL_BGRA
static final int GL_RGB
static final int GL_LUMINANCE
static final int GL_ALPHA
static final int GL_RGBA32F
static final int GL_YCBCR_422_APPLE
static final int GL_TEXTURE_2D
static final int GL_TEXTURE_BINDING_2D
static final int GL_NEAREST
static final int GL_LINEAR
static final int GL_NEAREST_MIPMAP_NEAREST
static final int GL_LINEAR_MIPMAP_LINEAR
static final int GL_UNPACK_ALIGNMENT
static final int GL_UNPACK_ROW_LENGTH
static final int GL_UNPACK_SKIP_PIXELS
static final int GL_UNPACK_SKIP_ROWS
static final int WRAPMODE_REPEAT
static final int WRAPMODE_CLAMP_TO_EDGE
static final int WRAPMODE_CLAMP_TO_BORDER
static final int GL_BACK
static final int GL_FRONT
static final int GL_NONE
static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS
static final int GL_MAX_TEXTURE_IMAGE_UNITS
static final int GL_MAX_TEXTURE_SIZE
static final int GL_MAX_VERTEX_ATTRIBS
static final int GL_MAX_VARYING_COMPONENTS
static final int GL_MAX_VARYING_VECTORS
static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS
static final int GL_MAX_VERTEX_UNIFORM_VECTORS
static final int MAPTYPE_DIFFUSE
static final int MAPTYPE_SPECULAR
static final int MAPTYPE_BUMP
static final int MAPTYPE_SELFILLUM
static final int NUM_MATRIX_ELEMENTS
long nativeCtxInfo
private int maxTextureSize
private java.lang.Boolean nonPowTwoExtAvailable
private java.lang.Boolean clampToZeroAvailable
private int activeTexUnit
private int[] boundTextures
private int viewportX
private int viewportY
private int viewportWidth
private int viewportHeight
private boolean depthTest
private boolean msaa
private int maxSampleSize
private static final int FBO_ID_UNSET
private static final int FBO_ID_NOCACHE
private int nativeFBOID
private static void nActiveTexture(long nativeCtxInfo, int texUnit)
private static void nBindFBO(long nativeCtxInfo, int nativeFBOID)
private static void nBindTexture(long nativeCtxInfo, int texID)
private static void nBlendFunc(int sFactor, int dFactor)
private static void nClearBuffers(long nativeCtxInfo, float red, float green, float blue, float alpha, boolean clearColor, boolean clearDepth, boolean ignoreScissor)
private static int nCompileShader(long nativeCtxInfo, java.lang.String src, boolean vertex)
private static int nCreateDepthBuffer(long nativeCtxInfo, int width, int height, int msaa)
private static int nCreateRenderBuffer(long nativeCtxInfo, int width, int height, int msaa)
private static int nCreateFBO(long nativeCtxInfo, int texID)
private static int nCreateProgram(long nativeCtxInfo, int vertexShaderID, int[] fragmentShaderID, int numAttrs, java.lang.String[] attrs, int[] indexs)
private static int nCreateTexture(long nativeCtxInfo, int width, int height)
private static void nDeleteRenderBuffer(long nativeCtxInfo, int rbID)
private static void nDeleteFBO(long nativeCtxInfo, int fboID)
private static void nDeleteShader(long nativeCtxInfo, int shadeID)
private static void nDeleteTexture(long nativeCtxInfo, int tID)
private static void nDisposeShaders(long nativeCtxInfo, int pID, int vID, int[] fID)
private static void nFinish()
private static int nGenAndBindTexture()
private static int nGetFBO()
private static int nGetIntParam(int pname)
private static int nGetMaxSampleSize()
private static int nGetUniformLocation(long nativeCtxInfo, int programID, java.lang.String name)
private static void nPixelStorei(int pname, int param)
private static boolean nReadPixelsByte(long nativeCtxInfo, int length, java.nio.Buffer buffer, byte[] pixelArr, int x, int y, int w, int h)
private static boolean nReadPixelsInt(long nativeCtxInfo, int length, java.nio.Buffer buffer, int[] pixelArr, int x, int y, int w, int h)
private static void nScissorTest(long nativeCtxInfo, boolean enable, int x, int y, int w, int h)
private static void nSetDepthTest(long nativeCtxInfo, boolean depthTest)
private static void nSetMSAA(long nativeCtxInfo, boolean msaa)
private static void nTexParamsMinMax(int min, int max)
private static boolean nTexImage2D0(int target, int level, int internalFormat, int width, int height, int border, int format, int type, java.lang.Object pixels, int pixelsByteOffset, boolean useMipmap)
private static boolean nTexImage2D1(int target, int level, int internalFormat, int width, int height, int border, int format, int type, java.lang.Object pixels, int pixelsByteOffset, boolean useMipmap)
private static void nTexSubImage2D0(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.lang.Object pixels, int pixelsByteOffset)
private static void nTexSubImage2D1(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.lang.Object pixels, int pixelsByteOffset)
private static void nUpdateViewport(long nativeCtxInfo, int x, int y, int w, int h)
private static void nUniform1f(long nativeCtxInfo, int location, float v0)
private static void nUniform2f(long nativeCtxInfo, int location, float v0, float v1)
private static void nUniform3f(long nativeCtxInfo, int location, float v0, float v1, float v2)
private static void nUniform4f(long nativeCtxInfo, int location, float v0, float v1, float v2, float v3)
private static void nUniform4fv0(long nativeCtxInfo, int location, int count, java.lang.Object value, int valueByteOffset)
private static void nUniform4fv1(long nativeCtxInfo, int location, int count, java.lang.Object value, int valueByteOffset)
private static void nUniform1i(long nativeCtxInfo, int location, int v0)
private static void nUniform2i(long nativeCtxInfo, int location, int v0, int v1)
private static void nUniform3i(long nativeCtxInfo, int location, int v0, int v1, int v2)
private static void nUniform4i(long nativeCtxInfo, int location, int v0, int v1, int v2, int v3)
private static void nUniform4iv0(long nativeCtxInfo, int location, int count, java.lang.Object value, int valueByteOffset)
private static void nUniform4iv1(long nativeCtxInfo, int location, int count, java.lang.Object value, int valueByteOffset)
private static void nUniformMatrix4fv(long nativeCtxInfo, int location, boolean transpose, float[] values)
private static void nUpdateFilterState(long nativeCtxInfo, int texID, boolean linearFilter)
private static void nUpdateWrapState(long nativeCtxInfo, int texID, int wrapMode)
private static void nUseProgram(long nativeCtxInfo, int pID)
private static void nEnableVertexAttributes(long nativeCtxInfo)
private static void nDisableVertexAttributes(long nativeCtxInfo)
private static void nDrawIndexedQuads(long nativeCtxInfo, int numVertices, float[] dataf, byte[] datab)
private static int nCreateIndexBuffer16(long nativeCtxInfo, short[] data, int n)
private static void nSetIndexBuffer(long nativeCtxInfo, int buffer)
private static void nSetDeviceParametersFor2D(long nativeCtxInfo)
private static void nSetDeviceParametersFor3D(long nativeCtxInfo)
private static long nCreateES2Mesh(long nativeCtxInfo)
private static void nReleaseES2Mesh(long nativeCtxInfo, long nativeHandle)
private static boolean nBuildNativeGeometryShort(long nativeCtxInfo, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength)
private static boolean nBuildNativeGeometryInt(long nativeCtxInfo, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength)
private static long nCreateES2PhongMaterial(long nativeCtxInfo)
private static void nReleaseES2PhongMaterial(long nativeCtxInfo, long nativeHandle)
private static void nSetSolidColor(long nativeCtxInfo, long nativePhongMaterial, float r, float g, float b, float a)
private static void nSetMap(long nativeCtxInfo, long nativePhongMaterial, int mapType, int texID)
private static long nCreateES2MeshView(long nativeCtxInfo, long nativeMeshInfo)
private static void nReleaseES2MeshView(long nativeCtxInfo, long nativeHandle)
private static void nSetCullingMode(long nativeCtxInfo, long nativeMeshViewInfo, int cullingMode)
private static void nSetMaterial(long nativeCtxInfo, long nativeMeshViewInfo, long nativePhongMaterialInfo)
private static void nSetWireframe(long nativeCtxInfo, long nativeMeshViewInfo, boolean wireframe)
private static void nSetAmbientLight(long nativeCtxInfo, long nativeMeshViewInfo, float r, float g, float b)
private static void nSetPointLight(long nativeCtxInfo, long nativeMeshViewInfo, int index, float x, float y, float z, float r, float g, float b, float w)
private static void nRenderMeshView(long nativeCtxInfo, long nativeMeshViewInfo)
private static void nBlit(long nativeCtxInfo, int srcFBO, int dstFBO, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
void activeTexture(int texUnit)
void bindFBO(int nativeFBOID)
void bindTexture(int texID)
void blendFunc(int sFactor, int dFactor)
boolean canCreateNonPowTwoTextures()
boolean canClampToZero()
void clearBuffers(Color color, boolean clearColor, boolean clearDepth, boolean ignoreScissor)
int compileShader(java.lang.String shaderSource, boolean vertex)
int createDepthBuffer(int width, int height, int msaaSamples)
int createRenderBuffer(int width, int height, int msaaSamples)
int createFBO(int texID)
texID
- if defined, will attach texture to generated FBOint createProgram(int vertexShaderID, int[] fragmentShaderIDArr, java.lang.String[] attrs, int[] indexs)
int createTexture(int width, int height)
void deleteRenderBuffer(int dbID)
void deleteFBO(int fboID)
void deleteShader(int shadeID)
void blitFBO(int msaaFboID, int dstFboID, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
void deleteTexture(int tID)
void disposeShaders(int pID, int vID, int[] fID)
void finish()
int genAndBindTexture()
int getBoundFBO()
long getNativeCtxInfo()
abstract long getNativeHandle()
int getActiveTextureUnit()
void setActiveTextureUnit(int unit)
void updateActiveTextureUnit(int unit)
int getBoundTexture()
int getBoundTexture(int unit)
int getNumBoundTexture()
void setBoundTexture(int texid)
void updateBoundTexture(int texid)
int getIntParam(int param)
int getSampleSize()
int getMaxSampleSize()
int getMaxTextureSize()
int getUniformLocation(int programID, java.lang.String name)
boolean isShaderCompilerSupported()
abstract void makeCurrent(GLDrawable drawable)
void pixelStorei(int pname, int param)
boolean readPixels(java.nio.Buffer buffer, int x, int y, int w, int h)
void scissorTest(boolean enable, int x, int y, int w, int h)
void setShaderProgram(int progid)
void texParamsMinMax(int pname, boolean useMipmap)
boolean texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, java.nio.Buffer pixels, boolean useMipmap)
void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels)
void updateViewportAndDepthTest(int x, int y, int w, int h, boolean depthTest)
void updateMSAAState(boolean msaa)
void updateFilterState(int texID, boolean linearFilter)
void updateWrapState(int texID, Texture.WrapMode wrapMode)
void uniform1f(int location, float v0)
void uniform2f(int location, float v0, float v1)
void uniform3f(int location, float v0, float v1, float v2)
void uniform4f(int location, float v0, float v1, float v2, float v3)
void uniform4fv(int location, int count, java.nio.FloatBuffer value)
void uniform1i(int location, int v0)
void uniform2i(int location, int v0, int v1)
void uniform3i(int location, int v0, int v1, int v2)
void uniform4i(int location, int v0, int v1, int v2, int v3)
void uniform4iv(int location, int count, java.nio.IntBuffer value)
void uniformMatrix4fv(int location, boolean transpose, float[] values)
void enableVertexAttributes()
void disableVertexAttributes()
void drawIndexedQuads(float[] coords, byte[] colors, int numVertices)
int createIndexBuffer16(short[] data)
void setIndexBuffer(int ib)
void setDeviceParametersFor2D()
void setDeviceParametersFor3D()
long createES2Mesh()
void releaseES2Mesh(long nativeHandle)
boolean buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength)
boolean buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength)
long createES2PhongMaterial()
void releaseES2PhongMaterial(long nativeHandle)
void setSolidColor(long nativePhongMaterial, float r, float g, float b, float a)
void setMap(long nativePhongMaterial, int mapType, int texID)
long createES2MeshView(long nativeMeshInfo)
void releaseES2MeshView(long nativeHandle)
void setCullingMode(long nativeMeshViewInfo, int cullMode)
void setMaterial(long nativeMeshViewInfo, long nativePhongMaterialInfo)
void setWireframe(long nativeMeshViewInfo, boolean wireframe)
void setAmbientLight(long nativeMeshViewInfo, float r, float g, float b)
void setPointLight(long nativeMeshViewInfo, int index, float x, float y, float z, float r, float g, float b, float w)
void renderMeshView(long nativeMeshViewInfo)