How to pass correctly SurfaceTexture to AUSBC instance
eetteri opened this issue · comments
Jokke Heikkilä commented
I want to use my own SurfaceTexture as a render target for instance of ausbc camera.
What is the correct way to pass my custom SurfaceTexture when I create the ausbc camera the 'simple usage' way eg. implementing the CameraFragment ?
Luca Carlon commented
These are the steps I followed:
- Create a SurfaceTexture with its associated OpenGL texture;
- set the buffer size;
- create a class implementing IAspectRatio returning that SurfaceTexture;
- pass it to the openCamera object.