osgEarth 2.1.1
|
#include <AGG.h>
Public Member Functions | |
~rendering_buffer () | |
rendering_buffer (unsigned char *buf, unsigned width, unsigned height, int stride) | |
void | attach (unsigned char *buf, unsigned width, unsigned height, int stride) |
const unsigned char * | buf () const |
unsigned | width () const |
unsigned | height () const |
int | stride () const |
bool | inbox (int x, int y) const |
unsigned | abs_stride () const |
unsigned char * | row (unsigned y) |
const unsigned char * | row (unsigned y) const |
Private Member Functions | |
rendering_buffer (const rendering_buffer &) | |
const rendering_buffer & | operator= (const rendering_buffer &) |
Private Attributes | |
unsigned char * | m_buf |
unsigned char ** | m_rows |
unsigned | m_width |
unsigned | m_height |
int | m_stride |
unsigned | m_max_height |
agg::rendering_buffer::~rendering_buffer | ( | ) |
agg::rendering_buffer::rendering_buffer | ( | unsigned char * | buf, |
unsigned | width, | ||
unsigned | height, | ||
int | stride | ||
) |
agg::rendering_buffer::rendering_buffer | ( | const rendering_buffer & | ) | [private] |
unsigned agg::rendering_buffer::abs_stride | ( | ) | const [inline] |
void agg::rendering_buffer::attach | ( | unsigned char * | buf, |
unsigned | width, | ||
unsigned | height, | ||
int | stride | ||
) |
Definition at line 1295 of file AGG.h.
{ m_buf = buf; m_width = width; m_height = height; m_stride = stride; if(height > m_max_height) { delete [] m_rows; m_rows = new unsigned char* [m_max_height = height]; } unsigned char* row_ptr = m_buf; if(stride < 0) { row_ptr = m_buf - int(height - 1) * stride; } unsigned char** rows = m_rows; while(height--) { *rows++ = row_ptr; row_ptr += stride; } }
const unsigned char* agg::rendering_buffer::buf | ( | ) | const [inline] |
unsigned agg::rendering_buffer::height | ( | ) | const [inline] |
bool agg::rendering_buffer::inbox | ( | int | x, |
int | y | ||
) | const [inline] |
const rendering_buffer& agg::rendering_buffer::operator= | ( | const rendering_buffer & | ) | [private] |
unsigned char* agg::rendering_buffer::row | ( | unsigned | y | ) | [inline] |
const unsigned char* agg::rendering_buffer::row | ( | unsigned | y | ) | const [inline] |
int agg::rendering_buffer::stride | ( | ) | const [inline] |
unsigned agg::rendering_buffer::width | ( | ) | const [inline] |
unsigned char* agg::rendering_buffer::m_buf [private] |
unsigned agg::rendering_buffer::m_height [private] |
unsigned agg::rendering_buffer::m_max_height [private] |
unsigned char** agg::rendering_buffer::m_rows [private] |
int agg::rendering_buffer::m_stride [private] |
unsigned agg::rendering_buffer::m_width [private] |