android Programming Glossary: gles20.gl_fragment_shader
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl MyGL20Renderer.loadShader GLES20.GL_VERTEX_SHADER vertexShaderCode int fragmentShader MyGL20Renderer.loadShader GLES20.GL_FRAGMENT_SHADER fragmentShaderCode mProgram GLES20.glCreateProgram create empty OpenGL ES Program GLES20.glAttachShader mProgram vertexShader..
What is the easiest way to draw line using OpenGL-ES (android) http://stackoverflow.com/questions/16027455/what-is-the-easiest-way-to-draw-line-using-opengl-es-android vertexShader ArRenderer.loadShader GLES20.GL_VERTEX_SHADER VertexShaderCode int fragmentShader ArRenderer.loadShader GLES20.GL_FRAGMENT_SHADER FragmentShaderCode GlProgram GLES20.glCreateProgram create empty OpenGL ES Program GLES20.glAttachShader GlProgram vertexShader..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant vertexShader MyRenderer.loadShader GLES20.GL_VERTEX_SHADER vertexShaderCode int fragmentShader MyRenderer.loadShader GLES20.GL_FRAGMENT_SHADER fragmentShaderCode mProgram GLES20.glCreateProgram create empty OpenGL Program GLES20.glAttachShader mProgram vertexShader..
Shader for Android OpenGL ES http://stackoverflow.com/questions/4850025/shader-for-android-opengl-es String fragmentSource int vertexShader loadShader GLES20.GL_VERTEX_SHADER vertexSource int pixelShader loadShader GLES20.GL_FRAGMENT_SHADER fragmentSource int program GLES20.glCreateProgram if program 0 GLES20.glAttachShader program vertexShader checkGlError glAttachShader..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails fragmentShader 0 try vertexShader loadShader GLES20.GL_VERTEX_SHADER readFile vertex.vsh fragmentShader loadShader GLES20.GL_FRAGMENT_SHADER readFile fragment.fsh catch IOException e Debug.out The shaders could not be found. e.printStackTrace mProgram GLES20.glCreateProgram.. loadShader int type String shaderCode create a vertex shader type GLES20.GL_VERTEX_SHADER or a fragment shader type GLES20.GL_FRAGMENT_SHADER int shader GLES20.glCreateShader type add the source code to the shader and compile it GLES20.glShaderSource shader shaderCode..
|