#include <compositor.h>
|
| | COMPOSITOR () |
| |
| virtual | ~COMPOSITOR () |
| |
| virtual void | Initialize ()=0 |
| | Perform primary initialization, necessary to use the object.
|
| |
| virtual void | Resize (unsigned int aWidth, unsigned int aHeight)=0 |
| | Clear the state of COMPOSITOR, so it has to be reinitialized again with the new dimensions.
|
| |
| virtual unsigned int | CreateBuffer ()=0 |
| | Prepare a new buffer that may be used as a rendering target.
|
| |
| virtual unsigned int | GetBuffer () const =0 |
| | Return currently used buffer handle.
|
| |
| virtual void | SetBuffer (unsigned int aBufferHandle)=0 |
| | Set the selected buffer as the rendering target.
|
| |
| virtual void | ClearBuffer (const COLOR4D &aColor)=0 |
| | Clear the selected buffer (set by the SetBuffer() function).
|
| |
| virtual void | Begin ()=0 |
| | Call this at the beginning of each frame.
|
| |
| virtual void | DrawBuffer (unsigned int aBufferHandle)=0 |
| | Draw the selected buffer to the output buffer.
|
| |
| virtual void | Present ()=0 |
| | Call this to present the output buffer to the screen.
|
| |
|
| unsigned int | m_width |
| | Width of the buffer (in pixels)
|
| |
| unsigned int | m_height |
| | Height of the buffer (in pixels)
|
| |
Definition at line 40 of file compositor.h.
◆ COMPOSITOR()
| KIGFX::COMPOSITOR::COMPOSITOR |
( |
| ) |
|
|
inline |
◆ ~COMPOSITOR()
| virtual KIGFX::COMPOSITOR::~COMPOSITOR |
( |
| ) |
|
|
inlinevirtual |
◆ Begin()
| virtual void KIGFX::COMPOSITOR::Begin |
( |
| ) |
|
|
pure virtual |
◆ ClearBuffer()
| virtual void KIGFX::COMPOSITOR::ClearBuffer |
( |
const COLOR4D & | aColor | ) |
|
|
pure virtual |
◆ CreateBuffer()
| virtual unsigned int KIGFX::COMPOSITOR::CreateBuffer |
( |
| ) |
|
|
pure virtual |
◆ DrawBuffer()
| virtual void KIGFX::COMPOSITOR::DrawBuffer |
( |
unsigned int | aBufferHandle | ) |
|
|
pure virtual |
◆ GetBuffer()
| virtual unsigned int KIGFX::COMPOSITOR::GetBuffer |
( |
| ) |
const |
|
pure virtual |
◆ Initialize()
| virtual void KIGFX::COMPOSITOR::Initialize |
( |
| ) |
|
|
pure virtual |
◆ Present()
| virtual void KIGFX::COMPOSITOR::Present |
( |
| ) |
|
|
pure virtual |
◆ Resize()
| virtual void KIGFX::COMPOSITOR::Resize |
( |
unsigned int | aWidth, |
|
|
unsigned int | aHeight ) |
|
pure virtual |
◆ SetBuffer()
| virtual void KIGFX::COMPOSITOR::SetBuffer |
( |
unsigned int | aBufferHandle | ) |
|
|
pure virtual |
Set the selected buffer as the rendering target.
All the following drawing functions are going to be rendered in the selected buffer.
- Parameters
-
| aBufferHandle | is the handle of the buffer or 0 in case of rendering directly to the display. |
Implemented in KIGFX::CAIRO_COMPOSITOR, and KIGFX::OPENGL_COMPOSITOR.
◆ m_height
| unsigned int KIGFX::COMPOSITOR::m_height |
|
protected |
◆ m_width
| unsigned int KIGFX::COMPOSITOR::m_width |
|
protected |
The documentation for this class was generated from the following file: