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
Nested Classes Modifier and Type Interface Description static class
RenderTarget.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAttachment(Image attachment)
add color or depth attachment to render targetjava.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
-
getName
@NonNull java.lang.String 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
void addAttachment(@Nullable Image attachment)
add color or depth attachment to render target- Parameters:
attachment
- (image): surface attachment
-
removeAttachment
void removeAttachment(@Nullable Image attachment)
removes color or depth attachment from render target, if it was aded early- Parameters:
attachment
- (image): surface attachment
-
getAttachments
@NonNull java.util.ArrayList<Image> getAttachments()
-
-