New answers tagged

1

If you require specific behavior, your best option is to use a plain SurfaceView rather than a GLSurfaceView. GLSurfaceView is just a SurfaceView subclass that handles threading and EGL context management. You can find multiple examples of GLES use with plain SurfaceViews in Grafika, including some handy classes for working with EGL. When OpenGL ES was ...


0

There are a few ways to do this. This is the solution described by poirot: I ultimately achieved what I wanted using the stencil buffer combined with my own shader... The texture drawn to the stencil buffer was an elongated rectangle with rounded corners. The texture drawn to the image buffer was just a stretched red rectangle, which as you can ...



Top 50 recent answers are included