Available Methods
- glBindTexture ( )
- glGetUniformLocation ( )
- glEnableVertexAttribArray ( )
- glUniformMatrix4fv ( )
- glActiveTexture ( )
- glVertexAttribPointer ( )
- glUseProgram ( )
- glGetAttribLocation ( )
- glGenTextures ( )
- glUniform1i ( )
- glTexParameteri ( )
- glClear ( )
- glDrawArrays ( )
- glUniform1f ( )
- glViewport ( )
- glDeleteProgram ( )
- glCompileShader ( )
- glBindFramebuffer ( )
- glCreateProgram ( )
- glClearColor ( )
- glCreateShader ( )
- glLinkProgram ( )
- glAttachShader ( )
- glShaderSource ( )
- glDeleteTextures ( )
- glDisableVertexAttribArray ( )
- glGetShaderiv ( )
- glGetError ( )
- glGetProgramiv ( )
- glDeleteShader ( )
- glTexParameterf ( )
- glTexImage2D ( )
- glEnable ( )
- GL_NO_ERROR
- glBlendFunc ( )
- glDeleteFramebuffers ( )
- glFramebufferTexture2D ( )
- glBindBuffer ( )
- glDisable ( )
- glGenFramebuffers ( )
- glCheckFramebufferStatus ( )
- GL_TRUE
- glUniform2f ( )
- glUniform4fv ( )
- glDrawElements ( )
- GL_FRAMEBUFFER_COMPLETE
- glReadPixels ( )
- glGetIntegerv ( )
- glBufferData ( )
- glValidateProgram ( )
- GL_TEXTURE_2D ( )
- GL_FALSE
- glUniform2fv ( )
- glFinish ( )
- glGenBuffers ( )
- glFlush ( )
- glGetShaderInfoLog ( )
- glDeleteRenderbuffers ( )
- glDeleteBuffers ( )
- glGetString ( )
- glUniform3f ( )
- glRenderbufferStorage ( )
- glFramebufferRenderbuffer ( )
- glScissor ( )
- glBindAttribLocation ( )
- glGenRenderbuffers ( )
- glPixelStorei ( )
- glUniform4f ( )
- glUniform1fv ( )
- glUniformMatrix3fv ( )
- glGetProgramInfoLog ( )
- glBindRenderbuffer ( )
- GL_UNSIGNED_BYTE
- glUniform3fv ( )
- glTexSubImage2D ( )
- glCullFace ( )
- glDepthMask ( )
- GL_NEAREST
- glLineWidth ( )
- glGenerateMipmap ( )
- GL_TEXTURE0 ( )
- GL_RGBA
- glBlendColor ( )
- glDepthFunc ( )
- GL_RGB
- glBufferSubData ( )
- GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
- GL_LINES
- glFrontFace ( )
- glIsProgram ( )
- GL_TEXTURE5 ( )
- GL_LINEAR_MIPMAP_NEAREST
- GL_FRAGMENT_SHADER
- GL_FRAMEBUFFER_UNSUPPORTED
- glUniform1iv ( )
- GL_UNSIGNED_SHORT_4_4_4_4 ( )
- GL_LINEAR
- GL_NEAREST_MIPMAP_NEAREST
- GL_FLOAT
- glIsTexture ( )
- GL_LUMINANCE
- GL_DEPTH_BUFFER_BIT
- GL_TEXTURE1 ( )
- GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
- glDetachShader ( )
- glHint ( )
- GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
- GL_TEXTURE8 ( )
- GL_LINE_LOOP
- GL_VERTEX_SHADER
- GL_TEXTURE3 ( )
- GL_TEXTURE6 ( )
- glUniform4iv ( )
- GL_DEPTH_COMPONENT16 ( )
Related Classes
- java.io.File
- java.io.InputStream
- android.content.Context
- android.util.Log
- java.io.FileOutputStream
- android.os.Build
- android.graphics.Color
- android.graphics.Canvas
- android.graphics.Bitmap
- java.nio.ByteBuffer
- android.annotation.TargetApi
- android.annotation.SuppressLint
- android.graphics.BitmapFactory
- android.os.Environment
- android.os.Looper
- java.util.logging.Level
- java.io.BufferedOutputStream
- android.graphics.RectF
- android.graphics.Matrix
- java.nio.ByteOrder
- androidx.annotation.NonNull
- android.view.Surface
- android.hardware.Camera
- java.nio.FloatBuffer
- android.graphics.SurfaceTexture
Java Code Examples for android.opengl.GLES20#glDetachShader()
The following examples show how to use
android.opengl.GLES20#glDetachShader() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RRGLProgram.java From RedReader with GNU General Public License v3.0 | 6 votes |
private void link() { if(mFragmentShaderHandle == null || mVertexShaderHandle == null) throw new RuntimeException(); GLES20.glLinkProgram(mHandle); final int[] linkStatus = new int[1]; GLES20.glGetProgramiv(mHandle, GLES20.GL_LINK_STATUS, linkStatus, 0); if(linkStatus[0] == 0) { final String log = GLES20.glGetProgramInfoLog(mHandle); GLES20.glDeleteProgram(mHandle); throw new RuntimeException(String.format(Locale.US, "Linker error: \"%s\".", log)); } GLES20.glDetachShader(mHandle, mFragmentShaderHandle); GLES20.glDetachShader(mHandle, mVertexShaderHandle); GLES20.glDeleteShader(mFragmentShaderHandle); GLES20.glDeleteShader(mVertexShaderHandle); mFragmentShaderHandle = null; mVertexShaderHandle = null; }
Example 2
Source File: Program.java From HokoBlur with Apache License 2.0 | 5 votes |
@Override public void create(String vertexShaderCode, String fragmentShaderCode) { int vertexShader = 0; int fragmentShader = 0; try { vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode); fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); if (vertexShader == 0 || fragmentShader == 0) { return; } id = GLES20.glCreateProgram(); if (id != 0) { GLES20.glAttachShader(id, vertexShader); GLES20.glAttachShader(id, fragmentShader); GLES20.glLinkProgram(id); checkGLError("Attach Shader"); final int[] linkStatus = new int[1]; GLES20.glGetProgramiv(id, GLES20.GL_LINK_STATUS, linkStatus, 0); if (linkStatus[0] != 1) { Log.e(TAG, "Failed to link program"); GLES20.glDeleteProgram(id); id = 0; } // } } finally { GLES20.glDetachShader(id, vertexShader); GLES20.glDetachShader(id, fragmentShader); GLES20.glDeleteShader(vertexShader); GLES20.glDeleteShader(fragmentShader); } }
Example 3
Source File: OGLESShaderRenderer.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
public void deleteShader(Shader shader) { if (shader.getId() == -1) { logger.warning("Shader is not uploaded to GPU, cannot delete."); return; } for (ShaderSource source : shader.getSources()) { if (source.getId() != -1) { if (verboseLogging) { logger.info("GLES20.glDetachShader(" + shader.getId() + ", " + source.getId() + ")"); } GLES20.glDetachShader(shader.getId(), source.getId()); // the next part is done by the GLObjectManager automatically // glDeleteShader(source.getId()); } } // kill all references so sources can be collected // if needed. shader.resetSources(); if (verboseLogging) { logger.info("GLES20.glDeleteProgram(" + shader.getId() + ")"); } GLES20.glDeleteProgram(shader.getId()); statistics.onDeleteShader(); }
Example 4
Source File: AndroidGL.java From trekarta with GNU General Public License v3.0 | 4 votes |
@Override public void detachShader(int program, int shader) { GLES20.glDetachShader(program, shader); }