![]() |
VR-Forces 4.0.4 Class Documentation
|
A flyweight class for controlling a single quad owned by the DtQuadRenderer. More...
Public Member Functions | |
| ~DtQuadProxy () | |
| void | setGroup (float order) |
| Set the order. | |
| float | group () const |
| Get the group. | |
| void | set3DPosition (float x, float y, float z, float w=0) |
| Set the position. | |
| void | get3DPosition (float &x, float &y, float &z, float &w) const |
| Get the position. | |
| void | set2DRotation (float angle) |
| Set the rotation. | |
| void | get2DRotation (float &angle) const |
| Get the rotation. | |
| void | setPoints (const float points[8]) |
| Set the 2d vertices. | |
| void | getPoints (float points[8]) const |
| Get the 2d vertices. | |
| void | getBounds (float bounds[4]) const |
| Get the size. | |
| void | setStyle (int style) |
| Set the style. | |
| int | style () const |
| Get the current style. | |
| void | setColor (float r, float g, float b, float a) |
| Set the color. | |
| void | getColor (float &r, float &g, float &b, float &a) const |
| Get the color. | |
| void | setStippleParameters (unsigned int fill, unsigned int fullStipplePattern[32]=0) |
| Set the fill parameters. | |
| void | setTextureParameters (void *textureHangle, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| Set the texture parameter. | |
| void * | textureHandle () const |
| Get the texture handle. | |
| unsigned int | index () const |
| Get the internal index of this proxy. | |
| void | setIndex (unsigned int index) |
| Get the internal index of this proxy. | |
Protected Member Functions | |
| DtQuadProxy (DtQuadRenderer &renderer, unsigned char effect) | |
| Protected CTOR (DtQuadRenderer manages creation) | |
Static Protected Member Functions | |
| static void | getBoundsFromPoints (float bounds[4], const float points[8]) |
| Get the bounding values for a quad's points. | |
Protected Attributes | |
| DtQuadRenderer * | myParent |
| unsigned int | myIndex |
| unsigned char | myStyle |
| bool | myDirtyBit |
Friends | |
| class | DtQuadRenderer |
A flyweight class for controlling a single quad owned by the DtQuadRenderer.
| makVrv::DtQuadProxy::DtQuadProxy | ( | DtQuadRenderer & | renderer, |
| unsigned char | effect | ||
| ) | [protected] |
Protected CTOR (DtQuadRenderer manages creation)
| void makVrv::DtQuadProxy::setGroup | ( | float | order | ) |
Set the order.
| float makVrv::DtQuadProxy::group | ( | ) | const |
Get the group.
| void makVrv::DtQuadProxy::set3DPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w = 0 |
||
| ) |
Set the position.
| void makVrv::DtQuadProxy::get3DPosition | ( | float & | x, |
| float & | y, | ||
| float & | z, | ||
| float & | w | ||
| ) | const |
Get the position.
| void makVrv::DtQuadProxy::set2DRotation | ( | float | angle | ) |
Set the rotation.
| void makVrv::DtQuadProxy::get2DRotation | ( | float & | angle | ) | const |
Get the rotation.
| void makVrv::DtQuadProxy::setPoints | ( | const float | points[8] | ) |
Set the 2d vertices.
| void makVrv::DtQuadProxy::getPoints | ( | float | points[8] | ) | const |
Get the 2d vertices.
| void makVrv::DtQuadProxy::getBounds | ( | float | bounds[4] | ) | const |
Get the size.
| void makVrv::DtQuadProxy::setStyle | ( | int | style | ) |
Set the style.
| int makVrv::DtQuadProxy::style | ( | ) | const |
Get the current style.
| void makVrv::DtQuadProxy::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Set the color.
| void makVrv::DtQuadProxy::getColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Get the color.
| void makVrv::DtQuadProxy::setStippleParameters | ( | unsigned int | fill, |
| unsigned int | fullStipplePattern[32] = 0 |
||
| ) |
Set the fill parameters.
| void makVrv::DtQuadProxy::setTextureParameters | ( | void * | textureHangle, |
| float | left = 0.0f, |
||
| float | right = 1.0f, |
||
| float | bottom = 0.0f, |
||
| float | top = 1.0f |
||
| ) |
Set the texture parameter.
| void* makVrv::DtQuadProxy::textureHandle | ( | ) | const |
Get the texture handle.
| unsigned int makVrv::DtQuadProxy::index | ( | ) | const |
Get the internal index of this proxy.
| void makVrv::DtQuadProxy::setIndex | ( | unsigned int | index | ) |
Get the internal index of this proxy.
| static void makVrv::DtQuadProxy::getBoundsFromPoints | ( | float | bounds[4], |
| const float | points[8] | ||
| ) | [static, protected] |
Get the bounding values for a quad's points.
| bounds | bounding values in order min_x, min_y, max_x, max_y |
| points | 2d points in order [x0,y0,x1,y1,...] |
friend class DtQuadRenderer [friend] |
DtQuadRenderer* makVrv::DtQuadProxy::myParent [protected] |
unsigned int makVrv::DtQuadProxy::myIndex [protected] |
unsigned char makVrv::DtQuadProxy::myStyle [protected] |
bool makVrv::DtQuadProxy::myDirtyBit [protected] |