Package com.banuba.sdk.renderer
Interface DebugRenderer
- All Known Implementing Classes:
DebugRenderer.CppProxy
public interface DebugRenderer
Renders debug views of all enabled features
Requires creation with active gl context for correct feature subrenderers' init
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DebugRenderer.CppProxy
-
Method Summary
Modifier and Type Method Description static DebugRenderer
create()
This method may return `null` when debug renderer is unavailablevoid
draw(FrameData frameData)
static FullImageData
morphMesh(FullImageData srcImage, java.util.ArrayList<java.lang.Float> originalVerts, java.util.ArrayList<java.lang.Float> morphedVerts, java.util.ArrayList<java.lang.Integer> indices, java.util.ArrayList<java.lang.Float> mvp)
return rgba image, srcImage can be rgb or rgbavoid
surfaceChanged(int width, int height, float pixelDensityW, float pixelDensityH)
this pixel density is relative to a real one!
-
Method Details
-
surfaceChanged
void surfaceChanged(int width, int height, float pixelDensityW, float pixelDensityH)this pixel density is relative to a real one! -
draw
-
create
This method may return `null` when debug renderer is unavailable -
morphMesh
@NonNull static FullImageData morphMesh(@NonNull FullImageData srcImage, @NonNull java.util.ArrayList<java.lang.Float> originalVerts, @NonNull java.util.ArrayList<java.lang.Float> morphedVerts, @NonNull java.util.ArrayList<java.lang.Integer> indices, @NonNull java.util.ArrayList<java.lang.Float> mvp)return rgba image, srcImage can be rgb or rgba
-