IRecordingCommandBuffer::clearColorBuffer - dpw105f18/papago-api GitHub Wiki
This method records a command for clearing the color buffer.
Clear color as float
IRecordingCommandBuffer& clearColorBuffer(float red, float green, float blue, float alpha)
Returns
Returns a reference to the IRecordingCommandBuffer, which the method was called on.
Parameters
| Parameter | Description |
|---|---|
| red | value of red color channel between 0.0f and 1.0f |
| green | value of green color channel between 0.0f and 1.0f |
| blue | value of blue color channel between 0.0f and 1.0f |
| alpha | value of alpha color channel between 0.0f and 1.0f |
Clear color as int32_t
IRecordingCommandBuffer& clearColorBuffer(int32_t red, int32_t green, int32_t blue, int32_t alpha)
Returns
Returns a reference to the IRecordingCommandBuffer, which the method was called on.
Parameters
| Parameter | Description |
|---|---|
| red | value of red color channel between 0 and 255 |
| green | value of green color channel 0 and 255 |
| blue | value of blue color channel 0 and 255 |
| alpha | value of alpha color channel 0 and 255 |
Clear color as uint32_t
IRecordingCommandBuffer& clearColorBuffer(uint32_t red, uint32_t green, uint32_t blue, uint32_t alpha)
Returns
Returns a reference to the IRecordingCommandBuffer, which the method was called on.
Parameters
| Parameter | Description |
|---|---|
| red | value of red color channel 0 and 255 |
| green | value of green color channel 0 and 255 |
| blue | value of blue color channel 0 and 255 |
| alpha | value of alpha color channel 0 and 255 |