Package com.banuba.sdk.scene
Class Attachment.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.Attachment.CppProxy
-
- All Implemented Interfaces:
Attachment
- Enclosing interface:
- Attachment
public static final class Attachment.CppProxy extends java.lang.Object implements Attachment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.Attachment
Attachment.CppProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
Image
asImage()
protected void
finalize()
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
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
getAttachmentType
public AttachmentType getAttachmentType()
- Specified by:
getAttachmentType
in interfaceAttachment
- Returns:
- attachment type (attachment_type). Can be color, or depth
-
setType
public void setType(AttachmentType type)
- Specified by:
setType
in interfaceAttachment
- Parameters:
type
- (attachment_type). Can be color, or depth
-
setClearColor
public void setClearColor(Vec4 color)
- Specified by:
setClearColor
in interfaceAttachment
- Parameters:
color
- (vec4). Also implisity set attachment load behaviour to clear.
-
getClearColor
public Vec4 getClearColor()
- Specified by:
getClearColor
in interfaceAttachment
- Returns:
- attachment clear color (vec4)
-
setWidth
public void setWidth(int value)
Description copied from interface:Attachment
set attachment width- Specified by:
setWidth
in interfaceAttachment
-
setHeight
public void setHeight(int value)
Description copied from interface:Attachment
set attachment height- Specified by:
setHeight
in interfaceAttachment
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceAttachment
- Returns:
- attachment width (int)
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceAttachment
- Returns:
- attachment height (int)
-
setInfo
public void setInfo(AttachmentInfo info)
- Specified by:
setInfo
in interfaceAttachment
-
getInfo
public AttachmentInfo getInfo()
- Specified by:
getInfo
in interfaceAttachment
-
setFormat
public void setFormat(PixelFormatType format)
Description copied from interface:Attachment
set attachment pixel format- Specified by:
setFormat
in interfaceAttachment
-
getFormat
public PixelFormatType getFormat()
- Specified by:
getFormat
in interfaceAttachment
- Returns:
- attachment pixel format
-
setFilteringMode
public void setFilteringMode(TextureFilteringMode value)
Description copied from interface:Attachment
set attachment texture filtering mode param mode (texture_filtering_mode)- Specified by:
setFilteringMode
in interfaceAttachment
-
getFilteringMode
public TextureFilteringMode getFilteringMode()
- Specified by:
getFilteringMode
in interfaceAttachment
- Returns:
- filtering mode (texture_filtering_mode)
-
asImage
public Image asImage()
- Specified by:
asImage
in interfaceAttachment
- Returns:
- upcast to base type
-
-