java.lang.Object | |
↳ | android.opengl.GLUtils |
Utility class to help bridging OpenGL ES and Android APIs.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Return a string for the EGL error code, or the hex representation
if the error is unknown.
|
||||||||||
|
return the internal format as defined by OpenGL ES of the supplied bitmap.
|
||||||||||
|
Return the type as defined by OpenGL ES of the supplied bitmap, if there
is one.
|
||||||||||
|
A version of texImage2D that determines the internalFormat and type
automatically.
|
||||||||||
|
A version of texImage2D() that takes an explicit type parameter
as defined by the OpenGL ES specification.
|
||||||||||
|
Calls glTexImage2D() on the current OpenGL context.
|
||||||||||
|
Calls glTexSubImage2D() on the current OpenGL context.
|
||||||||||
|
A version of texSubImage2D() that takes an explicit type parameter
as defined by the OpenGL ES specification.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return a string for the EGL error code, or the hex representation if the error is unknown.
error | The EGL error to convert into a String. |
---|
return the internal format as defined by OpenGL ES of the supplied bitmap.
Return the type as defined by OpenGL ES of the supplied bitmap, if there is one. If the bitmap is stored in a compressed format, it may not have a valid OpenGL ES type.
IllegalArgumentException | if the bitmap does not have a type. |
---|
A version of texImage2D that determines the internalFormat and type automatically.
A version of texImage2D() that takes an explicit type parameter as defined by the OpenGL ES specification. The actual type and internalformat of the bitmap must be compatible with the specified type and internalformat parameters.
Calls glTexImage2D() on the current OpenGL context. If no context is current the behavior is the same as calling glTexImage2D() with no current context, that is, eglGetError() will return the appropriate error. Unlike glTexImage2D() bitmap cannot be null and will raise an exception in that case. All other parameters are identical to those used for glTexImage2D(). NOTE: this method doesn't change GL_UNPACK_ALIGNMENT, you must make sure to set it properly according to the supplied bitmap. Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. Always check glGetError() some time after calling this method, just like when using OpenGL directly.
Calls glTexSubImage2D() on the current OpenGL context. If no context is current the behavior is the same as calling glTexSubImage2D() with no current context, that is, eglGetError() will return the appropriate error. Unlike glTexSubImage2D() bitmap cannot be null and will raise an exception in that case. All other parameters are identical to those used for glTexSubImage2D(). NOTE: this method doesn't change GL_UNPACK_ALIGNMENT, you must make sure to set it properly according to the supplied bitmap. Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. Always check glGetError() some time after calling this method, just like when using OpenGL directly.
A version of texSubImage2D() that takes an explicit type parameter as defined by the OpenGL ES specification.