#include <xsi_renderercontext.h>
Public Member Functions |
|
| virtual unsigned int | GetOffsetX () const=0 |
| virtual unsigned int | GetOffsetY () const=0 |
| virtual unsigned int | GetWidth () const=0 |
| virtual unsigned int | GetHeight () const=0 |
| virtual bool | GetScanlineRGBA (unsigned int in_uiRow, siImageBitDepth in_eBitDepth, unsigned char *out_pScanline) const =0 |
| virtual unsigned int GetOffsetX | ( | ) | const [pure virtual] |
Returns the offset of the fragment's bottom-left corner from the left-hand side of the output frame.
Returns the offset of the fragment's bottom-left corner from the bottom of the output frame.
Returns the width of the fragment in pixels.
Returns the height of the fragment in pixels.
| virtual bool GetScanlineRGBA | ( | unsigned int | in_uiRow, | |
| siImageBitDepth | in_eBitDepth, | |||
| unsigned char * | out_pScanline | |||
| ) | const [pure virtual] |
Returns a single fragment scanline. The row is relative to the bottom of the fragment, going up. The caller can request different bit depths of the image data. As of XSI 6.0 only needs to be supported, although siImageBitDepthFloat16 may be added in the future. The data is laid out in RGBA format, where the red value comes first, followed by green, then blue and finally alpha. When using bit shifting, make sure to consider the machine's endianness. The scanline data buffer passed contains enough space to hold the equal to the fragment's width times four (for the RGBA components) times the bit depth divided by eight. in_uiRow The scanline row to return, counting from the bottom of the fragment. in_eBitDepth The requested bit depth of the color components to be returned. out_pScanline The buffer where the scanline data should be written. True if the data was successfully written; false in the case of a failure (for example, unsupported bit depth, invalid row number, etc.)