2.9.16
Coherent GT
A modern user interface library for games
Coherent::UIGT::ScreenshotResponse Class Referenceabstract

Interface for sending screenshot data to the test driver. More...

#include <Coherent/Coherent/UIGT/ScreenshotResponse.h>

Public Member Functions

virtual void ReceiveData (int viewId, const unsigned char *buffer, unsigned width, unsigned height)=0
 Receive raw screenshot image data and send it as base64 encoded PNG to the test driver. More...
 
virtual void Release ()=0
 Releases the memory for this response. You MUST call release on this object after you've read the resource, otherwise memory leaks will occur.
 

Detailed Description

Interface for sending screenshot data to the test driver.

Member Function Documentation

◆ ReceiveData()

virtual void Coherent::UIGT::ScreenshotResponse::ReceiveData ( int  viewId,
const unsigned char *  buffer,
unsigned  width,
unsigned  height 
)
pure virtual

Receive raw screenshot image data and send it as base64 encoded PNG to the test driver.

Parameters
viewIdthe id of the view
bufferbuffer with raw screenshot image data
widthwidth of the screenshot image
heightheight of the screensoht image