Package com.banuba.sdk.scene
Interface RenderTarget
- All Known Implementing Classes:
RenderTarget.CppProxy
public interface RenderTarget
Class, represents render_target (render pass) interface
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(Image attachment) add color or depth attachment to render targetint
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
-
getName
- Returns:
- render target name (string)
-
setSamplesCount
void setSamplesCount(int samples) - Parameters:
samples
- (int) msaa samples counts
-
getSamplesCount
int getSamplesCount()- Returns:
- msaa samples counts
-
setExtent
void setExtent(int width, int height) set render target surface extent- Parameters:
width
- (int): surface widthheight
- (int): surface height
-
getWidth
int getWidth()- Returns:
- render target width (int)
-
getHeight
int getHeight()- Returns:
- render target height (int)
-
setScale
void setScale(float scale) set render target surface extent scale- Parameters:
width
- (int): surface width scaleheight
- (int): surface height scale
-
getScale
float getScale()- Returns:
- render target width scale (int)
-
addAttachment
add color or depth attachment to render target- Parameters:
attachment
- (image): surface attachment
-
removeAttachment
removes color or depth attachment from render target, if it was aded early- Parameters:
attachment
- (image): surface attachment
-
getAttachments
-
requestReadPixel
void requestReadPixel(int x, int y) request reading specific pixel from color attachment at the end of the frame
-