android Programming Glossary: gles20.gl_vertex_shader
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl textureVerticesBuffer.put textureVertices textureVerticesBuffer.position 0 int vertexShader MyGL20Renderer.loadShader GLES20.GL_VERTEX_SHADER vertexShaderCode int fragmentShader MyGL20Renderer.loadShader GLES20.GL_FRAGMENT_SHADER fragmentShaderCode mProgram GLES20.glCreateProgram..
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 LineCoords set the buffer to read the first coordinate VertexBuffer.position 0 int vertexShader ArRenderer.loadShader GLES20.GL_VERTEX_SHADER VertexShaderCode int fragmentShader ArRenderer.loadShader GLES20.GL_FRAGMENT_SHADER FragmentShaderCode GlProgram GLES20.glCreateProgram..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant the ByteBuffer vertexBuffer bb.asFloatBuffer prepare shaders and OpenGL program int vertexShader MyRenderer.loadShader GLES20.GL_VERTEX_SHADER vertexShaderCode int fragmentShader MyRenderer.loadShader GLES20.GL_FRAGMENT_SHADER fragmentShaderCode mProgram GLES20.glCreateProgram..
Shader for Android OpenGL ES http://stackoverflow.com/questions/4850025/shader-for-android-opengl-es of how to load a shader public int createProgram String vertexSource String fragmentSource int vertexShader loadShader GLES20.GL_VERTEX_SHADER vertexSource int pixelShader loadShader GLES20.GL_FRAGMENT_SHADER fragmentSource int program GLES20.glCreateProgram if program..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails 0.0f 1.0f 0.2f 1.0f Debug.out Hello init. Shaders int vertexShader 0 int 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.. A .next finally stream.close private int 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..
|