|
GClasses
|
This is a billboard (a 2-D image in a 3-D world) for use with GBillboardWorld. You can set m_repeatX and/or m_repeatY to make the image repeat across the billboard.
#include <G3D.h>
Public Member Functions | |
| GBillboard (GImage *pImage) | |
| Does not take ownership of pImage. More... | |
| void | adjustHeightToRestoreAspect () |
| Ensures that m_y is orthogonal to m_x, and adjusts the magnitude of m_y to restore the aspect ratio of the billboard image. More... | |
Public Attributes | |
| G3DVector | m_origin |
| The origin corner of the billboard (where the bottom-left corner of the image is displayed) More... | |
| GImage * | m_pImage |
| The image associated with this billboard. More... | |
| int | m_repeatX |
| The number of times the image repeats horizontally on the billboard. More... | |
| int | m_repeatY |
| The number of times the image repeats vertically on the billboard. More... | |
| G3DVector | m_x |
| The horizontal vector of the billboard. The magnitude of this vector specifies the width of the billboard. More... | |
| G3DVector | m_y |
| The vertical vector of the billboard. The magnitude of this vector specifies the height of the billboard. More... | |
| GClasses::GBillboard::GBillboard | ( | GImage * | pImage | ) |
Does not take ownership of pImage.
| void GClasses::GBillboard::adjustHeightToRestoreAspect | ( | ) |
Ensures that m_y is orthogonal to m_x, and adjusts the magnitude of m_y to restore the aspect ratio of the billboard image.
| G3DVector GClasses::GBillboard::m_origin |
The origin corner of the billboard (where the bottom-left corner of the image is displayed)
| GImage* GClasses::GBillboard::m_pImage |
The image associated with this billboard.
| int GClasses::GBillboard::m_repeatX |
The number of times the image repeats horizontally on the billboard.
| int GClasses::GBillboard::m_repeatY |
The number of times the image repeats vertically on the billboard.
| G3DVector GClasses::GBillboard::m_x |
The horizontal vector of the billboard. The magnitude of this vector specifies the width of the billboard.
| G3DVector GClasses::GBillboard::m_y |
The vertical vector of the billboard. The magnitude of this vector specifies the height of the billboard.