Add View::getRenderTarget to JNI.

This commit is contained in:
Philip Rideout
2019-06-25 16:31:25 -07:00
parent a118299cfb
commit 2d690ac585
@@ -33,6 +33,7 @@ public class View {
private RenderQuality mRenderQuality;
private DepthPrepass mDepthPrepass = DepthPrepass.DEFAULT;
private AmbientOcclusionOptions mAmbientOcclusionOptions;
private RenderTarget mRenderTarget;
public static class DynamicResolutionOptions {
public boolean enabled = false;
@@ -167,9 +168,15 @@ public class View {
}
public void setRenderTarget(@Nullable RenderTarget target) {
mRenderTarget = target;
nSetRenderTarget(getNativeObject(), target != null ? target.getNativeObject() : 0);
}
@Nullable
public RenderTarget getRenderTarget() {
return mRenderTarget;
}
public void setSampleCount(int count) {
nSetSampleCount(getNativeObject(), count);
}