Package com.banuba.sdk.scene
Class RenderTarget.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.RenderTarget.CppProxy
-
- All Implemented Interfaces:
RenderTarget
- Enclosing interface:
- RenderTarget
public static final class RenderTarget.CppProxy extends java.lang.Object implements RenderTarget
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.RenderTarget
RenderTarget.CppProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
void
addAttachment(Image attachment)
add color or depth attachment to render targetprotected void
finalize()
java.util.ArrayList<Image>
getAttachments()
int
getHeight()
java.lang.String
getName()
int
getSamplesCount()
float
getScale()
int
getWidth()
void
removeAttachment(Image attachment)
removes color or depth attachment from render target, if it was aded earlyvoid
setExtent(int width, int height)
set render target surface extentvoid
setSamplesCount(int samples)
void
setScale(float scale)
set render target surface extent scale
-
-
-
Method Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceRenderTarget
- Returns:
- render target name (string)
-
setSamplesCount
public void setSamplesCount(int samples)
- Specified by:
setSamplesCount
in interfaceRenderTarget
- Parameters:
samples
- (int) msaa samples counts
-
getSamplesCount
public int getSamplesCount()
- Specified by:
getSamplesCount
in interfaceRenderTarget
- Returns:
- msaa samples counts
-
setExtent
public void setExtent(int width, int height)
Description copied from interface:RenderTarget
set render target surface extent- Specified by:
setExtent
in interfaceRenderTarget
- Parameters:
width
- (int): surface widthheight
- (int): surface height
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceRenderTarget
- Returns:
- render target width (int)
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceRenderTarget
- Returns:
- render target height (int)
-
setScale
public void setScale(float scale)
Description copied from interface:RenderTarget
set render target surface extent scale- Specified by:
setScale
in interfaceRenderTarget
-
getScale
public float getScale()
- Specified by:
getScale
in interfaceRenderTarget
- Returns:
- render target width scale (int)
-
addAttachment
public void addAttachment(Image attachment)
Description copied from interface:RenderTarget
add color or depth attachment to render target- Specified by:
addAttachment
in interfaceRenderTarget
- Parameters:
attachment
- (image): surface attachment
-
removeAttachment
public void removeAttachment(Image attachment)
Description copied from interface:RenderTarget
removes color or depth attachment from render target, if it was aded early- Specified by:
removeAttachment
in interfaceRenderTarget
- Parameters:
attachment
- (image): surface attachment
-
getAttachments
public java.util.ArrayList<Image> getAttachments()
- Specified by:
getAttachments
in interfaceRenderTarget
-
-