Package com.banuba.sdk.scene
Interface Attachment
-
- All Known Implementing Classes:
Attachment.CppProxy
public interface Attachment
Class, represents render target attachment. Subclass of image
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Attachment.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Image
asImage()
AttachmentType
getAttachmentType()
Vec4
getClearColor()
TextureFilteringMode
getFilteringMode()
PixelFormatType
getFormat()
int
getHeight()
AttachmentInfo
getInfo()
int
getWidth()
void
setClearColor(Vec4 color)
void
setFilteringMode(TextureFilteringMode value)
set attachment texture filtering mode param mode (texture_filtering_mode)void
setFormat(PixelFormatType format)
set attachment pixel formatvoid
setHeight(int value)
set attachment heightvoid
setInfo(AttachmentInfo info)
void
setType(AttachmentType type)
void
setWidth(int value)
set attachment width
-
-
-
Method Detail
-
getAttachmentType
@NonNull AttachmentType getAttachmentType()
- Returns:
- attachment type (attachment_type). Can be color, or depth
-
setType
void setType(@NonNull AttachmentType type)
- Parameters:
type
- (attachment_type). Can be color, or depth
-
setClearColor
void setClearColor(@NonNull Vec4 color)
- Parameters:
color
- (vec4). Also implisity set attachment load behaviour to clear.
-
getClearColor
@NonNull Vec4 getClearColor()
- Returns:
- attachment clear color (vec4)
-
setWidth
void setWidth(int value)
set attachment width- Parameters:
width
- (int)
-
setHeight
void setHeight(int value)
set attachment height- Parameters:
height
- (int)
-
getWidth
int getWidth()
- Returns:
- attachment width (int)
-
getHeight
int getHeight()
- Returns:
- attachment height (int)
-
setInfo
void setInfo(@NonNull AttachmentInfo info)
-
getInfo
@NonNull AttachmentInfo getInfo()
-
setFormat
void setFormat(@NonNull PixelFormatType format)
set attachment pixel format
-
getFormat
@NonNull PixelFormatType getFormat()
- Returns:
- attachment pixel format
-
setFilteringMode
void setFilteringMode(@NonNull TextureFilteringMode value)
set attachment texture filtering mode param mode (texture_filtering_mode)
-
getFilteringMode
@NonNull TextureFilteringMode getFilteringMode()
- Returns:
- filtering mode (texture_filtering_mode)
-
asImage
@Nullable Image asImage()
- Returns:
- upcast to base type
-
-