GClasses
|
This class represents a world of billboards, and provides a rendering engine.
#include <G3D.h>
Public Member Functions | |
GBillboardWorld () | |
~GBillboardWorld () | |
void | addBillboard (GBillboard *pBB) |
Takes ownership of pBB. More... | |
void | draw (GImage *pImage, double *pDepthMap, GCamera &camera) |
Draws all the billboards onto pImage from the perspective of the camera, and sets the values in pDepthMap to indicate the distance to each pixel. (pDepthMap should be a buffer with the same number of elements as pixels in pImage.) The pixels in pDepthMap correspond with the image left-to-right, bottom-to-top. More... | |
Protected Member Functions | |
void | drawSection (GImage *pImage, double *pDepthMap, GCamera &camera, GBBAugmented &bb, G3DVector *pBotLeft, G3DVector *pBotRight, G3DVector *pTopRight, G3DVector *pTopLeft) |
Protected Attributes | |
std::vector< GBillboard * > | m_billboards |
GClasses::GBillboardWorld::GBillboardWorld | ( | ) |
GClasses::GBillboardWorld::~GBillboardWorld | ( | ) |
void GClasses::GBillboardWorld::addBillboard | ( | GBillboard * | pBB | ) |
Takes ownership of pBB.
Draws all the billboards onto pImage from the perspective of the camera, and sets the values in pDepthMap to indicate the distance to each pixel. (pDepthMap should be a buffer with the same number of elements as pixels in pImage.) The pixels in pDepthMap correspond with the image left-to-right, bottom-to-top.
|
protected |
|
protected |