#include <AGG.h>
List of all members.
Static Public Member Functions |
static void | render (unsigned char *ptr, int x, unsigned count, const unsigned char *covers, const rgba8 &c) |
static void | hline (unsigned char *ptr, int x, unsigned count, const rgba8 &c) |
static rgba8 | get (unsigned char *ptr, int x) |
Detailed Description
Definition at line 1113 of file AGG.h.
Member Function Documentation
static rgba8 agg::span_argb32::get |
( |
unsigned char * |
ptr, |
|
|
int |
x |
|
) |
| [inline, static] |
Definition at line 1149 of file AGG.h.
{
unsigned char* p = ptr + (x << 2);
rgba8 c;
c.a = *p++;
c.r = *p++;
c.g = *p++;
c.b = *p;
return c;
}
static void agg::span_argb32::hline |
( |
unsigned char * |
ptr, |
|
|
int |
x, |
|
|
unsigned |
count, |
|
|
const rgba8 & |
c |
|
) |
| [inline, static] |
Definition at line 1139 of file AGG.h.
{
unsigned char* p = ptr + (x << 2);
do { *p++ = c.a; *p++ = c.r; *p++ = c.g; *p++ = c.b; } while(--count);
}
static void agg::span_argb32::render |
( |
unsigned char * |
ptr, |
|
|
int |
x, |
|
|
unsigned |
count, |
|
|
const unsigned char * |
covers, |
|
|
const rgba8 & |
c |
|
) |
| [inline, static] |
Definition at line 1116 of file AGG.h.
{
unsigned char* p = ptr + (x << 2);
do
{
int alpha = (*covers++) * c.a;
int a = p[0];
int r = p[1];
int g = p[2];
int b = p[3];
*p++ = (((c.a - a) * alpha) + (a << 16)) >> 16;
*p++ = (((c.r - r) * alpha) + (r << 16)) >> 16;
*p++ = (((c.g - g) * alpha) + (g << 16)) >> 16;
*p++ = (((c.b - b) * alpha) + (b << 16)) >> 16;
}
while(--count);
}
The documentation for this struct was generated from the following file:
- /home/cube/sources/osgearth/src/osgEarthSymbology/AGG.h