#include <stage.hh>
List of all members.
Public Member Functions |
void | AppendTouchingModels (std::set< Model * > &touchers) |
| Block (Model *mod, const std::vector< point_t > &pts, meters_t zmin, meters_t zmax, Color color, bool inherit_color, bool wheel) |
| Block (Model *mod, Worldfile *wf, int entity) |
double | CenterX () |
double | CenterY () |
void | DrawFootPrint () |
void | DrawSolid (bool topview) |
const Color & | GetColor () |
Model * | GetModel () |
void | Load (Worldfile *wf, int entity) |
void | Map (unsigned int layer) |
void | Rasterize (uint8_t *data, unsigned int width, unsigned int height, meters_t cellwidth, meters_t cellheight) |
void | SetCenter (double x, double y) |
void | SetCenterX (double y) |
void | SetCenterY (double y) |
void | SetZ (double min, double max) |
Model * | TestCollision () |
void | Translate (double x, double y) |
void | UnMap (unsigned int layer) |
| ~Block () |
Constructor & Destructor Documentation
Block Constructor. A model's body is a list of these blocks. The point data is copied, so pts can safely be freed after constructing the block.
Create a new block. A model's body is a list of these blocks. The point data is copied, so pts can safely be freed after calling this.
Member Function Documentation
Return the center of the block on the X axis
Return the center of the block on the Y axis
draw the projection of the block onto the z=0 plane
draw the block in OpenGL as a solid single color
render the block into the world's raytrace data structure
Set the center of the block
Set the center of the block on the X axis
Set the center of the block on the Y axis
Set the extent in Z of the block
Returns the first model that shares a bitmap cell with this model
Translate all points in the block by the indicated amounts
remove the block from the world's raytracing data structure
The documentation for this class was generated from the following files: