List of all members.
Detailed Description
Definition at line 20 of file ghost.
Constructor & Destructor Documentation
inlib::sg::ghost::ghost |
( |
| ) |
[inline] |
Definition at line 94 of file ghost.
virtual inlib::sg::ghost::~ghost |
( |
| ) |
[inline, virtual] |
inlib::sg::ghost::ghost |
( |
const ghost & |
a_from | ) |
[inline] |
Member Function Documentation
virtual void* inlib::sg::ghost::cast |
( |
const std::string & |
a_class | ) |
const [inline, virtual] |
virtual node* inlib::sg::ghost::copy |
( |
| ) |
const [inline, virtual] |
ghost& inlib::sg::ghost::operator= |
( |
const ghost & |
a_from | ) |
[inline] |
Reimplemented from inlib::sg::node.
Definition at line 44 of file ghost.
{
if(width.value()<=0) return;
if(height.value()<=0) return;
inlib::mat4f mtx = a_action.projection_matrix();
mtx *= a_action.model_matrix();
float xb = -width.value()*0.5f;
float xe = width.value()*0.5f;
float yb = -height.value()*0.5f;
float ye = height.value()*0.5f;
float p1x,p1y,p2x,p2y,p3x,p3y;
{p1x = xb;
p1y = yb;
mtx.mul_2f(p1x,p1y);
p2x = xe;
p2y = yb;
mtx.mul_2f(p2x,p2y);
p3x = xe;
p3y = ye;
mtx.mul_2f(p3x,p3y);
if(a_action.intersect(p1x,p1y,p2x,p2y,p3x,p3y)) {
a_action.set_done(true);
a_action.set_node(this);
return;
}}
{p1x = xe;
p1y = ye;
mtx.mul_2f(p1x,p1y);
p2x = xb;
p2y = ye;
mtx.mul_2f(p2x,p2y);
p3x = xb;
p3y = yb;
mtx.mul_2f(p3x,p3y);
if(a_action.intersect(p1x,p1y,p2x,p2y,p3x,p3y)) {
a_action.set_done(true);
a_action.set_node(this);
return;
}}
}
static const std::string& inlib::sg::ghost::s_class |
( |
| ) |
[inline, static] |
Reimplemented from inlib::sg::cbks.
Definition at line 22 of file ghost.
{
static const std::string s_v("inlib::sg::ghost");
return s_v;
}
virtual const std::string& inlib::sg::ghost::s_cls |
( |
| ) |
const [inline, virtual] |
Member Data Documentation
Definition at line 33 of file ghost.
Definition at line 32 of file ghost.
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/sg/ghost