IXboxFrontPanelControl::PresentBuffer Method

Sets the current state of the front panel lights on an Xbox One X dev kit.

Syntax

public:
HRESULT PresentBuffer(
         UINT32 bufferSize,
         const BYTE *buffer
)  

Parameters

bufferSize
Type: UINT32 

[in] Size of the buffer, in bytes.

buffer
Type: const BYTE *

[in] Pointer to an array of pixels.

Return value

Type: HRESULT 

Returns S_OK if successful, or an error code otherwise.

Remarks

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.

Requirements

Header: Declared in xboxfrontpanel.h.

Library: Use xboxfrontpanel.lib.

See also

IXboxFrontPanelControl::GetScreenHeight Method

IXboxFrontPanelControl::GetScreenWidth Method

IXboxFrontPanelControl::GetScreenPixelFormat Method