Sets the current state of the front panel lights on an Xbox One X dev kit.
public:
HRESULT PresentBuffer(
UINT32 bufferSize,
const BYTE *buffer
)
bufferSize
Type: UINT32
[in] Size of the buffer, in bytes.
buffer
Type: const BYTE *
[in] Pointer to an array of pixels.
Type: HRESULT
Returns S_OK if successful, or an error code otherwise.
PresentBuffer only needs to be called when there are changes; there is no need to call PresentBuffer on every frame, except in the case of animation. If the front panel is not being updated frequently, there is very little overhead.
Header: Declared in xboxfrontpanel.h.
Library: Use xboxfrontpanel.lib.
IXboxFrontPanelControl::GetScreenHeight Method