¡@

Home 

2014/10/16 ¤W¤È 08:14:19

android Programming Glossary: glsurfaceview.renderer

Android getOrientation() method returns bad results

http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results

public class Compass3DRenderer implements GLSurfaceView.Renderer Context mContext a raw buffer to hold indices ShortBuffer _indexBuffer..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

MyGL20Renderer.java public class MyGL20Renderer implements GLSurfaceView.Renderer DirectVideo mDirectVideo int texture private SurfaceTexture..

OpenGL ES Android Matrix Transformations

http://stackoverflow.com/questions/13480043/opengl-es-android-matrix-transformations

Matrix Transformations I have a renderer implementing GLSurfaceView.Renderer interface a subclass of GLSurfaceView and some classes representing.. here is my code public class NotMyCoolRenderer implements GLSurfaceView.Renderer public GLShip mTriangle private GLBackgroundStar mSquare private.. the renderer class public class MyGL20Renderer implements GLSurfaceView.Renderer ... create a model matrix for the triangle private final float..

play video using opengles, android

http://stackoverflow.com/questions/2006094/play-video-using-opengles-android

to create a custom Renderer class one that implements the GLSurfaceView.Renderer interface and set it to your GLSurfaceView . After you do all..

Android OpenGL ES Transparent Background

http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background

some simple changes that I did to get this to work. On my GLSurfaceView.Renderer public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable..

Prevent onPause from trashing OpenGL Context

http://stackoverflow.com/questions/2112768/prevent-onpause-from-trashing-opengl-context

Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user switches applications and..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

the CubeRenderer is given by class CubeRenderer implements GLSurfaceView.Renderer public CubeRenderer boolean useTranslucentBackground mTranslucentBackground..

Android OpenGL 3D picking

http://stackoverflow.com/questions/6699387/android-opengl-3d-picking

public class OpenGLRenderer extends Activity implements GLSurfaceView.Renderer public PointCloud ptCloud MatrixGrabber mg new MatrixGrabber..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

the MyRender class public class MyRenderer implements GLSurfaceView.Renderer private FloatBuffer vertices private FloatBuffer texcoords private..

Pass variables between renderer and another class with queueEvent()

http://stackoverflow.com/questions/8417859/pass-variables-between-renderer-and-another-class-with-queueevent

... In my renderer public class MyRenderer implements GLSurfaceView.Renderer private void calculate Stack stack Helper.hasCalculated true..

Android getOrientation() method returns bad results

http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results

import android.content.Context import android.opengl.GLSurfaceView public class Compass3DRenderer implements GLSurfaceView.Renderer Context mContext a raw buffer to hold indices ShortBuffer _indexBuffer raw buffers to hold the vertices FloatBuffer _vertexBuffer0..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

public MyGL20Renderer getRenderer return renderer MyGL20Renderer.java public class MyGL20Renderer implements GLSurfaceView.Renderer DirectVideo mDirectVideo int texture private SurfaceTexture surface MainActivity delegate public MyGL20Renderer MainActivity..

OpenGL ES Android Matrix Transformations

http://stackoverflow.com/questions/13480043/opengl-es-android-matrix-transformations

ES Android Matrix Transformations I have a renderer implementing GLSurfaceView.Renderer interface a subclass of GLSurfaceView and some classes representing my objects I want to draw. I have the code from http.. axes and can't manage it. The object is only rotated. and here is my code public class NotMyCoolRenderer implements GLSurfaceView.Renderer public GLShip mTriangle private GLBackgroundStar mSquare private final float mMVPMatrix new float 16 private final float.. modifier of gl_Position gl_Position uMVPMatrix vPosition In the renderer class public class MyGL20Renderer implements GLSurfaceView.Renderer ... create a model matrix for the triangle private final float mModelMatrix new float 16 create a temporary matrix for calculation..

play video using opengles, android

http://stackoverflow.com/questions/2006094/play-video-using-opengles-android

corresponding layout file mediaplayer_2.xml . Also you need to create a custom Renderer class one that implements the GLSurfaceView.Renderer interface and set it to your GLSurfaceView . After you do all this you will have your video playing on a GL surface but..

Android OpenGL ES Transparent Background

http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background

android opengl es share improve this question Just some simple changes that I did to get this to work. On my GLSurfaceView.Renderer public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT..

Prevent onPause from trashing OpenGL Context

http://stackoverflow.com/questions/2112768/prevent-onpause-from-trashing-opengl-context

onPause from trashing OpenGL Context I'm writing an Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user switches applications and then switches back to my app the GLSurfaceView destroys and..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

cr private float mPreviousX private float mPreviousY And the CubeRenderer is given by class CubeRenderer implements GLSurfaceView.Renderer public CubeRenderer boolean useTranslucentBackground mTranslucentBackground useTranslucentBackground mCube new Cube public..

Android OpenGL 3D picking

http://stackoverflow.com/questions/6699387/android-opengl-3d-picking

distances of my points to the ray finding the closest point. public class OpenGLRenderer extends Activity implements GLSurfaceView.Renderer public PointCloud ptCloud MatrixGrabber mg new MatrixGrabber ... public void onDrawFrame GL10 gl gl.glDisable GL10.GL_COLOR_MATERIAL..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

3 byte b 6 rgb yp 3 1 byte b 2 rgb yp 3 2 byte b 10 Finally the MyRender class public class MyRenderer implements GLSurfaceView.Renderer private FloatBuffer vertices private FloatBuffer texcoords private int mProgram private int maPositionHandle private int..

Pass variables between renderer and another class with queueEvent()

http://stackoverflow.com/questions/8417859/pass-variables-between-renderer-and-another-class-with-queueevent

void doAnotherThing Never happens if Helper.hasCalculated ... In my renderer public class MyRenderer implements GLSurfaceView.Renderer private void calculate Stack stack Helper.hasCalculated true My helper class public class Helper public static volatile..