Irurueta Android GL Utils
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
OpenGL ES utilities for Android: a composable OpenGL view and helpers to convert between pinhole cameras and OpenGL matrices.
Why GLTextureView?
Android’s GLSurfaceView draws into a separate window surface that is punched through the
view hierarchy. That makes it fast, but it also means the view:
-
cannot be made translucent so that other views show through it,
-
does not follow view animations or transformations (
alpha,rotation,scaleX, translation…), -
does not clip or overlap correctly with sibling views, for instance inside a scrolling list or a
ViewPager.
GLTextureView renders OpenGL ES on a TextureView instead. It is a regular member of the view
hierarchy, so it can be composed, animated and layered with any other view, while keeping the
same API as GLSurfaceView: any GLSurfaceView.Renderer works unchanged.
What the library contains
| Class | Purpose |
|---|---|
|
Drop-in replacement for |
|
Keeps a pinhole camera and the matching OpenGL projection, model-view and model-view-projection matrices in sync. See Cameras and OpenGL matrices. |
|
Stateless conversion from a |
|
Stateless conversion from OpenGL projection and model-view matrices back to a |
|
Rotation between a camera sensor and the display, and transformations between OpenGL and Android view coordinates. See Camera and display orientation. |
Cameras, rotations and points come from
irurueta-geometry, which the library exposes
as an api dependency.