ResizableColorBuffer
class ResizableColorBuffer(width: Int, height: Int, contentScale: Double = 1.0, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), multisample: BufferMultisample = BufferMultisample.Disabled, levels: Int = 1, session: Session? = Session.active) : AutoCloseable(source)
A class representing a resizable color buffer, which can dynamically resize itself while maintaining color properties.
This wrapper manages a ColorBuffer
instance and provides methods to easily resize it when needed.
Parameters
width
Initial width of the color buffer.
height
Initial height of the color buffer.
contentScale
Scale factor of the buffer's content (default is 1.0).
format
The color format of the buffer (default is ColorFormat.RGBa
).
type
The color type specifying the data type of the color components (default is determined using defaultColorType).
multisample
Multisample configuration for the buffer (default is BufferMultisample.Disabled
).
levels
Number of mipmap levels (default is 1).
session
Graphics session to which the buffer belongs (default is the active session).
Constructors
Link copied to clipboard
constructor(width: Int, height: Int, contentScale: Double = 1.0, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), multisample: BufferMultisample = BufferMultisample.Disabled, levels: Int = 1, session: Session? = Session.active)