#include <FTBuffer.h>
It provides the interface between FTBufferFont and FTBufferGlyph to optimise rendering operations.
Definition at line 45 of file FTBuffer.h.
Public Member Functions | |
FTBuffer () | |
Default constructor. | |
~FTBuffer () | |
Destructor. | |
FTPoint | Pos () const |
Get the pen's position in the buffer. | |
void | Pos (FTPoint arg) |
Set the pen's position in the buffer. | |
void | Size (int w, int h) |
Set the buffer's size. | |
int | Width () const |
Get the buffer's width. | |
int | Height () const |
Get the buffer's height. | |
unsigned char * | Pixels () const |
Get the buffer's direct pixel buffer. |
FTBuffer::FTBuffer | ( | ) |
Default constructor.
FTBuffer::~FTBuffer | ( | ) |
Destructor.
FTPoint FTBuffer::Pos | ( | ) | const [inline] |
Get the pen's position in the buffer.
Definition at line 63 of file FTBuffer.h.
void FTBuffer::Pos | ( | FTPoint | arg | ) | [inline] |
Set the pen's position in the buffer.
arg | An FTPoint object with the desired pen's position. |
Definition at line 73 of file FTBuffer.h.
void FTBuffer::Size | ( | int | w, | |
int | h | |||
) |
Set the buffer's size.
w | The buffer's desired width, in pixels. | |
h | The buffer's desired height, in pixels. |
int FTBuffer::Width | ( | ) | const [inline] |
Get the buffer's width.
Definition at line 91 of file FTBuffer.h.
int FTBuffer::Height | ( | ) | const [inline] |
Get the buffer's height.
Definition at line 98 of file FTBuffer.h.
unsigned char* FTBuffer::Pixels | ( | ) | const [inline] |
Get the buffer's direct pixel buffer.
Definition at line 105 of file FTBuffer.h.