Element Array Buffer provider.  
 More...
#include <pixel_buffer_provider.h>
Element Array Buffer provider. 
◆ ~PixelBufferProvider()
  
  | 
        
          | virtual clan::PixelBufferProvider::~PixelBufferProvider | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ create()
Create. 
- Parameters
- 
  
    | data | = void |  | new_width | = New width |  | new_height | = New height |  | direction | = Direction |  | new_format | = New format |  | usage | = Buffer Usage |  
 
 
 
◆ get_data()
  
  | 
        
          | virtual void * clan::PixelBufferProvider::get_data | ( |  | ) |  |  | pure virtual | 
 
Retrieves a pointer to the mapped buffer. 
 
 
◆ get_format()
  
  | 
        
          | virtual TextureFormat clan::PixelBufferProvider::get_format | ( |  | ) | const |  | pure virtual | 
 
Returns the pixel format. 
 
 
◆ get_pitch()
  
  | 
        
          | virtual int clan::PixelBufferProvider::get_pitch | ( |  | ) | const |  | pure virtual | 
 
Retrieves the pitch of the mapped buffer. Use this after get_data() 
 
 
◆ get_size()
  
  | 
        
          | virtual Size clan::PixelBufferProvider::get_size | ( |  | ) | const |  | pure virtual | 
 
 
◆ is_gpu()
  
  | 
        
          | virtual bool clan::PixelBufferProvider::is_gpu | ( |  | ) | const |  | pure virtual | 
 
Returns true if this pixel buffer is a GPU based one. 
 
 
◆ lock()
Maps buffer into system memory. 
 
 
◆ unlock()
  
  | 
        
          | virtual void clan::PixelBufferProvider::unlock | ( |  | ) |  |  | pure virtual | 
 
 
◆ upload_data()
  
  | 
        
          | virtual void clan::PixelBufferProvider::upload_data | ( | GraphicContext & | gc, |  
          |  |  | const Rect & | dest_rect, |  
          |  |  | const void * | data ) |  | pure virtual | 
 
 
The documentation for this class was generated from the following file: