FTGL 2.4.0
|
FTBuffer is a helper class for pixel buffers. More...
#include <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 is a helper class for pixel buffers.
It provides the interface between FTBufferFont and FTBufferGlyph to optimise rendering operations.
Definition at line 45 of file FTBuffer.h.
FTBuffer::FTBuffer | ( | ) |
Default constructor.
FTBuffer::~FTBuffer | ( | ) |
Destructor.
|
inline |
Get the buffer's height.
Definition at line 98 of file FTBuffer.h.
|
inline |
Get the buffer's direct pixel buffer.
Definition at line 105 of file FTBuffer.h.
|
inline |
Get the pen's position in the buffer.
Definition at line 63 of file FTBuffer.h.
|
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. |
|
inline |
Get the buffer's width.
Definition at line 91 of file FTBuffer.h.