Stg::ModelCamera Class Reference
ModelCamera class
More...
#include <stage.hh>
List of all members.
Detailed Description
ModelCamera class
Definition at line 2722 of file stage.hh.
Constructor & Destructor Documentation
| Stg::ModelCamera::ModelCamera |
( |
World * |
world, |
|
|
Model * |
parent, |
|
|
const std::string & |
type | |
|
) |
| | |
| Stg::ModelCamera::~ModelCamera |
( |
|
) |
|
Member Function Documentation
| virtual void Stg::ModelCamera::DataVisualize |
( |
Camera * |
cam |
) |
[virtual] |
| const GLubyte* Stg::ModelCamera::FrameColor |
( |
|
) |
const [inline] |
get a reference to camera color image. 3 bytes (RGB) per pixel
Definition at line 2788 of file stage.hh.
| const GLfloat* Stg::ModelCamera::FrameDepth |
( |
|
) |
const [inline] |
get a reference to camera depth buffer
Definition at line 2785 of file stage.hh.
get reference to camera used
Definition at line 2782 of file stage.hh.
| bool Stg::ModelCamera::GetFrame |
( |
|
) |
[private] |
Take a screenshot from the camera's perspective. return: true for sucess, and data is available via FrameDepth() / FrameColor().
| int Stg::ModelCamera::getHeight |
( |
void |
|
) |
const [inline] |
height of captured image
Definition at line 2779 of file stage.hh.
| int Stg::ModelCamera::getWidth |
( |
void |
|
) |
const [inline] |
width of captured image
Definition at line 2776 of file stage.hh.
| virtual void Stg::ModelCamera::Load |
( |
|
) |
[virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
| void Stg::ModelCamera::setPitch |
( |
float |
pitch |
) |
[inline] |
| void Stg::ModelCamera::setYaw |
( |
float |
yaw |
) |
[inline] |
| virtual void Stg::ModelCamera::Update |
( |
|
) |
[virtual] |
Capture a new frame ( calls GetFrame ).
Reimplemented from Stg::Model.
Member Data Documentation
The documentation for this class was generated from the following file: