GClasses
GClasses::GBillboardWorld Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

GClasses::GBillboardWorld::GBillboardWorld ( )
GClasses::GBillboardWorld::~GBillboardWorld ( )

Member Function Documentation

void GClasses::GBillboardWorld::addBillboard ( GBillboard pBB)

Takes ownership of pBB.

void GClasses::GBillboardWorld::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.

void GClasses::GBillboardWorld::drawSection ( GImage pImage,
double *  pDepthMap,
GCamera camera,
GBBAugmented &  bb,
G3DVector pBotLeft,
G3DVector pBotRight,
G3DVector pTopRight,
G3DVector pTopLeft 
)
protected

Member Data Documentation

std::vector<GBillboard*> GClasses::GBillboardWorld::m_billboards
protected