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
-
Method Summary
Modifier and TypeMethodDescriptionasImage()
int
getInfo()
int
getWidth()
void
setClearColor
(Vec4 color) void
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 Details
-
getAttachmentType
- Returns:
- attachment type (attachment_type). Can be color, or depth
-
setType
- Parameters:
type
- (attachment_type). Can be color, or depth
-
setClearColor
- Parameters:
color
- (vec4). Also implisity set attachment load behaviour to clear.
-
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
-
getInfo
-
setFormat
set attachment pixel format -
getFormat
- Returns:
- attachment pixel format
-
setFilteringMode
set attachment texture filtering mode param mode (texture_filtering_mode) -
getFilteringMode
- Returns:
- filtering mode (texture_filtering_mode)
-
asImage
- Returns:
- upcast to base type
-