Package com.banuba.sdk.scene
Class RenderTarget.CppProxy
java.lang.Object
com.banuba.sdk.scene.RenderTarget.CppProxy
- All Implemented Interfaces:
RenderTarget
- Enclosing interface:
- RenderTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.RenderTarget
RenderTarget.CppProxy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAttachment
(Image attachment) add color or depth attachment to render targetprotected void
finalize()
int
getName()
int
float
getScale()
int
getWidth()
void
removeAttachment
(Image attachment) removes color or depth attachment from render target, if it was aded earlyvoid
requestReadPixel
(int x, int y) request reading specific pixel from color attachment at the end of the framevoid
setExtent
(int width, int height) set render target surface extentvoid
setSamplesCount
(int samples) void
setScale
(float scale) set render target surface extent scale
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
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
Description copied from interface:RenderTarget
add color or depth attachment to render target- Specified by:
addAttachment
in interfaceRenderTarget
- Parameters:
attachment
- (image): surface attachment
-
removeAttachment
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
- Specified by:
getAttachments
in interfaceRenderTarget
-
requestReadPixel
public void requestReadPixel(int x, int y) Description copied from interface:RenderTarget
request reading specific pixel from color attachment at the end of the frame- Specified by:
requestReadPixel
in interfaceRenderTarget
-