Stg::StgBlock Class Reference
#include <stage.hh>
Public Member Functions | |
| stg_color_t | Color () |
| void | Draw () |
| void | Draw2D () |
| void | DrawFootPrint () |
| void | DrawGlobal () |
| void | DrawSolid () |
| bool | IntersectGlobalZ (stg_meters_t z) |
| void | Map () |
| StgModel * | Model () |
| stg_point_t * | Points (unsigned int *count) |
| void | RecordRenderPoint (GSList **head, GSList *link, unsigned int *c1, unsigned int *c2) |
| StgBlock (StgModel *mod, stg_point_t *pts, size_t pt_count, stg_meters_t height, stg_meters_t z_offset, stg_color_t color, bool inherit_color) | |
| void | UnMap () |
| ~StgBlock () | |
Static Public Member Functions | |
| static void | ScaleList (GList *blocks, stg_size_t *size) |
Constructor & Destructor Documentation
| StgBlock::StgBlock | ( | StgModel * | mod, | |
| stg_point_t * | pts, | |||
| size_t | pt_count, | |||
| stg_meters_t | zmin, | |||
| stg_meters_t | zmax, | |||
| stg_color_t | color, | |||
| bool | inherit_color | |||
| ) |
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.
| StgBlock::~StgBlock | ( | ) |
References UnMap().
Member Function Documentation
| stg_color_t Stg::StgBlock::Color | ( | ) | [inline] |
References Stg::StgModel::GetColor().
Referenced by Draw(), Draw2D(), DrawGlobal(), and Stg::StgModelBlobfinder::Update().
| void StgBlock::Draw | ( | ) |
References Color(), Stg::stg_color_pack(), and Stg::stg_color_unpack().
| void StgBlock::Draw2D | ( | ) |
References Color(), Stg::stg_color_pack(), and Stg::stg_color_unpack().
| void StgBlock::DrawFootPrint | ( | ) |
| void StgBlock::DrawGlobal | ( | ) |
References Color(), Stg::stg_color_pack(), and Stg::stg_color_unpack().
| void StgBlock::DrawSolid | ( | void | ) |
| bool Stg::StgBlock::IntersectGlobalZ | ( | stg_meters_t | z | ) | [inline] |
| void StgBlock::Map | ( | ) |
References Stg::stg_render_info_t::block, Stg::StgModel::GetWorld(), Stg::StgModel::LocalToGlobal(), Stg::StgWorld::ppm, PRINT_DEBUG2, Stg::stg_polygon_3d(), Stg::StgAncestor::Token(), Stg::stg_render_info_t::world, Stg::stg_point_int_t::x, Stg::stg_vertex_t::x, Stg::stg_point_t::x, Stg::stg_point3_t::x, Stg::stg_point_int_t::y, Stg::stg_vertex_t::y, Stg::stg_point_t::y, Stg::stg_point3_t::y, Stg::stg_vertex_t::z, and Stg::stg_point3_t::z.
| StgModel* Stg::StgBlock::Model | ( | ) | [inline] |
Referenced by Stg::StgModel::TestCollision(), and Stg::StgModelLaser::Update().
| stg_point_t* Stg::StgBlock::Points | ( | unsigned int * | count | ) | [inline] |
Referenced by Stg::StgModel::TestCollision().
| void StgBlock::RecordRenderPoint | ( | GSList ** | head, | |
| GSList * | link, | |||
| unsigned int * | c1, | |||
| unsigned int * | c2 | |||
| ) |
Referenced by Stg::Region::AddBlock(), and Stg::StgBlockGrid::AddBlock().
| void StgBlock::ScaleList | ( | GList * | blocks, | |
| stg_size_t * | size | |||
| ) | [static] |
References Stg::billion, pt_count, pts, UnMap(), Stg::stg_size_t::x, Stg::stg_point_t::x, Stg::stg_size_t::y, Stg::stg_point_t::y, Stg::stg_size_t::z, zmax, and zmin.
Referenced by Stg::StgModel::Load(), and Stg::StgModel::SetGeom().
| void StgBlock::UnMap | ( | ) |
The documentation for this class was generated from the following files:
Generated on Thu Jan 7 17:42:17 2010 for Stage by
1.5.5
