Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::UI::ImageData Class Referenceabstract

This class represents a link to a ImageData JavaScript object in a View. This link is "live" - by calling the Update method with some bytes, the JavaScript object will be also updated. More...

#include <Coherent/UI/ImageData.h>

Public Member Functions

virtual void Update (void *data, bool flipY)=0
 Updates the content of the ImageData object. More...
 
virtual void Destroy ()=0
 Destroys the ImageData object. Note that the JavaScript object will continue to live until it is not destroyed in JS too.
 

Detailed Description

This class represents a link to a ImageData JavaScript object in a View. This link is "live" - by calling the Update method with some bytes, the JavaScript object will be also updated.

Member Function Documentation

virtual void Coherent::UI::ImageData::Update ( void *  data,
bool  flipY 
)
pure virtual

Updates the content of the ImageData object.

Parameters
dataa pointer to the new data to copy in the object the size of the data must equal to the total size of the ImageData
flipYtells if to flip vertically when copying